Template:!/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} {{wikipedia template}} <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> Category:Formatting templates </includeonly>")
 
No edit summary
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
{{wikipedia template}}


<includeonly>
{{Mbox|type=content|text='''This template was replaced with a magic word.''' <br> Administrators: Please do not delete this template even if it is not transcluded on any pages.}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Formatting templates]]
<nowiki>{{!}}</nowiki> is a [[mw:Help:Magic words|magic word]] used to escape a pipe character "|" in wikitext, where it would otherwise be interpreted as a special character. Typically this is used when a pipe character is needed as part of a template argument or table cell contents.
</includeonly>
 
This used to be an actual template. In July 2014, the MediaWiki parser was updated to interpret <code><nowiki>{{!}}</nowiki></code> as a magic word for performance reasons. From an editor's perspective, there is no difference; the magic word is used in the exact same manner as the template. However, if this template ''is'' transcluded in some way, an error message will be displayed and the page that transcludes it will be added to [[:Category:Pages that use a template in place of a magic word]].
 
{{Documentation categories|
<!-- Categories and interwikis go here. -->
[[Category:Character substitution templates]]
}}

Revision as of 00:17, 5 June 2021

This subpage provides documentation for Template:!.

This template was replaced with a magic word.
Administrators: Please do not delete this template even if it is not transcluded on any pages.

{{!}} is a magic word used to escape a pipe character "|" in wikitext, where it would otherwise be interpreted as a special character. Typically this is used when a pipe character is needed as part of a template argument or table cell contents.

This used to be an actual template. In July 2014, the MediaWiki parser was updated to interpret {{!}} as a magic word for performance reasons. From an editor's perspective, there is no difference; the magic word is used in the exact same manner as the template. However, if this template is transcluded in some way, an error message will be displayed and the page that transcludes it will be added to Category:Pages that use a template in place of a magic word.