Kontent qismiga oʻtish

Andoza:Owidslider

ZiyoSfera, erkin ensiklopediya

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

{{owidslider
|start   = 2021
|list    = Template:owidslider/indoor air pollution#gallery
|location = Commons
|caption = 
|title   = 
|language = en
|file    = [[File:Death-rate-by-source-from-indoor-air-pollution,World,2021 (cropped).svg|link=|thumb|none|upright=1.3|Death rate by source from indoor air pollution]]  
|startingView = World
}}
Death rate by source from indoor air pollution

Example 2

{{owidslider
|start   = 2022
|list    = Template:OWID/meat supply per person#gallery
|location = commons
|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
}}
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

Andoza parametrlari[„TemplateData“ni boshqarish]

This template prefers block formatting of parameters.

ParametrTavsifTuriStatus
startstart

Which image to start on

Sukut boʻyicha
1
Namuna
1990
Avto-qiymat
1
Sonsuggested
startingViewstartingView

Which view (drop down menu item) to start on

Namuna
World
Stringsuggested
widthwidth

Override image width from list page

Sonixtiyoriy
heightheight

Override height from list page

Sonixtiyoriy
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

Namuna
MyPage#myGallery
Stringrequired
Location of image list pagelocation

Where to get the template from (Commons or Local)

Namuna
Commons
Stringixtiyoriy
noregisterimagesnoregisterimages

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

Booleanixtiyoriy
captioncaption

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

Kontentsuggested
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

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

See also

}}