Template:!
- español
- 日本語
- français
- 中文
- русский
- العربية
- аԥсшәа
- Acèh
- Afrikaans
- Alemannisch
- አማርኛ
- aragonés
- Ænglisc
- ܐܪܡܝܐ
- الدارجة
- مصرى
- অসমীয়া
- asturianu
- авар
- अवधी
- Aymar aru
- azərbaycanca
- تۆرکجه
- башҡортса
- Basa Bali
- Boarisch
- žemaitėška
- беларуская
- български
- भोजपुरी
- Bislama
- Banjar
- ပအိုဝ်ႏဘာႏသာႏ
- bamanankan
- বাংলা
- བོད་ཡིག
- বিষ্ণুপ্রিয়া মণিপুরী
- brezhoneg
- bosanski
- Basa Ugi
- буряад
- Chavacano de Zamboanga
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- нохчийн
- Cebuano
- Chamoru
- ᏣᎳᎩ
- Tsetsêhestâhese
- کوردی
- corsu
- qırımtatarca
- čeština
- kaszëbsczi
- словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
- чӑвашла
- Cymraeg
- dansk
- Zazaki
- dolnoserbski
- ދިވެހިބަސް
- ཇོང་ཁ
- emiliàn e rumagnòl
- euskara
- estremeñu
- فارسی
- Fulfulde
- võro
- Na Vosa Vakaviti
- føroyskt
- arpetan
- Nordfriisk
- furlan
- Frysk
- Gaeilge
- Gagauz
- 贛語
- Gàidhlig
- galego
- گیلکی
- Avañe'ẽ
- गोंयची कोंकणी / Gõychi Konknni
- 𐌲𐌿𐍄𐌹𐍃𐌺
- ગુજરાતી
- Gaelg
- Hausa
- 客家語 / Hak-kâ-ngî
- Hawaiʻi
- हिन्दी
- Fiji Hindi
- hornjoserbsce
- հայերեն
- Interlingue
- Igbo
- гӀалгӀай
- Ido
- ᐃᓄᒃᑎᑐᑦ / inuktitut
- la .lojban.
- Jawa
- ქართული
- Qaraqalpaqsha
- Taqbaylit
- адыгэбзэ
- Kongo
- Kumoring
- Gĩkũyũ
- қазақша
- ភាសាខ្មែរ
- ಕನ್ನಡ
- 한국어
- перем коми
- къарачай-малкъар
- کٲشُر
- Ripoarisch
- коми
- kernowek
- кыргызча
- Ladino
- лакку
- лезги
- Limburgs
- Ladin
- lombard
- ລາວ
- lietuvių
- latgaļu
- Basa Banyumasan
- мокшень
- Malagasy
- олык марий
- Māori
- Minangkabau
- македонски
- മലയാളം
- монгол
- ဘာသာမန်
- मराठी
- кырык мары
- Bahasa Melayu
- Malti
- Mirandés
- မြန်မာဘာသာ
- эрзянь
- مازِرونی
- Nāhuatl
- Napulitano
- Nedersaksies
- नेपाली
- नेपाल भाषा
- Oshiwambo
- norsk nynorsk
- Novial
- Nouormand
- Sesotho sa Leboa
- Diné bizaad
- occitan
- livvinkarjala
- ଓଡ଼ିଆ
- ирон
- ਪੰਜਾਬੀ
- Kapampangan
- Picard
- Pälzisch
- पालि
- Piemontèis
- پنجابی
- Ποντιακά
- پښتو
- Runa Simi
- ရခိုင်
- rumantsch
- romani čhib
- română
- armãneashti
- tarandíne
- русиньскый
- Ikinyarwanda
- संस्कृतम्
- саха тыла
- ᱥᱟᱱᱛᱟᱲᱤ
- sardu
- Scots
- سنڌي
- davvisámegiella
- Sängö
- srpskohrvatski / српскохрватски
- တႆး
- සිංහල
- Simple English
- slovenčina
- slovenščina
- chiShona
- Soomaaliga
- shqip
- српски / srpski
- Sranantongo
- SiSwati
- Sesotho
- Seeltersk
- Sunda
- svenska
- ślůnski
- தமிழ்
- ತುಳು
- తెలుగు
- tetun
- тоҷикӣ
- ไทย
- ትግሬ
- Türkmençe
- Tagalog
- Setswana
- lea faka-Tonga
- Tok Pisin
- Türkçe
- Xitsonga
- татарча / tatarça
- chiTumbuka
- Twi
- reo tahiti
- тыва дыл
- удмурт
- ئۇيغۇرچە / Uyghurche
- українська
- اردو
- oʻzbekcha / ўзбекча
- Tshivenda
- vèneto
- vepsän kel’
- Tiếng Việt
- West-Vlams
- Volapük
- walon
- Winaray
- Wolof
- хальмг
- isiXhosa
- მარგალური
- ייִדיש
- Yorùbá
- Vahcuengh
- Zeêuws
- 閩南語 / Bân-lâm-gí
- 粵語
- isiZulu
| This template should have no transclusions. This is because it was replaced with a magic word. |
The magic word {{!}} is used to escape a vertical bar character "|" in wikitext markup, causing the parser to temporarily not interpret it as a special character.
This used to be a template, but for speed reasons, the MediaWiki parser was changed in July 2014 to instantly interpret {{!}} as "|" and ignore this template, making {{!}} a magic word. You can continue to use the code in exactly the same way as before.
Do not use syntax like {{Template:!}}, and do not supply a parameter, for example {{!|foo}}. In those cases, the template transcludes as an error message: Error: The retired template {{!}} has been transcluded; see mw:Help:Magic words#Escaped characters for details. To fix this, use only the code {{!}} to generate the | character.
Usage
The code {{!}} is used to escape the vertical bar character, |, so that it is interpreted later than it would be otherwise. This is mostly useful when trying to include a table in a template. For example,
{{cquote|text=
This is text before
{| class="wikitable"
|+ Caption text
|-
! Header text !! Header text
|-
| Example 1 || Example 2
|-
| Example 3 || Example 4
|}
This is text after
}}
yields nonsense:
| “ |
This is text before { |
” |
| — Example 1 | ||
However escaping the bars with this magic word and similar templates gives:
{{cquote|text=
This is text before
{{(!}} class{{=}}"wikitable"
{{!+}} Caption text
{{!-}}
! Header text !! Header text
{{!-}}
{{!}} Example 1 {{!!}} Example 2
{{!-}}
{{!}} Example 3 {{!!}} Example 4
{{!)}}
This is text after
}}
| “ |
This is text before
This is text after |
” |
For how to include a table in a footnote, do:
Example 1{{refn|group=note|This is a note before}}
Example 2{{refn|group=note|1=<nowiki />This is text before
{{(!}} class{{=}}"wikitable"
{{!+}} Caption text
{{!-}}
! Header text !! Header text
{{!-}}
{{!}} Example 1 {{!!}} Example 2
{{!-}}
{{!}} Example 3 {{!!}} Example 4
{{!)}}
This is text after
<nowiki />}}
Example 3{{refn|group=note|This is a note after}}
==Notes==
{{Reflist|group=note}}
Be careful to follow this formatting, otherwise the table may gobble up the subsequent footnote. This can be unnoticeable if there is only one footnote, only causing an issue if a second footnote is added.
Example 1[note 1]
Example 2[note 2]
Example 3[note 3]
Tracking category
Notes
See also
| Template call (m for magic word) | Output (delayed interpretation as wikimarkup) | HTML alternative (never interpreted as wikimarkup) |
|---|---|---|
{{!}} (m) | | | | or {{pipe}} |
{{=}} (m) | = | = |
{{!!}} | || | || |
{{!(}} | [ | [ |
{{)!}} | ] | ] |
{{!((}} | [[ | [[ |
{{))!}} | ]] | ]] |
{{(}} | { | { |
{{)}} | } | } |
{{((}} | {{ | {{ |
{{))}} | }} | }} |
{{(((}} | }}} | |
{{(!}} | {| | {| |
{{!+}} | |+ | |+ |
{{!-}} | |- | |- |
{{!)}} | |} | |} |
Documentation for the magic word may be found in the MediaWiki documentation at mw:Help:Magic words#Other.
- {{pipe}}, a template that uses the numeric character reference for the vertical bar character
- m:Help:Template#A parameter value containing a pipe character
- Help:Conditional tables Category:Character-substitution templates
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.