Difference between revisions of "Template:US$"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Djr13
(pull years from data sources rather than hardcoding; reduce some redundant logic steps)
imported>Djr13
(avoid redundant inflation calculation if specified year is the same as the year it would calculate)
Line 3: Line 3:
 
  |US$
 
  |US$
 
}}{{formatnum:{{{1|}}}}}</span><!--
 
}}{{formatnum:{{{1|}}}}}</span><!--
-->{{#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}}}}}}}
 
   |about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}

Revision as of 07:09, 15 March 2016

Template documentation[create]