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

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
m (50 revisions imported)
 
imported>Hawkeye7
(Try this)
 
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}}:<!--
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}}<!--