Template:Currency: Difference between revisions

adding a way to have ranges of amounts instead of just one
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span style="white-space:nowrap">[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size}}}|x20px}}|link={{#if:{{{link|}}}|{{{link}}}}}|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}]]{{#if:{{{amount|}}}|&nbsp;{{formatnum:{{{amount|}}}}}{{#if:{{{amount 2|}}}|–{{formatnum:{{{amount 2|}}}}}}}}}{{#if:{{{show name|}}}|&nbsp;{{#if:{{{show link|}}}|[[{{{link|{{{name}}}}}}|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}]]|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}}}}}</span></includeonly><noinclude>{{/doc}}</noinclude>
<includeonly><span style="white-space:nowrap">[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size}}}|x20px}}|link={{#if:{{{link|}}}|{{#ifeq:{{PAGENAME}}|{{{link}}}||{{{link}}}}}}}|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}]]{{#if:{{{amount|}}}|&nbsp;{{formatnum:{{{amount|}}}}}{{#if:{{{amount 2|}}}|–{{formatnum:{{{amount 2|}}}}}}}}}</span>{{#if:{{{show name|}}}|&nbsp;{{#if:{{{show link|}}}|[[{{{link|{{{name}}}}}}|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}]]|{{PLURAL:{{#if:{{{amount 2|}}}|{{{amount 2}}}|{{#if:{{{amount|}}}|{{{amount}}}|0}}}}|{{{name}}}|{{{plural}}}}}}}}}</includeonly><noinclude>{{/doc}}</noinclude>