<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.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.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Template%3A%21%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:!/doc&amp;action=history"/>
	<updated>2026-11-05T23:35:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Template:!/doc&amp;diff=4466&amp;oldid=prev</id>
		<title>Fabartus: genesis, port from Wikipedia</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:!/doc&amp;diff=4466&amp;oldid=prev"/>
		<updated>2013-06-28T13:10:21Z</updated>

		<summary type="html">&lt;p&gt;genesis, port from Wikipedia&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;
&lt;br /&gt;
{{high-risk|2,500,000+}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
This is the {{t&amp;lt;noinclude&amp;gt;n&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;l&amp;lt;/includeonly&amp;gt;|!}} meta-template. Its use is analogous to an {{wp|escape_character}}.&lt;br /&gt;
&lt;br /&gt;
This is an auxiliary template allowing the encoding of &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot; within template parameters, because the pipe character is normally interpreted as a separator. This template is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use &amp;quot;&amp;lt;code&amp;gt;&amp;amp;amp;#124;&amp;lt;/code&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This template cannot be used for putting the character as text in a wiki table; in that case, again,  &amp;quot;&amp;lt;code&amp;gt;&amp;amp;amp;#124;&amp;lt;/code&amp;gt;&amp;quot; can be used.&lt;br /&gt;
&lt;br /&gt;
Note that no special template is needed for &amp;quot;&amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt;&amp;quot; (exclamation mark).&lt;br /&gt;
&lt;br /&gt;
This is a [[WP:high-risk template|high-risk template]], and it usually cannot be [[Wikipedia:wikipedia:Substitution|substituted]] (see conditions for substring on [[#Substitution|the section below]]).&lt;br /&gt;
&lt;br /&gt;
=== Substitution ===&lt;br /&gt;
It is possible to {{wp|Wikipedia:Substitution|substitute}} &amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt; only if an unescaped &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;quot; works as expected, i.e. after substituting the template containing &amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;, or after eliminating an&lt;br /&gt;
[[mw:Help:Extension:ParserFunctions#.23if|#if]] containing &amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== A simple example ===&lt;br /&gt;
&lt;br /&gt;
The following template code for {{tl|Quotation}} using an ordinary pipe character,&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
produces:&lt;br /&gt;
{{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}&lt;br /&gt;
&lt;br /&gt;
whereas this code using the &amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt; meta-template,&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
produces:&lt;br /&gt;
{{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|!!}} creates ||&lt;br /&gt;
* {{tl|!-}} creates |-&lt;br /&gt;
* {{tl|-!}} creates &amp;amp;amp;nbsp;|&lt;br /&gt;
* {{tn|&amp;#039;}} and related&lt;br /&gt;
* [[Wikipedia:wikipedia:Conditional tables]]&lt;br /&gt;
* {{tl|pipe}} - Note that this one looks like {{tlf|!}} but has a very different meaning for the MediaWiki parser and thus has different functionality.&lt;br /&gt;
* {{tn|(}} creates {&lt;br /&gt;
* {{tn|((}} creates {{&lt;br /&gt;
* {{tn|)}} creates }&lt;br /&gt;
* {{tn|))}} creates }} &lt;br /&gt;
* {{tl|!(}} creates [&lt;br /&gt;
* {{tl|)!}} creates ] &lt;br /&gt;
* {{tl|(!}} creates {| &lt;br /&gt;
* {{tl|!)}} creates |}  &lt;br /&gt;
* {{tl|1==}} creates =&lt;br /&gt;
* {{tl|Bar box}} — since {{tl|Bar}} redirects here&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
[[Category:formatting and function templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fabartus</name></author>
	</entry>
</feed>