Template:Four digit: Difference between revisions

    From Nonbinary Wiki
    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.

    Revision as of 21:14, 12 February 2014

    0000

    Template documentation

    Usage

    Makes any number padded to four digits.

    Examples

    See also