Difference between revisions of "Template:IsIPAddress/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(→‎See also: related page)
imported>Sdkb
(→‎See also: I created a new template)
 
Line 15: Line 15:
 
* [[Module:IPAddress]]
 
* [[Module:IPAddress]]
 
* [[Template:IP-talk]]
 
* [[Template:IP-talk]]
* [[MediaWiki:Group-user.css]] (for displaying content only to IP users)
+
* [[Template:If IP]] (for displaying content only to IP users)
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Latest revision as of 07:53, 16 June 2020

Returns 4 if the address is IPv4, 6 if IPv6, and a blank when not an IP address.

Usage

The blank can be distinguished in constructs like: {{#if:{{IsIPAddress|127.0.0.1}}|<!--yes-->|<!--no-->}}

See also