<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/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://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATemplate_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Template_other/doc&amp;action=history"/>
	<updated>2026-04-04T16:01:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Template_other/doc&amp;diff=16525&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Template_other/doc&amp;diff=16525&amp;oldid=prev"/>
		<updated>2014-11-21T23:00:07Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
This is the {{tl|template other}} meta-template.&lt;br /&gt;
&lt;br /&gt;
It helps other templates detect if they are on a &amp;quot;Template:&amp;quot; page or some &amp;quot;other&amp;quot; type of page.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
This template usually takes two parameters, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{template other | Template page text | Other pages text }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on a &amp;quot;Template:&amp;quot; page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{template other | Template page text | Other pages text }}&lt;br /&gt;
&lt;br /&gt;
If the template is on any other page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{template other | demospace=other | Template page text | Other pages text }}&lt;br /&gt;
&lt;br /&gt;
A typical usage case could be to make it so that a template only adds a category when not on a template page. Thus not adding the template itself and other templates that are built with it to the category. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{template other | | [[Category:Some maintenance category]] }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the example above the &amp;quot;template&amp;quot; parameter was left empty.&lt;br /&gt;
&lt;br /&gt;
=== Demospace ===&lt;br /&gt;
&lt;br /&gt;
For testing and demonstration purposes this template can take a parameter named '''demospace'''. &lt;br /&gt;
&lt;br /&gt;
* If it has the value '''template''' it returns the template page text.&lt;br /&gt;
* It if has the value '''other''' 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;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{template other &lt;br /&gt;
| Template page text &lt;br /&gt;
| Other pages text &lt;br /&gt;
| demospace = template&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;
:{{template other &lt;br /&gt;
| Template page text &lt;br /&gt;
| Other pages text &lt;br /&gt;
| demospace = template&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
You can make it so your template also understands the '''demospace''' 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;
{{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;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
&lt;br /&gt;
This template detects &amp;quot;Template talk:&amp;quot; pages as type '''other'''.&lt;br /&gt;
&lt;br /&gt;
This template works like {{tl|main talk other}}, for more examples and technical details see full documentation there. &lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
{{namespace detect see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Namespace manipulation templates]]&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>