Template:OWID
Please, do not use this template. An evaluation about possible legal, privacy, security, and compliance risks related to this template is currently being conducted. For more information, please visit m:OWID 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 }} |
|
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
OWID | owid | Identifier of the chart to embed from Our World in Data
| String | optional |
Title | title | Title of the chart
| String | optional |
Image | image | Name of the image
| String | optional |
Float | float | Position of the image
| String | optional |
Width | width | Width of the image
| String | optional |
Alternative text | alt | Alternative text for the image | String | optional |
Caption | caption | Caption of the image
| String | optional |
See also
- MediaWiki:Gadget-Global-OWIDPopup.js - JavaScript of this template
- MediaWiki:Gadget-Global-OWIDPopup.css - CSS of this template
- MDWiki - More examples