Jump to content

Template:Four digit: Difference between revisions

simplify code
m (→‎See also: create & add)
(simplify code)
Line 1: Line 1:
{{ #ifexpr: ({{{1|0}}} > 999.5) | {{{1|0}}} |
{{padleft:{{{1|0}}}|4|0}}<noinclude>{{documentation|content=
{{ #ifexpr: ({{{1|0}}} > 99.5) | 0{{#expr:{{{1|0}}}}} |
{{ #ifexpr: ({{{1|0}}} > 9.5) | 00{{#expr:{{{1|0}}}}} | 000{{#expr:{{{1|0}}}}}
}} }} }}<noinclude>{{documentation|content=
===Usage===
===Usage===
Makes any number padded to four digits.
Makes any number padded to four digits.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.