Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Examples  





3 See also  





4 TemplateData  














Template:0






Acèh
Afrikaans
Alemannisch
العربية
Aragonés

Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Български
Boarisch
Bosanski
Буряад
Català
Чӑвашла
Cebuano
Čeština
Chi-Chewa
Cymraeg
Dansk
الدارجة
Deutsch
Dolnoserbski
Eesti
Ελληνικά
Español
Esperanto
Euskara
فارسی
Føroyskt
Français
Frysk
Galego
ГӀалгӀай


/Hak-kâ-ngî

Հայերեն
Hornjoserbsce
Hrvatski
Ilokano
Bahasa Indonesia
Ирон
Italiano
Jawa


Коми
Kurdî
Кыргызча
Ladino
Latviešu
Лезги
Lietuvių
Magyar
ि
Македонски

Malti

مصرى

Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Мокшень
Монгол

Nederlands


Нохчийн
Norsk bokmål
ି
Oʻzbekcha / ўзбекча

Pangasinan
پنجابی
Patois

Plattdüütsch
Polski
Português
Română
Русский

Scots

Simple English
Slovenčina
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Татарча / tatarça
 


Тоҷикӣ

Türkçe
Українська
اردو
Tiếng Vit



Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
Wikidata
Wikifunctions
Wikisource
Wikiversity
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Usage

This template inserts an invisible (visibility:hidden and color:transparent) 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 in fact be replaced by any other string (which regardless, is made invisible), by specifying the string as the first optional parameter. This is useful to "visually pad out" equivalent length rows in numeric columns in such tables. This is accomplished by inserting extra invisible zeroes, thousands separators, or decimal points prefixing and suffixing the numeric field, (adjusted to pad to the length of the largest numeric value) like in example one.

Examples

Input Displays as

{{0|00,0}}12{{0|.00}} km
{{0|00,0}}24.{{0|00}} km
{{0|00,}}212.5{{0|0}} km
{{0|0}}3,212.51 km
{{0|}}16,789.01 km
20,111.05 km

00,012.00km
00,024.00km
00,212.50km
03,212.51 km
16,789.01 km
20,111.05 km

Note: The null template, {{0|}}, used in the second to last line, produces the same alignment effect as omitting the template entirely. However, the null template can be useful for preserving the alignment within the wikicode.

Note also OpenType fonts feature tnum/pnum CSS font-variant-numeric:tabular-nums, font-variant-numeric:proportional-nums, U+2007 FIGURE SPACE ( ), U+2008 PUNCTUATION SPACE ( ) and U+2012 FIGURE DASH.

This template is smarter than {{padleft:}} magic word; also MediaWiki: Help:Magic_words § Formatting.

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:0 in articles based on its TemplateData.

TemplateData for 0

This template inserts an invisible (visibility:hidden and color:transparent) 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 in fact be replaced by any other string (which regardless, is made invisible), by specifying the string as the first optional parameter. This is useful to "visually pad out" equivalent length rows in numeric columns in such tables. This is accomplished by inserting extra invisible zeroes, thousands separators, or decimal points prefixing and suffixing the numeric field, (adjusted to pad to the length of the largest numeric value).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hidden string1

no description

Default
0
Example
00,0
Stringoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:0&oldid=579820299"

Categories: 
Inline spacing templates
Typing-aid templates
Templates with no visible output
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 2 November 2013, at 02:28 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki