Jump to content

Template:Four digit: Difference between revisions

Created documentation. Considering it's a semi-protected template, opted for single-page (parametrized version) documentation
(-)
(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>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.