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)
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
  |confirmed = {{formatnum:{{{confirmed}}}}}
 
  |confirmed = {{formatnum:{{{confirmed}}}}}
 
  |conroundno = {{formatnum:{{Rounddown|{{{confirmed}}}|{{#expr:-1*({{order of magnitude|{{{confirmed}}}}}-2)}}}}}}
 
  |conroundno = {{formatnum:{{Rounddown|{{{confirmed}}}|{{#expr:-1*({{order of magnitude|{{{confirmed}}}}}-2)}}}}}}
  |conround  = {{formatnum:{{Rounddown|{{{confirmed}}}/10^6|8-{{order of magnitude|{{{confirmed}}}}}}}}} million<!-- update parameters at billion -->
+
  |conround  = {{formatnum:{{Rounddown|{{{confirmed}}}/10^6|8-{{order of magnitude|{{{confirmed}}}}}}}}}{{nbsp}}million<!-- update parameters at billion -->
 
  |deaths    = {{formatnum:{{{deaths}}}}}
 
  |deaths    = {{formatnum:{{{deaths}}}}}
  |dround    = {{formatnum:{{Rounddown|{{{deaths}}}|{{#expr:-1*({{order of magnitude|{{{deaths}}}}}-2)}}}}}}
+
  |dround    = {{formatnum:{{Rounddown|{{{deaths}}}/10^6|8-{{order of magnitude|{{{deaths}}}}}}}}}{{nbsp}}million<!-- update parameters at billion -->
|droundt  = {{formatnum:{{Rounddown|{{{deaths}}}/10^3|0}}}} thousand
 
 
  |recovered = {{formatnum:{{{recovered}}}}}
 
  |recovered = {{formatnum:{{{recovered}}}}}
  |recround  = {{formatnum:{{Rounddown|{{{recovered}}}/10^6|8-{{order of magnitude|{{{recovered}}}}}}}}} million<!-- update parameters at billion -->
+
  |recround  = {{formatnum:{{Rounddown|{{{recovered}}}/10^6|8-{{order of magnitude|{{{recovered}}}}}}}}}{{nbsp}}million<!-- update parameters at billion -->
 
  |active    = {{formatnum:{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}
 
  |active    = {{formatnum:{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}
 
  |actroundno  = {{formatnum:{{Rounddown|{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}|{{#expr:-1*({{order of magnitude|{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}-2)}}}}}}
 
  |actroundno  = {{formatnum:{{Rounddown|{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}|{{#expr:-1*({{order of magnitude|{{#expr:{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}-2)}}}}}}
  |actround  = {{formatnum:{{Rounddown|({{{confirmed}}}-{{{deaths}}}-{{{recovered}}})/10^6|8-{{order of magnitude|{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}}} million<!-- update parameters at billion -->
+
  |actround  = {{formatnum:{{Rounddown|({{{confirmed}}}-{{{deaths}}}-{{{recovered}}})/10^6|8-{{order of magnitude|{{{confirmed}}}-{{{deaths}}}-{{{recovered}}}}}}}}}{{nbsp}}million<!-- update parameters at billion -->
 
  |ratio    = {{percentage|{{{deaths}}}|{{{confirmed}}}|sigfig=2}}
 
  |ratio    = {{percentage|{{{deaths}}}|{{{confirmed}}}|sigfig=2}}
 
  |date      = {{{date}}}
 
  |date      = {{{date}}}
Line 18: Line 17:
 
{{documentation|content=
 
{{documentation|content=
 
This sub-template formats and calculates the various numbers returned by {{t|Cases in the COVID-19 pandemic}} to minimize the risk of error and number of explicit values that need updating. '''This template should not be used directly'''.}}
 
This sub-template formats and calculates the various numbers returned by {{t|Cases in the COVID-19 pandemic}} to minimize the risk of error and number of explicit values that need updating. '''This template should not be used directly'''.}}
 +
[[Category:COVID-19 pandemic templates]]
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 21:13, 28 September 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.