Template:Owidslider
This template requires the owidslider gadget.
It is used to generate an image with a play button. When you click it, it shows a popup with images in a slider viewer, suitable for looking at series of data.
The list parameter references a page with a fragment. E.g. Template:owidslider/smoking#world, will use the image list with the id "world" from the page Template:owidslider/outdoor air pollution as the list of images. Keep in mind that all images should have the same size (and especially same aspect ratio). List should use {{Owidslidersrcs}} template.
Example 3
[edit]{{owidslider
|start = 2021
|language = en
|list = Template:owidslider/indoor air pollution#gallery
|location = commons
|caption =
|title =
|file = [[File:Death-rate-by-source-from-indoor-air-pollution,World,2021.svg|link=|thumb|none|An example with drop down menu for different regions, clickable countries, and highlighting with mouse over]]
|startingView = World
}}

Example Loading from Commons
[edit]{{owidslider
|start = 2021
|list = Template:OWID/meat supply per person#gallery
|caption =
|title =
|file = [[File:Meat-supply-per-person,World,1961.svg|link=|thumb|none|upright=1.3|An example with drop down menu for different regions, clickable countries, and highlighting with mouse over]]
|startingView = World
|location = commons
}}

Template data
[edit]Show an image with a play button that pops up a dialog with a year slider
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| start | start | Which image to start on
| Number | suggested |
| startingView | startingView | Which view (drop down menu item) to start on
| String | suggested |
| width | width | Override image width from list page | Number | optional |
| height | height | Override height from list page | Number | optional |
| Image list page | list | A page name and fragment to load the image list from. For example, if you put MyPage#myGallery, then it is assumed there is a <gallery id="myGallery">...</gallery> on the page MyPage which is used as the list of images
| String | required |
| Location of image list page | location | Where to get the template from (Commons or Local)
| String | optional |
| noregisterimages | noregisterimages | Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used. | Boolean | optional |
| caption | caption | Caption to show in the pop-up below the image. Can include any wikitext. | Content | suggested |
| Popup title | title | Title of popup. Can only be plain text. Wikitext not supported. | String | suggested |
| file | file | The wikitext to include the image shown on the page
| Content | required |
See also
[edit]