<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fallenchungus.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AMain_other%2Fdoc</id>
	<title>Template:Main other/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fallenchungus.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AMain_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Main_other/doc&amp;action=history"/>
	<updated>2026-04-18T00:42:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Template:Main_other/doc&amp;diff=2320&amp;oldid=prev</id>
		<title>CapybaraKiller: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Main_other/doc&amp;diff=2320&amp;oldid=prev"/>
		<updated>2025-05-25T18:16:49Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:16, 25 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>CapybaraKiller</name></author>
	</entry>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Template:Main_other/doc&amp;diff=2319&amp;oldid=prev</id>
		<title>wikipedia&gt;Andrybak: categorization: :Category:If-namespace-then-else templates (via WP:JWB)</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Main_other/doc&amp;diff=2319&amp;oldid=prev"/>
		<updated>2025-05-24T14:24:07Z</updated>

		<summary type="html">&lt;p&gt;categorization: &lt;a href=&quot;/index.php?title=Category:If-namespace-then-else_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:If-namespace-then-else templates (page does not exist)&quot;&gt;Category:If-namespace-then-else templates&lt;/a&gt; (via &lt;a href=&quot;/index.php?title=WP:JWB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:JWB (page does not exist)&quot;&gt;WP:JWB&lt;/a&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;
{{used in system}}&lt;br /&gt;
{{cascade-protected template}}&lt;br /&gt;
{{Template shortcut|ns0|mo|ao}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is the {{tl|main other}} meta-template.&lt;br /&gt;
&lt;br /&gt;
This template helps other templates detect if they are on a main space (article) page or some &amp;quot;other&amp;quot; type of page.&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
This template usually takes two parameters, like this:&lt;br /&gt;
: {{Tlc|main other&amp;amp;#32;|{{var|result if in mainspace}}&amp;amp;#32;|{{var|result if elsewhere}}}}&lt;br /&gt;
&lt;br /&gt;
If the template is on a main space (article) page, it will return this:&lt;br /&gt;
: {{main other |demospace=main |{{var|result if in mainspace}} |{{var|result if elsewhere}} }}&lt;br /&gt;
&lt;br /&gt;
If the template is on any other page, it will return this:&lt;br /&gt;
: {{main other |{{var|result if in mainspace}} |{{var|result if elsewhere}} }}&lt;br /&gt;
&lt;br /&gt;
A typical usage case would be to warn that a template should not be used on non-article pages:&lt;br /&gt;
: {{Tlc|main other&amp;amp;#32;|&amp;amp;#32;|This template should only be used in articles.}}&lt;br /&gt;
or vice versa:&lt;br /&gt;
: {{Tlc|main other&amp;amp;#32;|This template should not be used in articles.|&amp;amp;#32;}}&lt;br /&gt;
&lt;br /&gt;
Note that in the first case above the &amp;quot;main&amp;quot; parameter was not used, and in the second example the &amp;quot;other&amp;quot; parameter was left empty.&lt;br /&gt;
&lt;br /&gt;
===Demospace===&lt;br /&gt;
For testing and demonstration purposes, this template can take a parameter named &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* If it has the value &amp;#039;&amp;#039;&amp;#039;main&amp;#039;&amp;#039;&amp;#039; it returns the article text.&lt;br /&gt;
* It if has the value &amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#039; or any other value such as the name of some other namespace it returns the other pages text.&lt;br /&gt;
* If the parameter is empty or undefined, the actual page type determines the result.&lt;br /&gt;
&lt;br /&gt;
Like this:&lt;br /&gt;
: {{tlc|main other&amp;amp;#32;|{{var|result if in mainspace}}&amp;amp;#32;|{{var|result if elsewhere}}&amp;amp;#32;|demospace{{=}}main}}&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used, it will return: {{main other |{{var|result if in mainspace}} |{{var|result if elsewhere}} |demospace=main}}&lt;br /&gt;
&lt;br /&gt;
You can make it so your template also understands the &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039; parameter. That means you can demonstrate the different appearances of your template in the documentation for your template:&lt;br /&gt;
: {{tlc|main other&amp;amp;#32;|{{var|result if in mainspace}}&amp;amp;#32;|{{var|result if elsewhere}}&amp;amp;#32;|&amp;lt;nowiki&amp;gt;demospace={{{demospace|}}}&amp;lt;/nowiki&amp;gt;&amp;amp;#32;}}&lt;br /&gt;
&lt;br /&gt;
===Technical details===&lt;br /&gt;
This template detects article &amp;quot;Talk:&amp;quot; pages as type &amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This template works like {{tl|main talk other}}. For more examples and technical details, see the documentation there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;If mainspace&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Content if page is located in mainspace (i.e. article space)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;If not mainspace&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Content if page is not located in mainspace&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Redirects===&lt;br /&gt;
* {{tl|article only}}&lt;br /&gt;
* {{tl|article other}}&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;
[[Category:If-namespace-then-else templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>