Difference between revisions of "Template:US$"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Thumperward
(sync with sandbox, per talk)
m (1 revision imported)
 
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<span style="white-space: nowrap">[[United States dollar|US$]]{{formatnum: {{{1<includeonly>|</includeonly>}}}}}</span> {{#if:{{{year|{{{2|}}} }}}
+
<span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes
| {{#ifexpr: {{{year|{{{2|}}} }}} < {{CURRENTYEAR}}
+
|[[United States dollar|{{#ifeq:{{{long|yes}}}|yes|US|}}$]]
| {{#ifexpr: {{{year|{{{2|}}} }}} > 1799
+
|{{#ifeq:{{{long|yes}}}|yes|US|}}$
 
+
}}{{formatnum:{{{1|}}}}}</span><!--
  | ({{#if: {{{about|}}}
+
-->{{#ifeq:{{{year|{{{2|0}}}}}}|0||{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation/year|US}}
   |about ${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r={{{round|0}}}}} }}
+
  |&#32;({{#if:{{{about|}}}
   |${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}
+
   |equivalent to about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}
  |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 {{CURRENTYEAR}}) }} }} }}<noinclude>
+
}} in {{Inflation/year|US}})
{{documentation}}
+
}}}}<noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
{{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]