Editing Template:Four digit
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{ | {{ #ifexpr: ({{{1|0}}} > 999.5) | {{{1|0}}} | | ||
{{ | {{ #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=== | |||
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> |