टेम्पलेट:0: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
छो Protected Template:0: semi-high-use, semi-high-risk template [edit=autoconfirmed:move=autoconfirmed]
switched to /doc, +protection tag
लाइन 1:
<includeonly><span style="visibility:hidden;color:transparent;">{{{1|0}}}</span></includeonly><noinclude>
{{pp-semi-template|small=yes}}
Inserts a visibility:hidden and color:transparent (i.e. invisible) zero (0) character. It is used for padding statistics and other numbers in table columns so that they line up properly.
{{template doc}}
 
The invisible zero may be replaced by any other string to make invisible, by specifying the string as the first optional parameter; this will be useful to make numeric columns in tables sortable (by inserting extra invisible zeroes, thousands separators, decimal point) like in:
<pre><nowiki><div>
{{0|0,000,0}}12{{0|.00}} km<br />
{{0|0,000,}}212.5{{0|0}} km<br />
{{0|0,00}}3,212.51 km<br />
</div></nowiki></pre>
which gives:
<div>
{{0|0,000,0}}12{{0|.00}} km<br />
{{0|0,000,}}212.5{{0|0}} km<br />
{{0|0,00}}3,212.51 km<br />
</div>
These hidden characters are part of the string used for collation when sorting tables, even though thy are not visible (but they still take space and numeric columns are correctly aligned as if they were present.
[[Category:Function templates|{{PAGENAME}}]]
[[ar:قالب:0]]
[[da:Skabelon:0]]
[[de:Vorlage:0]]
[[fr:Modèle:0]]
[[hu:Sablon:0]]
[[nl:Sjabloon:0]]
[[ru:Шаблон:0]]
</noinclude>