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

From blackwiki
Jump to navigation Jump to search
imported>Timbaaa
(Trying something)
imported>Zamboniroadkill
m (copy edited~~~~)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{{country}}}
+
{{safesubst:<noinclude/>#switch:{{{country}}}
 
|Afghanistan =
 
|Afghanistan =
 
{{round|{{#expr: 1000000*{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q87768605|P1603|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|P1603|list=p-1}}|R}}/{{formatnum:{{#invoke:WikidataIB|getValue|ps=1|qid=Q889|P1082|list=p-1}}|R}} }} |0}}
Line 393: Line 393:
  
 
==Usage==
 
==Usage==
This template helps [[Template:COVID-19 pandemic data/Per capita]] calculate the number of cases per million population, importing data from Wikidata. It takes as a parameter {{para|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]"), {{para|pandemic}} may be used, set to the name of the country used for the pandemic article.
+
This template helps [[Template:COVID-19 pandemic data/Per capita]] calculate the number of cases per million population, importing data from Wikidata. It takes as a parameter {{para|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 pandemic in [Country name]"), {{para|pandemic}} may be used, set to the name of the country used for the pandemic article.
  
 
==Examples==
 
==Examples==

Latest revision as of 01:37, 3 July 2020

50px Template documentation

Usage

This template helps Template:COVID-19 pandemic data/Per capita calculate the number of cases 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 pandemic in [Country name]"), |pandemic= may be used, set to the name of the country used for the pandemic article.

Examples


See also