Difference between revisions of "Template:PrefixZero"
From Rollo
(Created page with "{{#ifexpr: {{{1|1}}} < 10 | 00{{{1|1}}} | {{#ifexpr: {{{1|1}}} < 100 | 0{{{1|1}}} | {{NM|{{{1|}}}}}}}}}<noinclude> Category:Templates ==Usage== <pre>{{PrefixZero|1}}}</pr...") |
|||
Line 1: | Line 1: | ||
− | {{#ifexpr: {{{1|1}}} < 10 | 00{{{1|1}}} | {{#ifexpr: {{{1|1}}} < 100 | 0{{{1|1}}} | + | {{#ifexpr: {{{1|1}}} < 10 | 00{{{1|1}}} | {{#ifexpr: {{{1|1}}} < 100 | 0{{{1|1}}} | {{{1|}}}}}}}<noinclude> |
[[Category:Templates]] | [[Category:Templates]] | ||
Latest revision as of 17:43, 22 February 2019
001
Usage
{{PrefixZero|1}}}
Replacing "1" with any digit less than 10 returns a number with two 0s in front of it. E.g., "001".
Replacing "1" with any digit more than 9 but less than 100 a number with two 0s in front of it. E.g., "010".