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))
m (1 revision imported)
 
(15 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[United States dollar|US$]]{{formatnum: {{{1<includeonly>|</includeonly>}}}}}{{#if: {{{year|{{{2|}}} }}}
+
<span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes
|&nbsp;({{#if: {{{about|}}}
+
|[[United States dollar|{{#ifeq:{{{long|yes}}}|yes|US|}}$]]
  |about ${{formatnum: {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 0}}}}
+
|{{#ifeq:{{{long|yes}}}|yes|US|}}$
  |${{formatnum: {{#ifexpr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} = {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}}}} round 1}}
+
}}{{formatnum:{{{1|}}}}}</span><!--
  |{{#ifexpr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} = {{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 0}}
+
-->{{#ifeq:{{{year|{{{2|0}}}}}}|0||{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation/year|US}}
    |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} }}
+
|&#32;({{#if:{{{about|}}}
    |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} }}0
+
  |equivalent to about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}
  }}
+
  |equivalent to ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|{{#ifexpr:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}}}>1000|0|2}}}}}}}}}
  |{{#expr: {{US$/Inflation|year={{{year|}}}|2={{{2|}}}|1={{{1|}}} }} round 2}}
+
  }} in {{Inflation/year|US}})
  }}
+
}}}}<noinclude>
  }}
+
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
}} in 2010)}}<noinclude>
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:55, 9 March 2020

US$

Template documentation[create]