Difference between revisions of "Template:US$"
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 | ||
+ | |||
| ({{#if: {{{about|}}} | | ({{#if: {{{about|}}} | ||
− | |about ${{formatnum: {{ | + | |about ${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r=0}} }} |
− | + | |${{formatnum: {{Inflation|US|{{formatnum: {{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r=2}} }} | |
− | + | }} in {{CURRENTYEAR}}) }} }} }}<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> |