Template:Coindisplay: Difference between revisions
From IdleOn MMO Wiki
imported>Kiokurashi No edit summary |
imported>Kiokurashi No edit summary |
||
Line 1: | Line 1: | ||
{{#iferror: {{#expr: floor({{{1}}})}} | ? |<!-- | {{#iferror: {{#expr: floor({{{1|0}}})}} | ? |<!-- | ||
-->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{1}}} div 100^0) mod 100 }} | 0}} }}<!-- | -->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{1}}} div 100^0) mod 100 }} | 0}} }}<!-- | ||
-->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{1}}} div 100^1) mod 100 }} | 0}} }}<!-- | -->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{1}}} div 100^1) mod 100 }} | 0}} }}<!-- | ||
Line 6: | Line 6: | ||
-->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{1}}} div 100^4)}} | 0}} }}<!-- | -->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{1}}} div 100^4)}} | 0}} }}<!-- | ||
-->{{#ifexpr: {{#var: coin5}} > 0 | [[File:Dementia Coin.png]]{{#var: coin5}}}} <!-- | -->{{#ifexpr: {{#var: coin5}} > 0 | [[File:Dementia Coin.png]]{{#var: coin5}}}}{{#if:{{{2|}}}|<br/>}} <!-- | ||
-->{{#ifexpr: {{#var: coin4}} > 0 | [[File:Platinum Coin.png]]{{#var: coin4}}}} <!-- | -->{{#ifexpr: {{#var: coin4}} > 0 | [[File:Platinum Coin.png]]{{#var: coin4}}}}{{#if:{{{2|}}}|<br/>}} <!-- | ||
-->{{#ifexpr: {{#var: coin3}} > 0 | [[File:Gold Coin.png]]{{#var: coin3}}}} <!-- | -->{{#ifexpr: {{#var: coin3}} > 0 | [[File:Gold Coin.png]]{{#var: coin3}}}}{{#if:{{{2|}}}|<br/>}} <!-- | ||
-->{{#ifexpr: {{#var: coin2}} > 0 | [[File:Silver Coin.png]]{{#var: coin2}}}} <!-- | -->{{#ifexpr: {{#var: coin2}} > 0 | [[File:Silver Coin.png]]{{#var: coin2}}}}{{#if:{{{2|}}}|<br/>}} <!-- | ||
-->{{#ifexpr: {{#var: coin1}} > 0 | [[File:Copper Coin.png]]{{#var: coin1}}}}<!-- | -->{{#ifexpr: {{#var: coin1}} > 0 | [[File:Copper Coin.png]]{{#var: coin1}}}}<!-- | ||
-->}} | -->}} |