Template:5Digit

From HorizonXI Wiki
Revision as of 23:46, 10 January 2023 by Spiffly (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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