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

From blackwiki
Jump to navigation Jump to search
imported>MarioGom
(Undid revision 951771607 by MarioGom (talk))
imported>Feelthhis
(unused)
Line 11: Line 11:
 
  |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)}}}}}}
|actroundt  = {{formatnum:{{Rounddown|({{{confirmed}}}-{{{deaths}}}-{{{recovered}}})/10^3|0}}}} thousand<!-- update parameters at billion -->
 
 
  |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}}}}}}}}} million<!-- update parameters at billion -->
 
  |ratio    = {{percentage|{{{deaths}}}|{{{confirmed}}}|sigfig=2}}
 
  |ratio    = {{percentage|{{{deaths}}}|{{{confirmed}}}|sigfig=2}}

Revision as of 12:13, 25 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.