<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/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://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ASingle_namespace%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Single_namespace/doc&amp;action=history"/>
	<updated>2026-04-08T00:38:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Single_namespace/doc&amp;diff=13556&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} {{Substitution|not}} {{Commons Import}}  == Usage == This is a meta-template; it should only be used within other templates. It is used for Wikiped...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Single_namespace/doc&amp;diff=13556&amp;oldid=prev"/>
		<updated>2020-10-21T19:06:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Substitution|not}} {{Commons Import}}  == Usage == This is a meta-template; it should only be used within other templates. It is used for Wikiped...&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;
{{Substitution|not}}&lt;br /&gt;
{{Commons Import}}&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;
&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>Caleb Cooper</name></author>
	</entry>
</feed>