Difference between pages "Template:Inflation" and "Template:Inflation/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
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: | ||
− | {{ | + | {{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}}}}}}}}}}}}}}}} | ||
}} | }} | ||
− | |||
}}|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| in<!-- | -->{{#ifeq:{{{fmt|raw}}}|eq| in<!-- | ||
+ | --> {{<!-- | ||
+ | -->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!-- | ||
+ | -->|{{CURRENTYEAR}}<!-- | ||
+ | -->|{{{end_year|{{{4|{{Inflation/year|{{{index|{{{1}}}}}}}}}}}}}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->{{#ifeq:{{{fmt|raw}}}|eqm| million in<!-- | ||
--> {{<!-- | --> {{<!-- | ||
-->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!-- | -->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!-- |