<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://knowislam.wiki/topic/?action=history&amp;feed=atom&amp;title=Template%3AUser_other%2Fdoc</id>
	<title>Template:User other/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://knowislam.wiki/topic/?action=history&amp;feed=atom&amp;title=Template%3AUser_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://knowislam.wiki/topic/?title=Template:User_other/doc&amp;action=history"/>
	<updated>2026-05-08T15:43:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://knowislam.wiki/topic/?title=Template:User_other/doc&amp;diff=713&amp;oldid=prev</id>
		<title>Menj: Created page with &quot;{{Documentation subpage}} {{Template shortcut|ns2}} {{High-use|150,000+}} This is the {{tl|user other}} meta-template.  This template helps other templates detect whether they are on a &quot;User:&quot; page or some &quot;other&quot; type of page.  ===Usage=== This template usually takes two parameters, like this:  &lt;syntaxhighlight lang=&quot;wikitext&quot;&gt; {{user other|User-page text|Other-pages text}} &lt;/syntaxhighlight&gt;  If the template is on a &quot;User:&quot; page, it will return this:  :{{user other|dem...&quot;</title>
		<link rel="alternate" type="text/html" href="https://knowislam.wiki/topic/?title=Template:User_other/doc&amp;diff=713&amp;oldid=prev"/>
		<updated>2025-01-07T05:25:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Template shortcut|ns2}} {{High-use|150,000+}} This is the {{tl|user other}} meta-template.  This template helps other templates detect whether they are on a &amp;quot;User:&amp;quot; page or some &amp;quot;other&amp;quot; type of page.  ===Usage=== This template usually takes two parameters, like this:  &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt; {{user other|User-page text|Other-pages text}} &amp;lt;/syntaxhighlight&amp;gt;  If the template is on a &amp;quot;User:&amp;quot; page, it will return this:  :{{user other|dem...&amp;quot;&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;
{{Template shortcut|ns2}}&lt;br /&gt;
{{High-use|150,000+}}&lt;br /&gt;
This is the {{tl|user other}} meta-template.&lt;br /&gt;
&lt;br /&gt;
This template helps other templates detect whether they are on a &amp;quot;User:&amp;quot; page or some &amp;quot;other&amp;quot; type of page.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
This template usually takes two parameters, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{user other|User-page text|Other-pages text}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on a &amp;quot;User:&amp;quot; page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{user other|demospace=user|User-page text|Other-pages text}}&lt;br /&gt;
&lt;br /&gt;
If the template is on any other type of page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{user other|User-page text|Other-pages text}}&lt;br /&gt;
&lt;br /&gt;
Using this meta-template can make a template that adds a category when it is invoked on User pages, but not when it is invoked on non-User pages. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{user other|[[Category:Some user category]]}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This meta-template can warn that a template should not be used on non-User pages:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{user other||This template should only be used on user pages.}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the first case above, the &amp;quot;other&amp;quot; parameter was not used. In the second example, the &amp;quot;user&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 named parameter, &amp;#039;&amp;#039;&amp;#039;demospace&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* If demospace has the value &amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039;, it returns the user-page text.&lt;br /&gt;
* It demospace 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 demospace 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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{user other&lt;br /&gt;
| User-page text&lt;br /&gt;
| Other-pages text&lt;br /&gt;
| demospace=user&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what type of page the code above is used, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{user other&lt;br /&gt;
| User-page text&lt;br /&gt;
| Other-pages text&lt;br /&gt;
| demospace=user&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;
{{user other&lt;br /&gt;
| User-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;User 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 full documentation there.&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:User namespace templates]]&lt;br /&gt;
[[Category:Namespace manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Menj</name></author>
	</entry>
</feed>