Template:Coindisplay: Difference between revisions
From IdleOn MMO Wiki
imported>Kyromyr m (Don't modulo the final coin.) |
imported>BigCoight m (changed input from 1 to input for all templates that use it) |
||
Line 1: | Line 1: | ||
{{#iferror: {{#expr: floor({{{ | {{#iferror: {{#expr: floor({{{input}}})}} | ? |<!-- | ||
-->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{ | -->{{#vardefine: coin1 | {{#iferror: {{#expr: floor({{{input}}} div 100^0) mod 100 }} | 0}} }}<!-- | ||
-->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{ | -->{{#vardefine: coin2 | {{#iferror: {{#expr: floor({{{input}}} div 100^1) mod 100 }} | 0}} }}<!-- | ||
-->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{ | -->{{#vardefine: coin3 | {{#iferror: {{#expr: floor({{{input}}} div 100^2) mod 100 }} | 0}} }}<!-- | ||
-->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{ | -->{{#vardefine: coin4 | {{#iferror: {{#expr: floor({{{input}}} div 100^3) mod 100 }} | 0}} }}<!-- | ||
-->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{ | -->{{#vardefine: coin5 | {{#iferror: {{#expr: floor({{{input}}} 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 05:59, 23 November 2020
?