Template:IsIPAddress/doc
From Wikipedia, the free encyclopedia
Page Module:Message box/ombox.css has no content.
| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Script error: No such module "High-use".
Page Module:Message box/ombox.css has no content.
| File:Lua-Logo.svg | This template uses Lua: |
Returns 4 if the address is IPv4, 6 if IPv6, and a blank when not an IP address.
Usage
- Template:Tlx → 4
- Template:Tlx → 6
- Template:Tlx →
- Template:Tlx →
- Template:Tlx (opening with space) → 4
The blank can be distinguished in constructs like: {{#if:{{IsIPAddress|127.0.0.1}}|<!--yes-->|<!--no-->}}
See also
- Module:IPAddress
- Template:IP-talk
- Template:If IP (for displaying content only to IP users)
- Template:Is temporary account