Template:US$: Difference between revisions

From Sapphire Wiki
m 1 revision
 
en>Jonesey95
fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes
<span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes
  |[[United States dollar|US$]]
  |[[United States dollar|{{#ifeq:{{{long|yes}}}|yes|US|}}$]]
  |US$
  |{{#ifeq:{{{long|yes}}}|yes|US|}}$
}}{{formatnum:{{{1|}}}}}</span>{{#if:{{{year|{{{2|}}}}}}
}}{{formatnum:{{replace|{{{1|}}}|,|}}}}</span><!--
|{{#ifexpr:{{{year|{{{2|}}}}}}<{{CURRENTYEAR}}
-->{{#ifeq:{{{year|{{{2|0}}}}}}|0||{{#ifexpr:{{Inflation/US/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation/year|US}}
  |{{#ifexpr:{{{year|{{{2|}}}}}}>1799
|&#32;({{#if:{{{about|}}}
  |&#32;({{#if:{{{about|}}}
  |equivalent to about ${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}}
    |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}}}}}}}}}
    |${{formatnum:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|}}}{{{2|}}}|r={{{round|{{#ifexpr:{{Inflation|US|{{formatnum:{{{1|}}}|R}}|{{{year|}}}{{{2|}}}}}>1000|0|2}}}}}}}}}
}} in {{Inflation/year|US}})
  }} in {{CURRENTYEAR}})
}}}}<noinclude>
  }}
}}
}}</includeonly><noinclude>
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 15:05, 29 September 2020

US$