<?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%3ASingle_namespace%2Fdoc</id>
	<title>Template:Single namespace/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%3ASingle_namespace%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Single_namespace/doc&amp;action=history"/>
	<updated>2026-04-10T03:40:25Z</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:Single_namespace/doc&amp;diff=31015&amp;oldid=prev</id>
		<title>Wikipedia&gt;WOSlinker: /* Supporting templates */ remove book other</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Single_namespace/doc&amp;diff=31015&amp;oldid=prev"/>
		<updated>2021-07-14T12:47:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Supporting templates: &lt;/span&gt; remove book other&lt;/span&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;
{{Substitution|not}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This is a meta-template; it should only be used within other templates. It is used for [[Wikipedia:Namespace|namespace]] detection as a simplification of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Foo other|Example|{{Incorrect namespace|foo}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.  If the template is transcluded in the Foo namespace, it will transclude &amp;quot;Example&amp;quot;; if not, it will transclude {{tl|Incorrect namespace}}. Note that {{tl|Incorrect namespace}} does not work in the template namespace.&lt;br /&gt;
&lt;br /&gt;
The first parameter is necessary. It defines which namespace is the correct namespace for the template.&lt;br /&gt;
&lt;br /&gt;
The second parameter is optional. It allows something (usually a category) to be transcluded in the correct namespace.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Correct namespace ===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Single namespace|Template|This text is only displayed in the Template namespace}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Single namespace|Template|This text is only displayed in the Template namespace}}&lt;br /&gt;
&lt;br /&gt;
=== Incorrect namespace ===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Single namespace|Category|This text is only displayed in the Category namespace}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--not using actual template because {{Incorrect namespace}} won&amp;#039;t display in the Template namespace--&amp;gt;&lt;br /&gt;
{{Mbox | type = content | image = [[File:Stop hand orange.svg|50px]] | text = {{Error|The above template should only be transcluded in the &amp;#039;&amp;#039;Category&amp;#039;&amp;#039; namespace(s).}} }}&lt;br /&gt;
&lt;br /&gt;
== Supporting templates  ==&lt;br /&gt;
{{flatlist|indent=0.5|class=nowraplinks|&lt;br /&gt;
* {{tl|Incorrect namespace}}&lt;br /&gt;
* {{tl|Category other}}&lt;br /&gt;
* {{tl|Draft other}}&lt;br /&gt;
* {{tl|File other}}&lt;br /&gt;
* {{tl|Help other}}&lt;br /&gt;
* {{tl|Main other}}&lt;br /&gt;
* {{tl|Module other}}&lt;br /&gt;
* {{tl|Portal other}}&lt;br /&gt;
* {{tl|Talk other}}&lt;br /&gt;
* {{tl|Template other}}&lt;br /&gt;
* {{tl|User other}}&lt;br /&gt;
* {{tl|Wikipedia other}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Category handler]]&lt;br /&gt;
* [[Template:Namespace detect]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories here; interwikis in Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;WOSlinker</name></author>
	</entry>
</feed>