Difference between revisions of "Template:US$"
Jump to navigation
Jump to search
imported>Thumperward (collapsing whitespace, per talk) |
imported>MSGJ (add "link" parameter to link to United States dollar turning off by default per discussion, also whitespace tweaks) |
||
Line 1: | Line 1: | ||
− | <span style="white-space: nowrap">[[United States dollar|US$]]{{formatnum:{{{1|}}}}}</span>{{#if:{{{year|{{{2|}}}}}}|{{#ifexpr:{{{year|{{{2|}}}}}}<{{CURRENTYEAR}}|{{#ifexpr:{{{year|{{{2|}}}}}}>1799| ({{#if:{{{about|}}}|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}}}}}}}}}}} in {{CURRENTYEAR}})}}}}}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> | + | <span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes |
+ | |[[United States dollar|US$]] | ||
+ | |US$ | ||
+ | }}{{formatnum:{{{1|}}}}}</span>{{#if:{{{year|{{{2|}}}}}} | ||
+ | |{{#ifexpr:{{{year|{{{2|}}}}}}<{{CURRENTYEAR}} | ||
+ | |{{#ifexpr:{{{year|{{{2|}}}}}}>1799 | ||
+ | | ({{#if:{{{about|}}} | ||
+ | |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}}}}}}}}} | ||
+ | }} in {{CURRENTYEAR}}) | ||
+ | }} | ||
+ | }} | ||
+ | }}<noinclude> | ||
+ | {{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
+ | </noinclude> |