Template:IsIPAddress/doc

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

Usage

 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * (opening with space) &rarr;

The blank can be distinguished in constructs like: