Difference between revisions of "Template:!/doc"
m (Updating) |
m (updating) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | + | {{transclusionless|should=yes|reason=it was replaced with a [[Help:Magic words|magic word]]}} | |
− | |||
− | + | The magic word <code><nowiki>{{!}}</nowiki></code> is used to escape a vertical bar character "|" in wikitext markup, causing the parser to temporarily not interpret it as a special character. | |
− | < | ||
− | < | ||
− | |||
− | |||
− | < | ||
− | </includeonly> | + | This used to be a template, but for speed reasons, the [[w:MediaWiki|MediaWiki]] parser was changed in July 2014 to instantly interpret <code><nowiki>{{!}}</nowiki></code> as "|" and ignore this template, making <code><nowiki>{{!}}</nowiki></code> a [[mw:Help:Magic words|magic word]]. You can continue to use the code in exactly the same way as before. |
+ | |||
+ | Do not use syntax like <code><nowiki>{{Template:!}}</nowiki></code>, and do not supply a parameter, for example <code><nowiki>{{!|foo}}</nowiki></code>. In those cases, the template transcludes as an error message: {{error|Error: The retired template {{tn|!}} has been transcluded; see [[mw:Help:Magic words#Other]] for details. To fix this, use only the code {{Magic word|!}} to generate the | character.}} | ||
+ | |||
+ | ==See also== | ||
+ | {{Escape template list}} | ||
+ | Documentation for the magic word may be found in the MediaWiki documentation at [[mw:Help:Magic words#Other]]. | ||
+ | * {{tl|pipe}}, a template that uses the ''numeric character reference'' for the vertical bar character | ||
+ | * [[meta:Help:Template#A parameter value containing a pipe character]] | ||
+ | *[[Help:Conditional tables]] | ||
+ | |||
+ | <includeonly>{{sandbox other|| | ||
+ | <!-- Categories below this line; interwikis at Wikidata --> | ||
+ | |||
+ | [[Category:Character-substitution templates]] | ||
+ | |||
+ | }}</includeonly> |
Latest revision as of 18:17, 12 January 2024
This is a documentation subpage for Template:! It may contain usage information, categories and other content that is not part of the original template page. |
This template may have no transclusions, 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#Other for details. To fix this, use only the code {{!}} to generate the | character.
See also[edit]
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
- meta:Help:Template#A parameter value containing a pipe character
- Help:Conditional tables