<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIP-user_other%2Fdoc</id>
	<title>Template:IP-user other/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIP-user_other%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:IP-user_other/doc&amp;action=history"/>
	<updated>2026-04-10T03:52:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:IP-user_other/doc&amp;diff=18776&amp;oldid=prev</id>
		<title>Wikipedia&gt;Davidgothberg: More text.</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:IP-user_other/doc&amp;diff=18776&amp;oldid=prev"/>
		<updated>2019-12-27T22:06:35Z</updated>

		<summary type="html">&lt;p&gt;More text.&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;
&amp;lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
{{lua|Module:IPAddress}}&lt;br /&gt;
This is the {{tl|IP-user other}} meta-template.&lt;br /&gt;
&lt;br /&gt;
This template helps other templates detect if they are on an IP-user page or some &amp;quot;other&amp;quot; type of page. &lt;br /&gt;
&lt;br /&gt;
It detects both the subject page and talk page of an IP-user as &amp;quot;IP-user&amp;quot;. It also detects the subpages and subsubpages of an IP-user, for instance it considers &amp;quot;&amp;#039;&amp;#039;&amp;#039;User talk:12.34.56.78/subpage&amp;#039;&amp;#039;&amp;#039;&amp;quot; as &amp;quot;IP-user&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It also detects IPv6 user pages, for instance it considers &amp;quot;&amp;#039;&amp;#039;&amp;#039;User:2001:470:FD:3:0:0:0:80&amp;#039;&amp;#039;&amp;#039;&amp;quot; as &amp;quot;IP-user&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It can also differentiate between IPv4 and IPv6 user pages if that is needed.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
This template can be used in several different ways.&lt;br /&gt;
&lt;br /&gt;
It can be used with unnamed parameters, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other | IP-user text | Other pages text }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this template is on an IP-user page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other | page = User:12.34.56.78 | IP-user text | Other pages text }}&lt;br /&gt;
&lt;br /&gt;
If this template is on any other page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other | IP-user text | Other pages text }}&lt;br /&gt;
&lt;br /&gt;
It can also be used with named parameters, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other &lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this template is on an IP-user page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other &lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text &lt;br /&gt;
| page = User:12.34.56.78 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If this template is on any other page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other &lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If you need to differentiate between IPv4 and IPv6 user pages, then do like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other &lt;br /&gt;
| IPv4 = IPv4 text&lt;br /&gt;
| IPv6 = IPv6 text&lt;br /&gt;
| other = Other pages text &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this template is on an IPv4 user page, for instance &amp;#039;&amp;#039;&amp;#039;User talk:12.34.56.78/subpage&amp;#039;&amp;#039;&amp;#039;, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other &lt;br /&gt;
| IPv4 = IPv4 text&lt;br /&gt;
| IPv6 = IPv6 text&lt;br /&gt;
| other = Other pages text &lt;br /&gt;
| page = User talk:12.34.56.78/subpage&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If this template is on an IPv6 user page, for instance &amp;#039;&amp;#039;&amp;#039;User:2001:470:FD:3:0:0:0:80&amp;#039;&amp;#039;&amp;#039;, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other &lt;br /&gt;
| IPv4 = IPv4 text&lt;br /&gt;
| IPv6 = IPv6 text&lt;br /&gt;
| other = Other pages text &lt;br /&gt;
| page = User:2001:470:FD:3:0:0:0:80&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If this template is on any other page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{IP-user other &lt;br /&gt;
| IPv4 = IPv4 text&lt;br /&gt;
| IPv6 = IPv6 text&lt;br /&gt;
| other = Other pages text &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== The &amp;quot;page&amp;quot; parameter ===&lt;br /&gt;
This template can take a parameter named &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039;. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other&lt;br /&gt;
| IP-user text &lt;br /&gt;
| Other pages text&lt;br /&gt;
| page = User:12.34.56.78&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or perhaps clearer with the named parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other&lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| page = User:12.34.56.78&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;
:{{IP-user other&lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| page = User:12.34.56.78&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; parameter makes this template behave exactly as if on that page. The pagename doesn&amp;#039;t have to be an existing page. &lt;br /&gt;
&lt;br /&gt;
If the parameter is empty or undefined, the name of the current page determines the result.&lt;br /&gt;
&lt;br /&gt;
You can make it so your template also understands the &amp;#039;&amp;#039;&amp;#039;page&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;
{{IP-user other&lt;br /&gt;
| IP = IP-user text &lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
Templates have a problem to handle parameter data that contains equal signs &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot;. But that is easily solved by using numbered parameters. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other&lt;br /&gt;
| 1 = IP-user text: &amp;quot;A = B&amp;quot;&lt;br /&gt;
| 2 = Other pages text: &amp;quot;C = D&amp;quot;&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since this template also has named parameters, this is probably clearer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{IP-user other&lt;br /&gt;
| IP = IP-user text: &amp;quot;A = B&amp;quot;&lt;br /&gt;
| other = Other pages text: &amp;quot;C = D&amp;quot;&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your template is using tables, then you need to know this:&lt;br /&gt;
&lt;br /&gt;
Templates have a problem to handle parameter data that contains pipes &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot;, unless the pipe is inside another template &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{name|param1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or inside a piped link &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Help:Template|help]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead the usual solution is to use &amp;quot;[[Help:HTML in wikitext|HTML wikimarkup]]&amp;quot; for the table code, which is more robust.&lt;br /&gt;
&lt;br /&gt;
This template calls [[Module:IPAddress]] which does most of the work for {{tl|IP-user other}}, while {{tl|IP-user other}} itself does parameter preprocessing.&lt;br /&gt;
&lt;br /&gt;
For more technical details, see the [[Template talk:IP-user other|talk page]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Namespace and pagename-detecting templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Pagename manipulation templates]]&lt;br /&gt;
[[Category:Wikipedia metatemplates]]&lt;br /&gt;
&lt;br /&gt;
[[sv:Mall:IP_annan]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Davidgothberg</name></author>
	</entry>
</feed>