Carousel: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
VisualData provides a Carousel [https://www.mediawiki.org/wiki/Extension:VisualData/Result_formats result format] based on [https://kenwheeler.github.io/slick/ Slick]. | 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 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". |
Revision as of 06:32, 8 October 2024
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 }}