Template:Inflation and Template:Inflation/sandbox: Difference between pages

From HandWiki
(Difference between pages)
Page 1
Page 2
imported>Jworkorg
(import)
 
imported>Jworkorg
m (1 revision imported)
 
Line 87: Line 87:
begin template proper
begin template proper
-->{{#ifeq:{{{fmt|raw}}}|eq|equivalent to {{{cursign|$}}}}}<!--
-->{{#ifeq:{{{fmt|raw}}}|eq|equivalent to {{{cursign|$}}}}}<!--
-->{{#ifeq:{{{fmt|raw}}}|eqm|equivalent to {{{cursign|$}}}}}<!--
-->{{formatnum:
-->{{formatnum:
     {{
     {{
     #iferror:
     #iferror:
     {{#invoke:Math|round|1={{
     {{round|1={{
     #expr:
     #expr:
       {{formatnum:{{{value|{{{2}}}}}}|R}}
       {{formatnum:{{{value|{{{2}}}}}}|R}}
Line 97: Line 98:
         | {{Inflation/{{{index|{{{1}}}}}}|{{{start_year|{{{3}}}}}}|{{{end_year|{{{4|{{Inflation/year|{{{index|{{{1}}}}}}}}}}}}}}}}
         | {{Inflation/{{{index|{{{1}}}}}}|{{{start_year|{{{3}}}}}}|{{{end_year|{{{4|{{Inflation/year|{{{index|{{{1}}}}}}}}}}}}}}}}
         }}
         }}
      round {{{r|0}}}
     }}|2={{{r|0}}}}}
     }}|2={{{r|0}}}}}
     |<span class="error">Error when using {{tl|Inflation}}:<!--
     |<span class="error">Error when using {{tl|Inflation}}:<!--
   --> [[NaN]]/calculation error, please notify [[Finance:Inflation|Inflation]].</span><!--
   --> [[NaN]]/calculation error, please notify [[Template talk:Inflation]].</span><!--
   -->{{main other|[[Category:Pages with errors in inflation template]]}}<!--
   -->{{main other|[[Category:Pages with errors in inflation template]]}}<!--
     this error indicates template bug, always categorize
     this error indicates template bug, always categorize
Line 107: Line 107:
   }}<!--
   }}<!--
-->{{#ifeq:{{{fmt|raw}}}|eq|&#32;in<!--
-->{{#ifeq:{{{fmt|raw}}}|eq|&#32;in<!--
--> {{<!--
  -->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!--
  -->|{{CURRENTYEAR}}<!--
  -->|{{{end_year|{{{4|{{Inflation/year|{{{index|{{{1}}}}}}}}}}}}}}<!--
  -->}}<!--
-->}}<!--
-->{{#ifeq:{{{fmt|raw}}}|eqm|&#32;million in<!--
  --> {{<!--
  --> {{<!--
   -->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!--
   -->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!--