Template:!: Difference between revisions
(Update template to reflect transition to MediaWiki magic word functionality added in v1.24) |
m (Improve warning box template call) |
||
Line 1: | Line 1: | ||
<includeonly>{{Warning| | <includeonly>{{Warning|1=The retired template [[Template:!|{{!}}]] has been transcluded; see [[mediawikiwiki:Help:Magic words#Other|Help:Magic words]] for details. To fix this, use only the code <code><nowiki>{{!}}</nowiki></code> to generate the | (vertical bar) character.|2=Error}} | ||
[[Category:Pages which use a template in place of a magic word|M{{PAGENAME}}]]</includeonly><noinclude> | [[Category:Pages which use a template in place of a magic word|M{{PAGENAME}}]]</includeonly><noinclude> | ||
{{Documentation|heading=[[File:Template info icon v2.svg| | {{Documentation|heading=[[File:Template info icon v2.svg|x22px|alt=Information symbol wrapped in paired typographical braces|link=|Template info]] Magic word documentation}}</noinclude> |
Latest revision as of 15:47, 30 June 2024
Magic word documentation [edit] [ ]
- This documentation is transcluded from Template:!/doc. (edit | history)
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 upon the release of version 1.24 (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.
{{Template:!}}
, and do not supply any template parameters, such as {{!|foo}}
. In those cases, the template transcludes as an error message:
Usage
The code {{!}}
is used to escape the vertical bar character, |
, so that it is interpreted by the MediaWiki parser later than it would be otherwise. This is mostly useful when trying to include a table in a template.
See also
- The MediaWiki documentation for Magic words
- Help:Template on Meta-Wiki