Jump to content

Template:OWID

From wikiNonStop
(Redirected from OWIDPopup)
Template documentation

Template:Template gadget

Use this template to load 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.

This template is a template gadget that requires the OWIDPopup gadget to work. Follow the installation instructions to get it working in your wiki.

Usage

Minimal

Markup Renders as
{{OWID
| owid = grapher/adolescent-fertility
}}

Full

Markup Renders as
{{OWID
| 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 = World heat map showing adolescent birth rate with a play button to make it more interactive
}}
World heat map showing adolescent birth rate with a play button to make it more interactive
Adolescent birth rate according to Our World in Data.

Installation

Template:Template gadget installation instructions

Categorization

All the articles will be included in a category called OWIDPopup.js. You can create that category and use it for tracking.

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

See also