Carousel: Difference between revisions
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 31: | Line 31: | ||
|action = edit | |action = edit | ||
|edit-page = Carousel pictures | |edit-page = Carousel pictures | ||
|return-page = | |return-page = Demo_VisualData/Carousel | ||
|view = popup | |view = popup | ||
|popup-size = medium | |popup-size = medium | ||
Line 63: | Line 63: | ||
|action = edit | |action = edit | ||
|edit-page = Carousel pictures | |edit-page = Carousel pictures | ||
|return-page = | |return-page = Demo_VisualData/Carousel | ||
|view = popup | |view = popup | ||
|popup-size = medium | |popup-size = medium |
Revision as of 06:50, 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"[1], "title", "caption" and "link" (only the file property is required, and the properties can be mapped to those names in the parser function itself), save a list of files and attributes in any page, and then to use a parser function as follows:
{{#visualdataprint: Carousel pictures |schema=Carousel |format=carousel |height=400px |width=400px |slick-adaptiveHeight=true }}
The images in the Carousel has been uploaded into the wiki in a conventional way, and then associated to the page Carousel pictures (the form is editable clicking the tab button Edit data) using the schema VisualDataSchema:Carousel.
Instead than editing directly the page with the carousel data, they can be edited using a form as follows:
{{#visualdataform: Carousel |title = Carousel |action = edit |edit-page = Carousel pictures |return-page = Demo_VisualData/Carousel |view = popup |popup-size = medium |css-class = |pagename-formula = |edit-freetext = true |edit-categories = false |edit-content-model = false |edit-target-slot = false |target-slot = main |default-categories = |default-content-model = wikitext |preload= |preload-data= |layout-align = top |popup-help = false |layout = tabs |submit-button-text = |validate-button-text = |callback= |overwrite-existing-article-on-create = false }}
- ↑ note that to the file input has been associated a Title input widget, with a "namespace" attribute set to 6 (the FILE namespace)