Template:OWIDPopup/doc

From WikiProjectMed
Jump to navigation Jump to search

Use this template to insert interactive charts from Our World in Data. The charts will only be loaded after a popup asking the user for consent to share their IP address with Our World in Data.

Note! This template requires of MediaWiki:Gadget-OWIDPopup.js to work.

Usage

Wikitext:

{{OWIDPopup
| owid = grapher/adolescent-fertility
| title = Adolescent birth rate
| image = Adolescent birth rate, OWID.svg
| width = 400px
| float = none
| caption = Adolescent birth rate according to Our World in Data.
| alt = Chart from Our World in Data showing adolescent birth rate
}}

Result:

Chart from Our World in Data showing adolescent birth rate
Adolescent birth rate according to Our World in Data.


Template data

Use this template to insert interactive charts from Our World in Data.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
OWIDowid

Identifier of the chart to embed from Our World in Data

Example
grapher/adolescent-fertility
Stringoptional
Titletitle

Title of the chart

Example
Adolescent birth rate
Stringoptional
Imageimage

Name of the image

Example
Adolescent birth rate, OWID.svg
Stringoptional
Floatfloat

Position of the image

Suggested values
left right none
Default
right
Example
none
Stringoptional
Widthwidth

Width of the image

Default
220px
Example
400px
Stringoptional
Alternative text alt

Alternative text for the image

Stringoptional
Captioncaption

Caption of the image

Example
Adolescent birth rate according to Our World in Data
Stringoptional