Template:Owidslider

From WikiProjectMed
Jump to navigation Jump to search

This template requires the owidslider gadget.

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

{{owidslider
|start   = 2021
|list    = Template:owidslider/outdoor air pollution#gallery
|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
}}
An example with drop down menu for different regions, clickable countries, and highlighting with mouse over

Template data

Show an image with a play button that pops up a dialog with a year slider

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
startstart

Which image to start on

Default
1
Example
1990
Auto value
1
Numbersuggested
startingViewstartingView

Which view (drop down menu item) to start on

Example
World
Stringsuggested
widthwidth

Override image width from list page

Numberoptional
heightheight

Override height from list page

Numberoptional
Image list pagelist

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

Example
MyPage#myGallery
Stringrequired
noregisterimagesnoregisterimages

Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used.

Booleanoptional
captioncaption

Caption to show in the pop-up below the image. Can include any wikitext.

Contentsuggested
Popup titletitle

Title of popup. Can only be plain text. Wikitext not supported.

Stringsuggested
filefile

The wikitext to include the image shown on the page

Example
[[File:Example.png|thumb|100px|caption text]]
Contentrequired

See also