Difference between revisions of "Template:US$"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Graeme Bartlett
m (Changed protection level of Template:US$: requested at WP:RFPP to allow potential improvements (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
imported>Djr13
(pull years from data sources rather than hardcoding; reduce some redundant logic steps)
Line 2: Line 2:
 
  |[[United States dollar|US$]]
 
  |[[United States dollar|US$]]
 
  |US$
 
  |US$
}}{{formatnum:{{{1|}}}}}</span>{{#if:{{{year|{{{2|}}}}}}
+
}}{{formatnum:{{{1|}}}}}</span><!--
|{{#ifexpr:{{{year|{{{2|}}}}}}<{{CURRENTYEAR}}
+
-->{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<={{Inflation-year|US}}
  |{{#ifexpr:{{{year|{{{2|}}}}}}>1799
+
|&#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}}}}}}}
+
  |${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|{{#ifexpr:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}}}>1000|0|2}}}}}}}}}
    |${{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 {{CURRENTYEAR}})
 
  }}
 
}}
 
 
}}</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 08:24, 13 March 2016

Template documentation[create]