Extension:OurWorldInData

MediaWiki extensions manual
OOjs UI icon advanced.svg
OurWorldInData
Release status: beta
Implementation Tag
Description Embed visualizations from OurWorldInData inside of wiki pages
Author(s) Skizzerztalk
Latest version 1.0.0 (2022-01-22)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.37+
PHP 7.3+
Database changes No
License GNU General Public License 3.0 or later
Download Download latest version
Example https://mdwiki.org

Check usage and version matrix.

Issues Open issues · Report a bug

Embed interactive visualizations from OurWorldInData into your wiki pages.

InstallationEdit

  • Download and place the file(s) in a directory called OurWorldInData in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'OurWorldInData' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

UsageEdit

This extension adds a new parser tag, <ourworldindata>. Place the chart name or OurWorldInData URL inside of the tag. Additional parameters can be used to adjust how the chart is displayed.

  • Copy/paste the share link into the page:
    <ourworldindata>https://ourworldindata.org/grapher/historic-and-un-pop-projections-by-age</ourworldindata>
  • The share link may include parameters to filter the chart:
    <ourworldindata>https://ourworldindata.org/grapher/historic-and-un-pop-projections-by-age?time=1950..2020</ourworldindata>
  • Specify a chart name directly:
    <ourworldindata>historic-and-un-pop-projections-by-age</ourworldindata>
  • Filter parameters can be added to the tag:
    <ourworldindata time="1950..2020">historic-and-un-pop-projections-by-age</ourworldindata>

You can use TemplateStyles to further style the generated <iframe> by targeting iframe.owid-frame in your CSS.

See alsoEdit