Template:!: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Undo revision 473369 by SirYodaJedi (talk) Quick test)
Tag: Undo
(It would show up if someone ended up calling {{Template:!}}. If you're going to assume that will never happen, then we might as well not bother with include tags and template categorization.)
Line 1: Line 1:
<includeonly>{{error|Error: The retired template {{tn|!}} has been transcluded; see [[mw:Help:Magic words#Escaped characters]] for details. To fix this, use only the code {{((}}[[mw:Help:Magic words#!|!]]{{))}} to generate the &#124; character.}}
The expression {{code|<nowiki>{{!}}</nowiki>}} allows the pipe character <code>|</code> to be inserted into a template. Normally the pipe is used as a separator for parameters and will not display correctly. Using {{code|<nowiki>{{!}}</nowiki>}} will render <code>|</code> within the template. This is also necessary for tables.
[[Category:Pages which use a template in place of a magic word|M{{PAGENAME}}]]
</includeonly><noinclude>
The expression <code><nowiki>{{!}}</nowiki></code> allows the pipe character <code>|</code> to be inserted into a template. Normally the pipe is used as a separator for parameters and will not display correctly. Using <code><nowiki>{{!}}</nowiki></code> will render <code>|</code> within the template. This is also necessary for tables.


{{note|MediaWiki doesn't use this page. The wikitext <code><nowiki>{{!}}</nowiki></code> is no longer a template call but instead a magic word since [[mw:Help:Magic_words#Escaped_characters|MediaWiki 1.24]]. [[Special:Version|We're above that]]. Deleting this page would have no impact, except for new editors trying to search it and not finding the above information.}}
{{Note|MediaWiki doesn't use this page. The wikitext {{code|<nowiki>{{!}}</nowiki>}} is no longer a template call but instead a magic word since [[mw:Help:Magic words#Escaped characters|MediaWiki 1.24]]. [[Special:Version|We're above that]]. Deleting this page would have no impact, except for new editors trying to search it and not finding the above information.}}
 
[[Category:Templates for within templates]]

Revision as of 21:00, 24 April 2025

The expression {{!}} allows the pipe character | to be inserted into a template. Normally the pipe is used as a separator for parameters and will not display correctly. Using {{!}} will render | within the template. This is also necessary for tables.

Note.pngNote:MediaWiki doesn't use this page. The wikitext {{!}} is no longer a template call but instead a magic word since MediaWiki 1.24. We're above that. Deleting this page would have no impact, except for new editors trying to search it and not finding the above information.