<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3A%28%21%2Fdoc</id>
	<title>Template:(!/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3A%28%21%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:(!/doc&amp;action=history"/>
	<updated>2026-04-05T22:11:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:(!/doc&amp;diff=3887&amp;oldid=prev</id>
		<title>Wikipedia&gt;ExE Boss: Add Template:Escape template list and TemplateData</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:(!/doc&amp;diff=3887&amp;oldid=prev"/>
		<updated>2021-04-02T13:29:12Z</updated>

		<summary type="html">&lt;p&gt;Add &lt;a href=&quot;/wiki/Template:Escape_template_list&quot; title=&quot;Template:Escape template list&quot;&gt;Template:Escape template list&lt;/a&gt; and &lt;a href=&quot;https://en.wikipedia.org/wiki/TemplateData&quot; class=&quot;extiw&quot; title=&quot;wikipedia:TemplateData&quot;&gt;TemplateData&lt;/a&gt;&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;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
This templates produces the &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; sequence (i.e., start of wikitable), so that wikitables can be built inside templates.&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
The problem is that if a pipe character &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;  appears in a template, the template parser assumes that the pipe is part of the template; and so if there is a table within a template the pipe symbols that are usually interpreted as part of the table syntax will be interpreted first as part template.&lt;br /&gt;
&lt;br /&gt;
To prevent this happening it is possible to &amp;quot;hide&amp;quot; the pipe character of the table from the template parser by substituting &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for a pipe character.&lt;br /&gt;
&lt;br /&gt;
To aid with building a table there are some additional template which can be used to help&lt;br /&gt;
* {{tlx|(!}} for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* {{tlx|!-}} for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; but in this case it is probably easier to use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}-&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* {{tlx|!!}} for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;||&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* {{tlx|!)}} for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [[mw:Help:Magic words#Other]] and [[mw:Help:Template#A parameter value containing a pipe character]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Escape template list}}&lt;br /&gt;
&lt;br /&gt;
* {{tlx|End}}&lt;br /&gt;
* {{tlx|Aligned table}}, specify table directly as a template, contrasting the special handling of certain syntax above&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template produces {| as ordinary text.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Templates with partial table wikitext]]&lt;br /&gt;
[[Category:Character-substitution templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;ExE Boss</name></author>
	</entry>
</feed>