Difference between revisions of "Template:IsIPAddress/doc"

From blackwiki
Jump to navigation Jump to search
imported>Meteor sandwich yum
imported>Sdkb
(→‎See also: related page)
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)
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 07:14, 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