Difference between revisions of "Template:US$"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Djr13
(avoid redundant inflation calculation if specified year is the same as the year it would calculate)
imported>Djr13
(avoid implying that the value /itself/ increased, by making it clear that the calculated value is an equivalent, using the wording which Template:Inflation uses)
Line 5: Line 5:
 
-->{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation-year|US}}
 
-->{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation-year|US}}
 
  |&#32;({{#if:{{{about|}}}
 
  |&#32;({{#if:{{{about|}}}
   |about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}
+
   |equivalent to about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}
   |${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|{{#ifexpr:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}}}>1000|0|2}}}}}}}}}
+
   |equivalent to ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|{{#ifexpr:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}}}>1000|0|2}}}}}}}}}
 
  }} in {{Inflation-year|US}})
 
  }} in {{Inflation-year|US}})
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 07:27, 15 March 2016

Template documentation[create]