Template:Numdisplay: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
mNo edit summary
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#iferror: {{#expr: floor({{{1}}})}} | ? |<!--
{{#ifeq:{{{1|}}}|Lots|{{{1}}}|{{#invoke:NumberFormater|main|{{{1|1}}}|formattype=tooltip}}<!--  
-->{{#vardefine: coin1 | {{#iferror: {{#expr: {{{1}}}}} fmod 100| 0}} }}<!--
ifeq closing tag -->}}
-->{{#vardefine: coin2 | {{#iferror: {{#expr: {{{1}}} div 1000^1 fmod 100 }} | 0}} }}<!--
-->{{#vardefine: coin3 | {{#iferror: {{#expr: {{{1}}} div 1000^2 fmod 100 }} | 0}} }}<!--
-->{{#vardefine: coin4 | {{#iferror: {{#expr: {{{1}}} div 1000^3 fmod 100 }} | 0}} }}<!--
 
-->{{#ifexpr: {{#var: coin4}} > 0 | {{#var: coin4}}B}} <!--
-->{{#ifexpr: {{#var: coin3}} > 0 | {{#var: coin3}}M}} <!--
-->{{#ifexpr: {{#var: coin2}} > 0 | {{#var: coin2}}K}} <!--
-->{{#ifexpr: {{#var: coin1}} < 1000 | {{#var: coin1}}}}<!--
-->}}

Latest revision as of 02:32, 22 April 2024

1