Get hostname

From WikiApiary, monitoring the MediaWiki universe

Revision as of 23:21, 30 July 2014 by Thingles (talk | contribs) (Protected "Template:Get hostname": Critical page ([Edit=Editors only] (indefinite) [Move=Editors only] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template returns the hostname for a given URL.


This template will take either the first argument, or a named parameter called URL. Note that if you pass it a URL with an equals sign you must use the named parameter. For safety, it would be recommended to always use the named parameter. Also beware that a pipe character will cause problems in the template call so you should check for a pipe in the URL before calling this template.