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)
    m (20 revisions imported from wikipedia:Template:Four_digit: see Topic:Vtixlm0q28eo6jtf)
     
    (4 intermediate revisions by 3 users not shown)
    Line 1: Line 1:
    {{ #ifexpr: ({{{1|0}}} > 999.5) | {{{1|0}}} |
    {{padleft:{{{1|0}}}|4|0}}<noinclude>
    {{ #ifexpr: ({{{1|0}}} > 99.5) | 0{{#expr:{{{1|0}}}}} |
    {{Documentation}}
    {{ #ifexpr: ({{{1|0}}} > 9.5) | 00{{#expr:{{{1|0}}}}} | 000{{#expr:{{{1|0}}}}}
    }} }} }}<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}}]]
    </noinclude>
    </noinclude>

    Latest revision as of 11:39, 21 May 2021

    0000

    Template documentation[create]