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

From blackwiki
Jump to navigation Jump to search
Line 11: Line 11:
 
  |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}}}}}}}}}{{nbsp}}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=3}}
+
  |ratio    = {{percentage|{{{deaths}}}|{{{confirmed}}}|sigfig=7}}
 
  |date      = {{{date}}}
 
  |date      = {{{date}}}
 
  |time      = {{{time}}}
 
  |time      = {{{time}}}

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