Lompat ke isi

Cèṭa'an:!:

Ḍâri Wikipèḍia bhâsa Madhurâ, lombhung pangataowan mardhika
Magic word documentation[tèngghu] [beccè] [sejarah] [purge]
TemplateStyles' src attribute must not be empty.

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#Other for details. To fix this, use only the code {{!}} to generate the | character.


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=
{| class="wikitable"
|+ Caption text
|-
! Header text !! Header text
|-
| Example1 || Example2
|-
| Example3 || Example4
|}
}}

yields nonsense: Cèṭa'an:(! class="cquote pullquote" role="presentation" style="margin:auto; border-collapse: collapse; border: none; width: auto;" | style="width: 20px; vertical-align: top; border: none; color: #B2B7F2; font-size: 40px; font-family: 'Times New Roman', Times, serif; font-weight: bold; line-height: .6em; text-align: left; padding: 10px 10px;" | “ | style="vertical-align: top; border: none; padding: 4px 10px; " | Cèṭa'an:Trim quotes | style="width: 20px; vertical-align: bottom; border: none; color: #B2B7F2; font-size: 40px; font-family: 'Times New Roman', Times, serif; font-weight: bold; line-height: .6em; text-align: right; padding: 10px 10px;" | ” Cèṭa'an:!- | colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; line-height:normal; text-align: right;" | — Example1 Cèṭa'an:!)

However escaping the bars with this magic word and similar templates gives:

{{cquote|text=
{{(!}} class{{=}}"wikitable"
{{!+}} Caption text
{{!-}}
! Header text !! Header text
{{!-}}
{{!}} Example1 {{!!}} Example2
{{!-}}
{{!}} Example3 {{!!}} Example4
{{!)}}
}}

Cèṭa'an:(! class="cquote pullquote" role="presentation" style="margin:auto; border-collapse: collapse; border: none; width: auto;" | style="width: 20px; vertical-align: top; border: none; color: #B2B7F2; font-size: 40px; font-family: 'Times New Roman', Times, serif; font-weight: bold; line-height: .6em; text-align: left; padding: 10px 10px;" | “ | style="vertical-align: top; border: none; padding: 4px 10px; " | Cèṭa'an:Trim quotes | style="width: 20px; vertical-align: bottom; border: none; color: #B2B7F2; font-size: 40px; font-family: 'Times New Roman', Times, serif; font-weight: bold; line-height: .6em; text-align: right; padding: 10px 10px;" | ” Cèṭa'an:!-

Cèṭa'an:!)

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></nowiki>{{(!}}class{{=}}"wikitable"
{{!}}+ Example table with two columns
! A column
! Another column
{{!}}-
{{!}} Some data
{{!}} Some more data
{{!)}}<nowiki></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]

  1. This is a note before
  2. Cèṭa'an:(! class="wikitable" |+ Example table with two columns ! A column ! Another column |- | Some data | Some more data Cèṭa'an:!)
  3. This is a note after

See also

[beccè' sombher]
Cèṭa'an:No wrap
Cèṭa'an:Normal
Cèṭa'an:No wrap Cèṭa'an:Normal Cèṭa'an:No wrap Cèṭa'an:Normal
{{!}} (m) Cèṭa'an:Pipe &#124; or
  1. REEDIRECT Template:Template link
TemplateStyles' src attribute must not be empty.
{{=}} (m) = &#61;
{{!!}} Cèṭa'an:PipeCèṭa'an:Pipe &#124;&#124;
{{!(}} Cèṭa'an:!( &#91;
{{)!}} Cèṭa'an:)! &#93;
{{!((}} Cèṭa'an:!(( &#91;&#91;
{{))!}} Cèṭa'an:))! &#93;&#93;
{{(}} Cèṭa'an:( &#123;
{{)}} Cèṭa'an:) &#125;
{{((}} {{ &#123;&#123;
{{))}} }} &#125;&#125;
{{(((}} {{{ &#123;&#123;&#123;
{{)))}} Cèṭa'an:))) &#125;&#125;&#125;
{{(!}} {| &#123;&#124;
{{!+}} |+ &#124;&#43;
{{!-}} |- &#124;&#45;
{{!)}} |} &#124;&#125;

Documentation for the magic word may be found in the MediaWiki documentation at mw:Help:Magic words#Other.

  1. REEDIRECT Template:Template link
TemplateStyles' src attribute must not be empty., a template that uses the numeric character reference for the vertical bar character