Translations:Manual:$wgUrlProtocols/28/en

If you need this functionality in older versions, there is the function  in ./includes/Parser.php.