<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?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://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AUser_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:User_other/doc&amp;action=history"/>
	<updated>2026-04-27T23:17:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:User_other/doc&amp;diff=42011&amp;oldid=prev</id>
		<title>imported&gt;A876: some wordings. +commas. +hyphens. more like {main talk other}.</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:User_other/doc&amp;diff=42011&amp;oldid=prev"/>
		<updated>2022-01-15T08:45:22Z</updated>

		<summary type="html">&lt;p&gt;some wordings. +commas. +hyphens. more like {main talk other}.&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;pre&amp;gt;&lt;br /&gt;
{{user other|User-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;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;pre&amp;gt;&lt;br /&gt;
{{user other|[[Category:Some user category]]}}&lt;br /&gt;
&amp;lt;/pre&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;pre&amp;gt;&lt;br /&gt;
{{user other||This template should only be used on user pages.}}&lt;br /&gt;
&amp;lt;/pre&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;pre&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;/pre&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;pre&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;/pre&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>imported&gt;A876</name></author>
	</entry>
</feed>