Template:Ifurl

Revision as of 15:42, 16 February 2012 by Matt Pijoan (talk | contribs)
Jump to navigation Jump to search

{{{3|}}}

This template returns one of two arguments, depending on if the first argument is a ftp, http, or https URL. If the scheme is not one of these three, or if the input is not a URL, it returns nothing.

Examples

{{ifurl|http://example.com/foo/bar| true| false}} → true
{{ifurl|https://example.com/foo/bar| true| false}} → true
{{ifurl|foo://example.com/foo/bar| true| false}} → {{{3|}}}

See also