Difference between revisions of "Template:COVID-19 pandemic data/Per capita/death calculator"

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(accidentally blanked oops; trying again)
imported>Timbaaa
(Trying something)
Line 1: Line 1:
{{safesubst:<noinclude/>#switch:{{{country}}}
+
{{#switch:{{{country}}}
 
|Afghanistan =
 
|Afghanistan =
 
{{round|{{#expr: 1000000*{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q87768605|P1120|list=p-1}}|R}}/{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q889|P1082|list=p-1}}|R}} }} |0}}
 
{{round|{{#expr: 1000000*{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q87768605|P1120|list=p-1}}|R}}/{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q889|P1082|list=p-1}}|R}} }} |0}}

Revision as of 02:47, 7 June 2020

Template documentation

This template helps Template:COVID-19 pandemic data/Per capita calculate the number of deaths per million population, importing data from Wikidata. It takes as a parameter |country=, which should be set to the name of the country's Wikipedia page. If the article title differs from the standard format ("COVID-19 pandeminc in [Country name]"), |pandemic= may be used, set to the name of the pandemic article.

See also: Template:COVID-19 pandemic data/Per capita/case calculator