Difference between revisions of "Template:Price"
Line 1: | Line 1: | ||
<includeonly><span class="no-wrap" data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true|{{#iferror:{{#expr:{{{1|0}}}>1}}|0|{{#expr:{{{1|}}}}}}}|{{{sortkey}}}}}}}">{{#iferror:{{#expr:{{{1|0}}}>1}}|{{{1|}}}|{{#switch:{{lc:{{{2|}}}}} | <includeonly><span class="no-wrap" data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true|{{#iferror:{{#expr:{{{1|0}}}>1}}|0|{{#expr:{{{1|}}}}}}}|{{{sortkey}}}}}}}">{{#iferror:{{#expr:{{{1|0}}}>1}}|{{{1|}}}|{{#switch:{{lc:{{{2|}}}}} | ||
− | |upgrade=[[File:Upgrade Module Icon.png|link=]]{{formatnum:{{{1|}}}}} | + | |upgrade=[[File:Upgrade Module Icon.png|18px|link=]]{{formatnum:{{{1|}}}}} |
|dna=[[File:DNA Fragment Icon.png|18px|link=]]{{formatnum:{{{1|}}}}} | |dna=[[File:DNA Fragment Icon.png|18px|link=]]{{formatnum:{{{1|}}}}} | ||
|zipher=[[File:Money_Icon.png|18px|link=]]{{formatnum:{{{1|}}}}} | |zipher=[[File:Money_Icon.png|18px|link=]]{{formatnum:{{{1|}}}}} | ||
|#default=[[File:Money_Icon.png|18px|link=]]{{formatnum:{{#expr:{{{1|}}}}}}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |#default=[[File:Money_Icon.png|18px|link=]]{{formatnum:{{#expr:{{{1|}}}}}}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Revision as of 12:41, 15 January 2021
Contents
Description
This template is used to insert File:Money Icon.png in-line with text before the amount.
Usage
This template can be used by entering the following onto a relevant page.
{{Price|''amount''}}
This template uses by default. To use different in-game currencies, add the appropriate name.
{{Price|''amount''|''currency''}}
Sample
{{Price|2000}}
results in...
2,000
{{Price|2}}k {{Price|2|Upgrade}} {{Price|20|DNA}}
results in...
2k
2
20
Amount
This parameter accepts the amount of currency.
Currency
This parameter accepts different currency types, but without input will simply output Zipher (money).
Input | Output |
---|---|
Upgrade | |
DNA |