<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/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://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATalkspace_detect%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Talkspace_detect/doc&amp;action=history"/>
	<updated>2026-06-01T14:42:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Talkspace_detect/doc&amp;diff=200360&amp;oldid=prev</id>
		<title>Tungstenchan: Text replacement - &quot;BattleTechWiki&quot; to &quot;BattleIntelligence&quot;</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Talkspace_detect/doc&amp;diff=200360&amp;oldid=prev"/>
		<updated>2025-05-01T05:09:09Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;BattleTechWiki&amp;quot; to &amp;quot;BattleIntelligence&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:09, 1 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the {{tl|talkspace detect}} meta-template.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the {{tl|talkspace detect}} meta-template.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It helps other templates detect what type of page they are on. It detects and groups all the different [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleTechWiki&lt;/del&gt;:Namespace|talkspaces]] used on &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleTechWiki &lt;/del&gt;into several types:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It helps other templates detect what type of page they are on. It detects and groups all the different [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleIntelligence&lt;/ins&gt;:Namespace|talkspaces]] used on &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleIntelligence &lt;/ins&gt;into several types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&#039;&#039;&#039;user&#039;&#039;&#039;, &#039;&#039;&#039;battletechwiki&#039;&#039;&#039;, &#039;&#039;&#039;file&#039;&#039;&#039;, &#039;&#039;&#039;mediawiki&#039;&#039;&#039;, &#039;&#039;&#039;template&#039;&#039;&#039;, &#039;&#039;&#039;help&#039;&#039;&#039;, &#039;&#039;&#039;category&#039;&#039;&#039;, &#039;&#039;&#039;portal&#039;&#039;&#039;, and &#039;&#039;&#039;module&#039;&#039;&#039; = Defines the output if the template is located on the specified talkspaces; aka &#039;&#039;User talk:&#039;&#039;, &#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleTechWiki &lt;/del&gt;talk:&#039;&#039;, &#039;&#039;File talk:&#039;&#039;, etc.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&#039;&#039;&#039;user&#039;&#039;&#039;, &#039;&#039;&#039;battletechwiki&#039;&#039;&#039;, &#039;&#039;&#039;file&#039;&#039;&#039;, &#039;&#039;&#039;mediawiki&#039;&#039;&#039;, &#039;&#039;&#039;template&#039;&#039;&#039;, &#039;&#039;&#039;help&#039;&#039;&#039;, &#039;&#039;&#039;category&#039;&#039;&#039;, &#039;&#039;&#039;portal&#039;&#039;&#039;, and &#039;&#039;&#039;module&#039;&#039;&#039; = Defines the output if the template is located on the specified talkspaces; aka &#039;&#039;User talk:&#039;&#039;, &#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleIntelligence &lt;/ins&gt;talk:&#039;&#039;, &#039;&#039;File talk:&#039;&#039;, etc.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tungstenchan</name></author>
	</entry>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Talkspace_detect/doc&amp;diff=170826&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Template Doc Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Talkspace_detect/doc&amp;diff=170826&amp;oldid=prev"/>
		<updated>2023-08-12T20:22:28Z</updated>

		<summary type="html">&lt;p&gt;Template Doc Creation&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;
&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 [[BattleTechWiki:Namespace|talkspaces]] used on BattleTechWiki 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;battletechwiki&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;, 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;BattleTechWiki 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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;/syntaxhighlight&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:Metatemplates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>