Difference between revisions of "Template:Cases in the COVID-19 pandemic/core"

From blackwiki
Jump to navigation Jump to search
imported>Feelthhis
(unused)
imported>Feelthhis
(3sf million per consensus)
Line 7: Line 7:
 
  |droundt  = {{formatnum:{{Rounddown|{{{deaths}}}/10^3|0}}}} thousand
 
  |droundt  = {{formatnum:{{Rounddown|{{{deaths}}}/10^3|0}}}} thousand
 
  |recovered = {{formatnum:{{{recovered}}}}}
 
  |recovered = {{formatnum:{{{recovered}}}}}
  |recround  = {{formatnum:{{Rounddown|{{{recovered}}}|{{#expr:-1*({{order of magnitude|{{{recovered}}}}}-2)}}}}}}  
+
  |recround  = {{formatnum:{{Rounddown|{{{recovered}}}/10^6|8-{{order of magnitude|{{{recovered}}}}}}}}} million<!-- update parameters at billion -->
 
  |recroundt = {{formatnum:{{Rounddown|{{{recovered}}}/10^3|0}}}} thousand  
 
  |recroundt = {{formatnum:{{Rounddown|{{{recovered}}}/10^3|0}}}} thousand  
 
  |active    = {{formatnum:{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}
 
  |active    = {{formatnum:{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}

Revision as of 23:51, 30 April 2020

Template documentation

This sub-template formats and calculates the various numbers returned by Template:T to minimize the risk of error and number of explicit values that need updating. This template should not be used directly.