Carousel

From Wikisphere
Revision as of 06:05, 8 October 2024 by Admin (talk | contribs) (Created page with "VisualData provides a Carousel [https://www.mediawiki.org/wiki/Extension:VisualData/Result_formats result format] based on [https://kenwheeler.github.io/slick/ Slick]. The carousel is fueled with data retrieved with any page with associated data and all or almost all [https://github.com/kenwheeler/slick Slick options] are supported using the prefix "-slick". The easiest way to use it is to create a schema with an array of items, each of them with the properties "file",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

VisualData provides a Carousel result format based on Slick.

The carousel is fueled with data retrieved with any page with associated data and all or almost all Slick options are supported using the prefix "-slick".

The easiest way to use it is to create a schema with an array of items, each of them with the properties "file", "title", "caption" and "link" (only the file property is required, and the properties can be mapped to those names in the parser function itself) and then to use a parser function as follows:

{{#visualdataprint: Carousel pictures
|schema=Carousel
|format=carousel
|height=400px
|width=400px
|slick-adaptiveHeight=true
}}