Template:5Digit: Difference between revisions
From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude>{{#ifeq: {{#len:{{{1}}}}} | 5 | {{{1}}} | {{#ifeq: {{#len:{{{1}}}}} | 4 | 0{{{1}}} | {{#ifeq: {{#len:{{{1}}}}} | 3 | 00{{{1}}} | {{#ifeq: {{#len:{{{1}}}}} | 2 | 000{{{1}}} | {{#ifeq: {{#len:{{{1}}}}} | 1 | 0000{{{1}}} | 5D plz }}}}}}}}}}</onlyinclude></includeonly> ==Usage== Template used for formatting leading zeroes onto numbers with less than five digits. Designed so that {{tl|Item Statistics}} icon id parameter did not need to have the user...") Tag: visualeditor-wikitext |
(No difference)
|
Latest revision as of 23:46, 10 January 2023
Usage
Template used for formatting leading zeroes onto numbers with less than five digits. Designed so that {{Item Statistics}} icon id parameter did not need to have the user input the leading zeroes.
Examples
{{5Digit|1}} gives:
- 00001
{{5Digit|69}} gives:
- 00069
{{5Digit|666}} gives:
- 00666
{{5Digit|9999}} gives:
- 09999
{{5Digit|74656}} gives:
- 74656
{{5Digit|Haldarn}} gives:
- 5D plz
