Template:IsIPAddress
Jump to navigation
Jump to search
This documentation is transcluded from Template:IsIPAddress/doc.
Uses Lua: |
Returns 4 if the address is IPv4, 6 if IPv6, and a blank when not an IP address.
Usage
{{IsIPAddress |1= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Potential IP address | empty | required |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
Relies on:
Module:IPAddress
Examples
{{IsIPAddress|127.0.0.1}}
renders as:
4
{{IsIPAddress|=00AB:0002:3008:8CFD:00AB:0002:3008:8CFD}}
renders as:
Localization
This template is not intended to be localized.