This template requires the owidslider gadget. The underlying code is being developed and maintained by Wiki Project Med Foundation, a Wikimedia thematic organization.
It is used to generate an image with a play button. When you click the button, a popup with images in a slide viewer appears. It is suitable for looking at series of data such as heatmaps.
The list parameter references a page with a fragment. These can be hosted locally or be pulled from Commons. E.g. Template:owidslider/outdoor air pollution, with the id "world" from the page Commons:Template:owidslider/outdoor air pollution as the list of images. All images should have the same size (aspect ratio). List should use {{owidslidersrcs}} template.
Example 1
<syntaxhighlight lang="wikitext" line>
</syntaxhighlight>
Example 2
<syntaxhighlight lang="wikitext" line>
</syntaxhighlight>
Template data
<templatedata> { "params": { "start": { "description": "Which image to start on", "example": "1990", "type": "number", "default": "1", "autovalue": "1", "suggested": true }, "startingView": { "description": "Which view (drop down menu item) to start on", "example": "World", "type": "string", "suggested": true }, "width": { "description": "Override image width from list page", "type": "number" }, "height": { "description": "Override height from list page", "type": "number" }, "list": { "label": "Image list page",
"description": "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
on the page MyPage which is used as the list of images",
"example": "MyPage#myGallery", "type": "string", "required": true },
"location": {
"label": "Location of image list page", "description": "Where to get the template from (Commons or Local)", "example": "Commons", "type": "string", "required": false }, "noregisterimages": { "description": "Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used.", "type": "boolean" }, "caption": { "description": "Caption to show in the pop-up below the image. Can include any wikitext.", "type": "content", "suggested": true }, "title": { "label": "Popup title", "description": "Title of popup. Can only be plain text. Wikitext not supported.", "type": "string", "suggested": true }, "file": { "description": "The wikitext to include the image shown on the page",
"example": "
",
"type": "content", "required": true, "suggested": true } }, "description": "Show an image with a play button that pops up a dialog with a year slider", "format": "block" } </templatedata>
See also
- MediaWiki:Gadget-owidslider.js
- MediaWiki:Gadget-owidslider.css
- Module:owidslider
- {{Owidslidersrcs}}
- List of uploaded graphs on Commons
- OWIDSlider statistics
- Special:WhatLinksHere/Template:Owidslider - links and transclusions.
}}