Template:Numdisplay: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Blackwolfe
No edit summary
Line 5: Line 5:
-->{{#vardefine: coin4 | {{#iferror: {{#expr: {{{1}}} div 10^9 fmod 1000 }} | 0}} }}<!--
-->{{#vardefine: coin4 | {{#iferror: {{#expr: {{{1}}} div 10^9 fmod 1000 }} | 0}} }}<!--


-->{{#ifexpr: {{{1}}} >= 10^9 |{{#ifexpr: {{#var: coin4}} > 0 | {{#var: coin4}}B}}}} <!--
-->{{#ifexpr: {{{1}}} >= 10^9 AND {{{1}}} |{{#ifexpr: {{#var: coin4}} > 0 | {{#var: coin4}}B}}}} <!--
-->{{#ifexpr: {{{1}}} >= 10^6 |{{#ifexpr: {{#var: coin3}} > 0 | {{#var: coin3}}M}}}} <!--
-->{{#ifexpr: {{{1}}} >= 10^6 AND {{{1}}} < 10^9|{{#ifexpr: {{#var: coin3}} > 0 | {{#var: coin3}}M}}}} <!--
-->{{#ifexpr: {{{1}}} >= 10^3 |{{#ifexpr: {{#var: coin2}} > 0 | {{#var: coin2}}K}}}} <!--
-->{{#ifexpr: {{{1}}} >= 10^3 AND {{{1}}} < 10^6|{{#ifexpr: {{#var: coin2}} > 0 | {{#var: coin2}}K}}}} <!--
-->{{#ifexpr: {{{1}}} < 1000 | {{#var: coin1}}}}<!--
-->{{#ifexpr: {{{1}}} < 1000 AND {{{1}}}| {{#var: coin1}}}}<!--
-->}}
-->}}

Revision as of 23:52, 11 December 2020

?