Template:Coindisplay: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
m (changed input from 1 to input for all templates that use it)
imported>Blackwolfe
m (Text replacement - "{{input}}" to "{{1}}")
Line 1: Line 1:
{{#iferror: {{#expr: floor({{{input}}})}} | ? |<!--
{{#iferror: {{#expr: floor({{{1}}})}} | ? |<!--
-->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{input}}} div 100^0) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{1}}} div 100^0) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{input}}} div 100^1) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{1}}} div 100^1) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{input}}} div 100^2) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{1}}} div 100^2) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{input}}} div 100^3) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{1}}} div 100^3) mod 100 }} | 0}} }}<!--
-->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{input}}} 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}}}} <!--

Revision as of 09:19, 26 December 2020

?