Template:Four digit: Difference between revisions

    From Nonbinary Wiki
    (-)
    (Created documentation. Considering it's a semi-protected template, opted for single-page (parametrized version) documentation)
    Line 2: Line 2:
    {{ #ifexpr: ({{{1|0}}} > 99.5) | 0{{#expr:{{{1|0}}}}} |  
    {{ #ifexpr: ({{{1|0}}} > 99.5) | 0{{#expr:{{{1|0}}}}} |  
    {{ #ifexpr: ({{{1|0}}} > 9.5) | 00{{#expr:{{{1|0}}}}} | 000{{#expr:{{{1|0}}}}}  
    {{ #ifexpr: ({{{1|0}}} > 9.5) | 00{{#expr:{{{1|0}}}}} | 000{{#expr:{{{1|0}}}}}  
    }} }} }}<noinclude>
    }} }} }}<noinclude>{{documentation|content=
    ===Usage===
    Makes any number padded to four digits.
     
    ===Examples===
    * {{tlx|Four digit|69}} becomes {{Four digit|69}}
    * {{tlx|Four digit|2380}} becomes {{Four digit|2380}}
    }}
     
    [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
    [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
    </noinclude>
    </noinclude>

    Revision as of 05:57, 24 January 2014

    0000

    Template documentation

    Usage

    Makes any number padded to four digits.

    Examples