• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:0

  • Template
  • Talk
  • Language
  • Watch
  • Change
Template documentation[view] [edit] [history] [purge]
Similar templates on Wikimedia sister projects
Commons

Usage

change

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

change
InputDisplays 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.00 km
00,024.00 km
00,212.50 km
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.

The above documentation is transcluded from Template:0/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=Template:0&oldid=6004840"
Last edited on 27 February 2018, at 16:15

Languages

    • 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
    • Ελληνικά
    • English
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Frysk
    • Galego
    • ГӀалгӀай
    • 贛語
    • ગુજરાતી
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Hausa
    • Հայերեն
    • Hornjoserbsce
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Ирон
    • Íslenska
    • Italiano
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Коми
    • Kreyòl ayisyen
    • Kurdî
    • Кыргызча
    • Ladino
    • Latviešu
    • Лезги
    • Lietuvių
    • Limburgs
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • Malti
    • मराठी
    • مصرى
    • ဘာသာမန်
    • مازِرونی
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Мокшень
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Pangasinan
    • پنجابی
    • Patois
    • ភាសាខ្មែរ
    • Plattdüütsch
    • Polski
    • Português
    • Română
    • Русский
    • संस्कृतम्
    • Scots
    • සිංහල
    • سنڌي
    • Slovenčina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Тоҷикӣ
    • ತುಳು
    • Türkçe
    • Türkmençe
    • Українська
    • اردو
    • Tiếng Việt
    • 文言
    • 吴语
    • 粵語
    • Zazaki
    • 中文
    • Jaku Iban
    • ရခိုင်
    • ꠍꠤꠟꠐꠤ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last changed on 27 February 2018, at 16:15.
    • Page was rendered with Parsoid.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop