Template:NumberFormatPad: Difference between revisions

Jump to navigation Jump to search
m
namespacing
No edit summary
m (namespacing)
Line 1: Line 1:
<onlyinclude>{{#vardefine:_numlen|{{#invoke:String|len|{{#number_format:{{{1}}}|0|||{{{5|}}}}}}}}}{{#ifexpr:{{{pad|0}}}>{{#var:_numlen}}|{{#loop:_i|{{{pad}}}|{{#expr:{{#var:_numlen}}-{{{pad}}}}}|0{{#ifexpr:{{#var:_i}}mod3=1|{{#switch:{{{4}}}|n=&nbsp;|t=&thinsp;|{{{4|,}}}}}}}}}}}{{#number_format:{{{1}}}|{{{2|0}}}|{{{3|.}}}|{{{4|,}}}|{{{5|}}}}}</onlyinclude>
<onlyinclude>{{#vardefine:_nmfmpd_numlen|{{#invoke:String|len|{{#number_format:{{{1}}}|0|||{{{5|}}}}}}}}}{{#ifexpr:{{{pad|0}}}>{{#var:_nmfmpd_numlen}}|{{#loop:_nmfmpd_i|{{{pad}}}|{{#expr:{{#var:_nmfmpd_numlen}}-{{{pad}}}}}|0{{#ifexpr:{{#var:_nmfmpd_i}}mod3=1|{{#switch:{{{4}}}|n=&nbsp;|t=&thinsp;|{{{4|,}}}}}}}}}}}{{#number_format:{{{1}}}|{{{2|0}}}|{{{3|.}}}|{{{4|,}}}|{{{5|}}}}}</onlyinclude>


* {{NumberFormatPad|0|pad=1}}
* {{NumberFormatPad|0|pad=1}}
37

edits

Navigation menu