Difference between revisions of "Template:US$"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>MSGJ
(add support for year parameter (code by Yarnalgo))
imported>Timotheus Canens
(Per tp request, from Template:US$/sandbox)
Line 1: Line 1:
[[United States dollar|US$]]{{formatnum: {{{1<includeonly>|</includeonly>}}}}}{{#if: {{{year|{{{2|}}} }}}
+
[[United States dollar|US$]]{{formatnum: {{{1<includeonly>|</includeonly>}}}}}{{#if:{{{year|{{{2|}}} }}}
 +
| {{#ifexpr: {{{year|{{{2|}}} }}} < {{CURRENTYEAR}}
 +
| {{#ifexpr: {{{year|{{{2|}}} }}} > 1799
 +
 
 
  |&nbsp;({{#if: {{{about|}}}
 
  |&nbsp;({{#if: {{{about|}}}
   |about ${{formatnum: {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 0}}}}
+
   |about ${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r=0}} }}
  |${{formatnum: {{#ifexpr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} = {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}}}} round 1}}
+
  |${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r=2}} }}
  |{{#ifexpr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} = {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 0}}
+
}} in {{CURRENTYEAR}}) }} }} }}<noinclude>
    |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} }}
 
    |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} }}0
 
  }}
 
  |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 2}}
 
  }}
 
}}
 
}} in 2010)}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 06:08, 17 May 2010

US${{{1}}}

Template documentation[create]