Changes

Jump to navigation Jump to search
Correctify
This template can be used to create a formatted external link.
::''Note - this template is for appearance formatting of URL's, and to add [[microformat]] meta-data. For web-references etc please see [[Wikipedia:Citation templates]]''
== Usage ==
:* <code><nowiki>{{URLDomain|</nowiki>1=''url name''<nowiki>|</nowiki>2=''optional display text''<nowiki>}}</nowiki></code>
:** The first parameter is parsed to see if it takes the form of a complete URL. If it doesn't start with an known URI scheme and a slash ("http:/" or "https:/" or "ftp:/", possibly others in the future, by editing its code), an "http://" prefix will be prepended to the specified generated target URL of the link.
:** If no display text is specified or is empty, a default display text will be inferred by trying to reduce the specified URL without its recognized URI scheme (without the default "/" path of HTTP and FTP resources), and the domain name part will be forced to lowercase (for shorter and canonical display, but also to limit the occurrences of easily confusable characters, for example between letters and digits). The rest of the URL (including the rest of its path, the optional query string or the specified anchor) will be displayed unchanged.
:* <code><nowiki>{{URLDomain|</nowiki>2=''display text''<nowiki>}}</nowiki></code>
:** The url or domain name is optional : if it is not specified in the first parameter or this parameter is empty, the display text becomes mandatory, and will be displayed without any change.
:** If both parameters are missing or empty, a default message referencing a correct usage of this template will be generated (including a link to this page), to help editors.
== Microformat==
The template wraps the displayed URL with a <code>class="url"</code> so that it is included in any parent [[microformat]] which takes a URL parameter - see [[wikipedia:WP:UF|our Wikipedia's microformats project]].

Navigation menu