Template:Coindisplay: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
mNo edit summary
(Attached documentation page to template.)
 
(39 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#switch: {{#len:{{{input}}}}}
<includeonly>{{#invoke:CoinDisplay|main}}</includeonly><noinclude>{{/doc}}</noinclude>
|1=[[File:Copper Coin.png]] {{{input}}}
|2=[[File:Copper Coin.png]] {{{input}}}
|3=[[File:Silver Coin.png]] {{#sub:{{{input}}}|0|1}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|4=[[File:Silver Coin.png]] {{#sub:{{{input}}}|0|2}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|5=[[File:Gold Coin.png]] {{#sub:{{{input}}}|0|1}} {{#switch: {{#sub:{{{input}}}|-4|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Silver Coin.png]] {{#sub:{{{input}}}|-3|1}}|[[File:Silver Coin.png]] {{#sub:{{{input}}}|-4|2}}}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|6=[[File:Gold Coin.png]] {{#sub:{{{input}}}|0|2}} {{#switch: {{#sub:{{{input}}}|-4|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Silver Coin.png]] {{#sub:{{{input}}}|-3|1}}|[[File:Silver Coin.png]] {{#sub:{{{input}}}|-4|2}}}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|7=[[File:Platinum Coin.png]] {{#sub:{{{input}}}|0|1}} {{#switch: {{#sub:{{{input}}}|-6|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-5|1}}|[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-6|2}}}} {{#switch: {{#sub:{{{input}}}|-4|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Silver Coin.png]] {{#sub:{{{input}}}|-3|1}}|[[File:Silver Coin.png]] {{#sub:{{{input}}}|-4|2}}}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|8=[[File:Platinum Coin.png]] {{#sub:{{{input}}}|0|2}} {{#switch: {{#sub:{{{input}}}|-6|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-5|1}}|[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-6|2}}}} {{#switch: {{#sub:{{{input}}}|-4|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Silver Coin.png]] {{#sub:{{{input}}}|-3|1}}|[[File:Silver Coin.png]] {{#sub:{{{input}}}|-4|2}}}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
|[[File:Dementia Coin.png]] {{#sub:{{{input}}}|0|-8}} {{#switch: {{#sub:{{{input}}}|-8|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Platinum Coin.png]] {{#sub:{{{input}}}|-7|1}}|[[File:Platinum Coin.png]]  {{#sub:{{{input}}}|-8|2}}}} {{#switch: {{#sub:{{{input}}}|-6|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-5|1}}|[[File:Gold Coin.png]]  {{#sub:{{{input}}}|-6|2}}}} {{#switch: {{#sub:{{{input}}}|-4|2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Silver Coin.png]] {{#sub:{{{input}}}|-3|1}}|[[File:Silver Coin.png]] {{#sub:{{{input}}}|-4|2}}}} {{#switch: {{#sub:{{{input}}}|-2}}|00=|01|02|03|04|05|06|07|08|09=[[File:Copper Coin.png]] {{#sub:{{{input}}}|-1}}|[[File:Copper Coin.png]] {{#sub:{{{input}}}|-2}}}}
}}

Latest revision as of 23:03, 13 June 2024

The Coindisplay template displays the coin representation of a value.

Usage

{{Coindisplay|value}}

Parameters

  • value: The quantity to format. This can be specified in any of the formats supported by Module:NumberParser.

Examples

Template Result
{{Coindisplay|12750250}} Platinum Coin.png12 Gold Coin.png75 Silver Coin.png2 Copper Coin.png50
{{Coindisplay|2.7e15}} Starfire Coin.png27
{{Coindisplay|15T}} Lustre Coin.png15