Difference between revisions of "Template:COVID-19 pandemic data/Per capita/death calculator"
Jump to navigation
Jump to search
Template documentation
imported>Timbaaa (Trying something) |
imported>Timbaaa |
||
| Line 1: | Line 1: | ||
| − | {{#switch:{{{country}}} | + | {{safesubst:<noinclude/>#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}} | ||
Latest revision as of 02:56, 7 June 2020
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
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |