imported>BigCoight |
imported>Kyromyr |
Line 1: |
Line 1: |
| {{#switch: {{#len:{{{input}}}}} | | {{#iferror: {{#expr: floor({{{1}}})}} | ? |<!-- |
| |1=[[File:Copper Coin.png]] {{{input}}} | | -->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{1}}} div 100^0) mod 100 }} | 0}} }}<!-- |
| |2=[[File:Copper Coin.png]] {{{input}}} | | -->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{1}}} div 100^1) mod 100 }} | 0}} }}<!-- |
| |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}}}}
| | -->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{1}}} div 100^2) mod 100 }} | 0}} }}<!-- |
| |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}}}}
| | -->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{1}}} div 100^3) mod 100 }} | 0}} }}<!-- |
| |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}}}}
| | -->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{1}}} div 100^4) mod 100 }} | 0}} }}<!-- |
| |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}}}}
| | -->{{#ifexpr: {{#var: coin5}} > 0 | [[File:Dementia Coin.png]]{{#var: coin5}}}} <!-- |
| |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}}}}
| | -->{{#ifexpr: {{#var: coin4}} > 0 | [[File:Platinum Coin.png]]{{#var: coin4}} }} <!-- |
| |[[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}}}}
| | -->{{#ifexpr: {{#var: coin3}} > 0 | [[File:Gold Coin.png]]{{#var: coin3}}}} <!-- |
| }} | | -->{{#ifexpr: {{#var: coin2}} > 0 | [[File:Silver Coin.png]]{{#var: coin2}}}} <!-- |
| | -->{{#ifexpr: {{#var: coin1}} > 0 | [[File:Copper Coin.png]]{{#var: coin1}}}} <!-- |
| | -->}} |