Template:Official website
Jump to navigation
Jump to search
{{#invoke:URL|url|1=|2=Official website}}
Usage
The purpose of this template is to provide a standard format for labeling links to official websites. The only required parameter is the URL. Three other parameters are also available:
name=
is used to reformat the title if "official website" is not suitable.
- NOTE: This name should succinctly and accurately describe the external link in relation to the subject. In particular, it should not include the article subject's name as the reader reasonably expects that all external links pertain to the subject.
mobile=
is optionally used if there is a different "official website" for use with Mobile Web devicesformat=flash
is optionally used if the website requires Adobe Flash Player software
Some URLs that contain special characters, such as &
or =
, will break the template. The solution is to prepend the URL with 1=
Code | Result |
---|---|
{{Official website|example.org}}
|
url|1=example.org/|2=Official website}} |
{{Official website|www.example.org}}
|
url|1=www.example.org/|2=Official website}} |
{{Official website|http://www.example.org/}}
|
url|1=http://www.example.org/%7C2=Official website}} |
{{Official website|https://www.example.org/}}
|
url|1=https://www.example.org/%7C2=Official website}} |
{{Official website|1=http://www.example.org/?action=view}}
|
url|1=http://www.example.org/?action=view%7C2=Official website}} |
{{Official website|http://www.example.org|name=Official example website}}
|
url|1=http://www.example.org/%7C2=Official example website}} |
{{Official website|example.org|mobile=http://m.example.org}}
|
url|1=example.org/|2=Official website}} ({{#invoke:URL|url|1=http://m.example.org%7C2=Mobile}}) |
{{Official website|example.org|format=flash}}
|
url|1=example.org/|2=Official website}} (Requires Adobe Flash Player) |
See also
- {{URL}} – for use instead of {{Official website}} in infoboxes
The above documentation is transcluded from Template:Official website/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |