Template:!/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
<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.
<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.


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]].
This was formerly 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]].
 
The HTML character code &#124; may be used instead of this magic word in situations where it should never be interpreted as anything except a literal character.


{{Documentation categories|
{{Documentation categories|

Revision as of 00:56, 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 was formerly 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.

The HTML character code | may be used instead of this magic word in situations where it should never be interpreted as anything except a literal character.