<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3A%21%2Fdoc</id>
	<title>Template:!/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3A%21%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:!/doc&amp;action=history"/>
	<updated>2026-05-26T10:35:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Template:!/doc&amp;diff=1850&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{Documentation subpage}} {{transclusionless|should=yes|reason=it was replaced with a magic word}}  The magic word &lt;code&gt;&lt;nowiki&gt;{{!}}&lt;/nowiki&gt;&lt;/code&gt; is used to escape a vertical bar character &quot;&amp;#124;&quot; 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 &lt;code&gt;&lt;nowi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:!/doc&amp;diff=1850&amp;oldid=prev"/>
		<updated>2025-08-20T14:02:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{transclusionless|should=yes|reason=it was replaced with a &lt;a href=&quot;/index.php?title=Help:Magic_words&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Magic words (page does not exist)&quot;&gt;magic word&lt;/a&gt;}}  The magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to escape a &lt;a href=&quot;/index.php?title=Vertical_bar&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vertical bar (page does not exist)&quot;&gt;vertical bar&lt;/a&gt; character &amp;quot;|&amp;quot; in &lt;a href=&quot;/index.php?title=Wp:wikitext&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wp:wikitext (page does not exist)&quot;&gt;wikitext&lt;/a&gt; markup, causing the parser to temporarily not interpret it as a special character.  This used to be a template, but for speed reasons, the &lt;a href=&quot;/index.php?title=MediaWiki&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MediaWiki (page does not exist)&quot;&gt;MediaWiki&lt;/a&gt; parser was changed in July 2014 to instantly interpret &amp;lt;code&amp;gt;&amp;lt;nowi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{transclusionless|should=yes|reason=it was replaced with a [[Help:Magic words|magic word]]}}&lt;br /&gt;
&lt;br /&gt;
The magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to escape a [[vertical bar]] character &amp;quot;&amp;amp;#124;&amp;quot; in [[wp:wikitext|wikitext]] markup, causing the parser to temporarily not interpret it as a special character.&lt;br /&gt;
&lt;br /&gt;
This used to be a template, but for speed reasons, the [[MediaWiki]] parser was changed in July 2014 to instantly interpret &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; as &amp;quot;&amp;amp;#124;&amp;quot; and ignore this template, making &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; a [[mw:Help:Magic words|magic word]]. You can continue to use the code in exactly the same way as before.&lt;br /&gt;
&lt;br /&gt;
Do not use syntax like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Template:!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and do not supply a parameter, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!|foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. 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 &amp;amp;#124; character.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The code &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to [[Escape_character|escape]] the vertical bar character, &amp;amp;#124;, so that it is interpreted later than it would be otherwise. This is mostly useful when trying to include a table in a template. For example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{cquote|text=&lt;br /&gt;
This is text before&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Caption text&lt;br /&gt;
|-&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
|-&lt;br /&gt;
| Example 1 || Example 2&lt;br /&gt;
|-&lt;br /&gt;
| Example 3 || Example 4&lt;br /&gt;
|}&lt;br /&gt;
This is text after&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
yields nonsense:&lt;br /&gt;
{{cquote|text=&amp;lt;nowiki /&amp;gt;&lt;br /&gt;
This is text before&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Caption text&lt;br /&gt;
|-&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
|-&lt;br /&gt;
| Example 1 || Example 2&lt;br /&gt;
|-&lt;br /&gt;
| Example 3 || Example 4&lt;br /&gt;
|}&lt;br /&gt;
This is text after&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
However escaping the bars with this magic word and similar templates gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{cquote|text=&lt;br /&gt;
This is text before&lt;br /&gt;
{{(!}} class{{=}}&amp;quot;wikitable&amp;quot;&lt;br /&gt;
{{!+}} Caption text&lt;br /&gt;
{{!-}}&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 1 {{!!}} Example 2&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 3 {{!!}} Example 4&lt;br /&gt;
{{!)}}&lt;br /&gt;
This is text after&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cquote|text=&amp;lt;nowiki /&amp;gt;&lt;br /&gt;
This is text before&lt;br /&gt;
{{{!}} class{{=}}&amp;quot;wikitable&amp;quot;&lt;br /&gt;
{{!+}} Caption text&lt;br /&gt;
{{!-}}&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 1 {{!!}} Example 2&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 3 {{!!}} Example 4&lt;br /&gt;
{{!)}}&lt;br /&gt;
This is text after&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
For how to include a table in a footnote, do:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
Example 1{{refn|group=note|This is a note before}}&lt;br /&gt;
&lt;br /&gt;
Example 2{{refn|group=note|1=&amp;lt;nowiki /&amp;gt;This is text before&lt;br /&gt;
{{(!}} class{{=}}&amp;quot;wikitable&amp;quot;&lt;br /&gt;
{{!+}} Caption text&lt;br /&gt;
{{!-}}&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 1 {{!!}} Example 2&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 3 {{!!}} Example 4&lt;br /&gt;
{{!)}}&lt;br /&gt;
This is text after&lt;br /&gt;
&amp;lt;nowiki /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Example 3{{refn|group=note|This is a note after}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{Reflist|group=note}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Be careful to follow this formatting, [[Special:Diff/1078738513|otherwise the table may gobble up the subsequent footnote]]. This can be unnoticeable if there is only one footnote, only causing an issue if a second footnote is added.&lt;br /&gt;
&lt;br /&gt;
Example 1{{refn|group=note|This is a note before}}&lt;br /&gt;
&lt;br /&gt;
Example 2{{refn|group=note|1=&amp;lt;nowiki /&amp;gt;This is text before&lt;br /&gt;
{{(!}} class{{=}}&amp;quot;wikitable&amp;quot;&lt;br /&gt;
{{!+}} Caption text&lt;br /&gt;
{{!-}}&lt;br /&gt;
! Header text !! Header text&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 1 {{!!}} Example 2&lt;br /&gt;
{{!-}}&lt;br /&gt;
{{!}} Example 3 {{!!}} Example 4&lt;br /&gt;
{{!)}}&lt;br /&gt;
This is text after&lt;br /&gt;
&amp;lt;nowiki /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Example 3{{refn|group=note|This is a note after}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{Reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Escape template list}}&lt;br /&gt;
Documentation for the magic word may be found in the MediaWiki documentation at [[mw:Help:Magic words#Other]].&lt;br /&gt;
* {{tl|pipe}}, a template that uses the [[numeric character reference]] for the vertical bar character&lt;br /&gt;
* [[m:Help:Template#A parameter value containing a pipe character]]&lt;br /&gt;
*[[Help:Conditional tables]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Character-substitution templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>