<?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%3ATalkspace_detect%2Fdoc</id>
	<title>Template:Talkspace detect/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%3ATalkspace_detect%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Talkspace_detect/doc&amp;action=history"/>
	<updated>2026-04-12T13:17:02Z</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:Talkspace_detect/doc&amp;diff=32397&amp;oldid=prev</id>
		<title>Wikipedia&gt;Paine Ellsworth: update /doc</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Talkspace_detect/doc&amp;diff=32397&amp;oldid=prev"/>
		<updated>2022-01-17T08:15:24Z</updated>

		<summary type="html">&lt;p&gt;update /doc&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;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
{{high-use}}&lt;br /&gt;
&lt;br /&gt;
This is the {{tl|talkspace detect}} meta-template.&lt;br /&gt;
&lt;br /&gt;
It helps other templates detect what type of page they are on. It detects and groups all the different [[Wikipedia:Namespace|talkspaces]] used on Wikipedia into several types:&lt;br /&gt;
&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;main&amp;#039;&amp;#039;&amp;#039; = Defines the output if the template is located on main/article talkspace; aka &amp;#039;&amp;#039;Talk:&amp;#039;&amp;#039;.&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;wikipedia&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;file&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;mediawiki&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;template&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;help&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;category&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;portal&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;draft&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;module&amp;#039;&amp;#039;&amp;#039; = Defines the output if the template is located on the specified talkspaces; aka &amp;#039;&amp;#039;User talk:&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Wikipedia talk:&amp;#039;&amp;#039;, &amp;#039;&amp;#039;File talk:&amp;#039;&amp;#039;, etc.&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039; = Defines the output if the template is located on any talkspaces that were not defined as a parameter to this meta-template.&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#039; = Defines the output if the template is located on any subject space (not the associated talkspace).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template takes one or more parameters named after the different page types as listed above. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{talkspace detect&lt;br /&gt;
| main    = Article talk page text&lt;br /&gt;
| user    = User talk page text&lt;br /&gt;
| default = Text for all other talkspaces&lt;br /&gt;
| other   = Text for all subject spaces&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By using an empty parameter you can make it so this template doesn&amp;#039;t render anything for some specific page type. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{talkspace detect&lt;br /&gt;
| main    = &lt;br /&gt;
| default = Text for all other talkspaces&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The &amp;quot;page&amp;quot; parameter ===&lt;br /&gt;
For testing and demonstration purposes this template can take a parameter named &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039;. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{talkspace detect&lt;br /&gt;
| user = User talk text.&lt;br /&gt;
| default = Any talk page text.&lt;br /&gt;
| page = User talk:Example&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{talkspace detect&lt;br /&gt;
| user = User talk text.&lt;br /&gt;
| default = Any talk page text.&lt;br /&gt;
| page = User talk:Example&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter makes this template behave exactly as if on that page. The pagename doesn&amp;#039;t have to be an existing page. &lt;br /&gt;
&lt;br /&gt;
If the &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter is empty or undefined, the name of the current page determines the result.&lt;br /&gt;
&lt;br /&gt;
You can make it so your template also understands the &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{talkspace detect&lt;br /&gt;
| user = User talk text.&lt;br /&gt;
| default = Any talk page text.&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Namespace and pagename-detecting templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Namespace manipulation templates]]&lt;br /&gt;
[[Category:Talk namespace templates]]&lt;br /&gt;
[[Category:Wikipedia metatemplates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Paine Ellsworth</name></author>
	</entry>
</feed>