Difference between revisions of "Template:Cases in the COVID-19 pandemic/core"
Jump to navigation
Jump to search
Template documentation
imported>MarioGom |
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)}}}}}} | ||
| − | |||
|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
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.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |