Template:Coindisplay: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
(Replaced content with "{{#invoke:Loops|coinDisplay |coins={{{1|0}}} }}")
Line 1: Line 1:
{{#iferror: {{#expr: floor({{{1|0}}})}} | ? |<!--
{{#invoke:Loops|coinDisplay
-->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{1}}} div 100^0) mod 100 }} | 0}} }}<!--
|coins={{{1|0}}}
-->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{1}}} div 100^1) mod 100 }} | 0}} }}<!--
}}
-->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{1}}} div 100^2) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{1}}} div 100^3) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{1}}} div 100^4) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin6 | {{#iferror: {{#expr: floor({{{1}}} div 100^5) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin7 | {{#iferror: {{#expr: floor({{{1}}} div 100^6) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin8 | {{#iferror: {{#expr: floor({{{1}}} div 100^7) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin9 | {{#iferror: {{#expr: floor({{{1}}} div 100^8) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin10 | {{#iferror: {{#expr: floor({{{1}}} div 100^9)}} | 0}} }}<!--
 
-->{{#ifexpr: {{#var: coin10}} > 0 | [[File:Godshard Coin.png|22px|link=]]{{#var: coin10}}}} <!--
-->{{#ifexpr: {{#var: coin9}} > 0 | [[File:Dreadlo Coin.png|22px|link=]]{{#var: coin9}}}} <!--
-->{{#ifexpr: {{#var: coin8}} > 0 | [[File:Starfire Coin.png|22px|link=]]{{#var: coin8}}}} <!--
-->{{#ifexpr: {{#var: coin7}} > 0 | [[File:Lustre Coin.png|22px|link=]]{{#var: coin7}}}} <!--
-->{{#ifexpr: {{#var: coin6}} > 0 | [[File:Void Coin.png|22px|link=]]{{#var: coin6}}}}<!--
-->{{#ifexpr: {{#var: coin5}} > 0 | [[File:Dementia Coin.png|link=]]{{#var: coin5}}}} <!--
-->{{#ifexpr: {{#var: coin4}} > 0 | [[File:Platinum Coin.png|link=]]{{#var: coin4}}}} <!--
-->{{#ifexpr: {{#var: coin3}} > 0 | [[File:Gold Coin.png|link=]]{{#var: coin3}}}} <!--
-->{{#ifexpr: {{#var: coin2}} > 0 | [[File:Silver Coin.png|link=]]{{#var: coin2}}}} <!--
-->{{#ifexpr: {{#var: coin1}} > 0 | [[File:Copper Coin.png|link=]]{{#var: coin1}}}}<!--
-->}}

Revision as of 05:38, 5 October 2021

Script error: The function "coinDisplay" does not exist.