Difference between revisions of "Template:0"
blackwiki>Verdy p m |
blackwiki>Waterloo1974 |
||
| Line 20: | Line 20: | ||
[[fr:Modèle:0]] | [[fr:Modèle:0]] | ||
[[hu:Sablon:0]] | [[hu:Sablon:0]] | ||
| + | [[nl:Sjabloon:0]] | ||
[[ru:Шаблон:0]] | [[ru:Шаблон:0]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:49, 9 August 2007
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.
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:
<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>
which gives:
12 km
212.5 km
3,212.51 km
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. ar:قالب:0 de:Vorlage:0 fr:Modèle:0 hu:Sablon:0 nl:Sjabloon:0 ru:Шаблон:0