Jump to content

Template:IP-user other/core/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Davidgothberg (talk | contribs) at 01:51, 26 December 2019 (Prettifying: Adding <code> tags to the code examples.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This is the {{IP-user other/core}} sub-template.

Do not use this template directly; use {{IP-user other}} instead.

This template is called by {{IP-user other}}. It holds most of the code for {{IP-user other}}, while {{IP-user other}} itself performs parameter preprocessing.

Technical details

This subtemplate must be given the parameter "page" that should be a rootpage name without namespace. It returns one of two strings: "IP-user" or "other".

For instance this:

{{IP-user other/core|page=Somepage}}

Returns this:

other

And this:

{{IP-user other/core|page=201.83.25.59}}

Returns this:

IPv4

And this:

{{IP-user other/core|page=2001:B011:7009:18A0:FC2F:9F5F:5B46:306E}}

Returns this:

IPv6


For more documentation, see {{IP-user other}} and its talkpage.