<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://conductors.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ATemplate_other%2Fdoc</id>
	<title>Template:Template other/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://conductors.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ATemplate_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://conductors.wiki/index.php?title=Template:Template_other/doc&amp;action=history"/>
	<updated>2026-06-05T15:32:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://conductors.wiki/index.php?title=Template:Template_other/doc&amp;diff=61&amp;oldid=prev</id>
		<title>N.Sorokin: Created page with &quot;This is a meta-template which helps other templates detect whether they are used in the &quot;Template:&quot; namespace.  ==Usage== This template usually takes one or two parameters: : {{tc|Template other&amp;nbsp;|&#039;&#039;[result/action if on a template page]&#039;&#039;&amp;#32;(|&#039;&#039;[result/action if on another type of page]&#039;&#039;)}}  For example, if {{tlf|Template other&amp;#32;|On template page&amp;#32;|Not on template page}} were on a &quot;Template:&quot; page, it would return: : {{Template other |On template page |Not o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://conductors.wiki/index.php?title=Template:Template_other/doc&amp;diff=61&amp;oldid=prev"/>
		<updated>2025-12-05T23:41:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a meta-template which helps other templates detect whether they are used in the &amp;quot;Template:&amp;quot; namespace.  ==Usage== This template usually takes one or two parameters: : {{tc|Template other |&amp;#039;&amp;#039;[result/action if on a template page]&amp;#039;&amp;#039; (|&amp;#039;&amp;#039;[result/action if on another type of page]&amp;#039;&amp;#039;)}}  For example, if {{tlf|Template other |On template page |Not on template page}} were on a &amp;quot;Template:&amp;quot; page, it would return: : {{Template other |On template page |Not o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a meta-template which helps other templates detect whether they are used in the &amp;quot;Template:&amp;quot; namespace.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
This template usually takes one or two parameters:&lt;br /&gt;
: {{tc|Template other&amp;amp;nbsp;|&amp;#039;&amp;#039;[result/action if on a template page]&amp;#039;&amp;#039;&amp;amp;#32;(|&amp;#039;&amp;#039;[result/action if on another type of page]&amp;#039;&amp;#039;)}}&lt;br /&gt;
&lt;br /&gt;
For example, if {{tlf|Template other&amp;amp;#32;|On template page&amp;amp;#32;|Not on template page}} were on a &amp;quot;Template:&amp;quot; page, it would return:&lt;br /&gt;
: {{Template other |On template page |Not on template page}}&lt;br /&gt;
On any other type of page (e.g. &amp;quot;Wikipedia:&amp;quot;, &amp;quot;User:&amp;quot;) it would return:&lt;br /&gt;
: {{Template other|demospace=other |On template page |Not on template page}}&lt;br /&gt;
&lt;br /&gt;
A typical use is to manage the categorization of template pages. Adding {{tlf|Template other&amp;amp;nbsp;|&amp;amp;#32;|{{!((}}Category:&amp;#039;&amp;#039;[category name]&amp;#039;&amp;#039;{{))!}}}} to a template, for instance, means it would only categorize a page when that page isn&amp;#039;t a template page. (The first parameter consists of nothing, so no action taken if/when the template is on a template page.)&lt;br /&gt;
&lt;br /&gt;
==Demospace==&lt;br /&gt;
The parameter {{mono|demospace}} can be used to demonstrate or test this template. By default, it is undefined and has no effect on the template&amp;#039;s action, but:&lt;br /&gt;
* when set as &amp;quot;template&amp;quot; ({{para|demospace|template}}), it prompts the template to return the &amp;#039;&amp;#039;first&amp;#039;&amp;#039; result/action above (i.e. to behave as if on a &amp;quot;Template:&amp;quot; page) even if the template is on a different type of page;&lt;br /&gt;
* when set as &amp;quot;other&amp;quot; ({{para|demospace|other}}), it prompts the template to return the &amp;#039;&amp;#039;second&amp;#039;&amp;#039; result/action above (i.e. to behave as if not on a &amp;quot;Template:&amp;quot; page) even if the template is on a &amp;quot;Template:&amp;quot; page.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Template other&lt;br /&gt;
| demospace = template&lt;br /&gt;
| Template page text &lt;br /&gt;
| Other pages text &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
No matter on what kind of page the code above is used, it returns:&lt;br /&gt;
{{Template other&lt;br /&gt;
| demospace = template&lt;br /&gt;
| Template page text &lt;br /&gt;
| Other pages text &lt;br /&gt;
}}&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. Then do like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{template other &lt;br /&gt;
| Template page text &lt;br /&gt;
| Other pages text &lt;br /&gt;
| demospace = {{{demospace|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Technical details==&lt;br /&gt;
This template detects &amp;quot;Template talk:&amp;quot; pages as type &amp;#039;&amp;#039;&amp;#039;other&amp;#039;&amp;#039;&amp;#039;. For more details relevant to this template, see {{tl|Main talk other}}, which works similarly.&lt;/div&gt;</summary>
		<author><name>N.Sorokin</name></author>
	</entry>
</feed>