Template:IsExternalLink

Usage
Returns 1 if the argument starts with http:// https:// ftp:// (case insensitive)

otherwise returns 0

Examples
returns

returns