Permanently protected template

Template:Official website

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Official website

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

The purpose of this template is to provide a standard format for labeling links to official websites. Four parameters are available:

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}} Official website
{{Official website|www.example.org}} Official website
{{Official website|//www.example.org}} Official website
{{Official website|http://www.example.org/}} Official website
{{Official website|https://www.example.org/}} Official website
{{Official website|1=http://www.example.org/?action=view}} Official website
{{Official website|http://www.example.org|name=Example}} Example
{{Official website|example.org|mobile=http://m.example.org}} Official website (Mobile)
{{Official website|mobile=http://m.example.org|URL=example.org}} Official website (Mobile)
{{Official website|example.org|format=flash}} Official website (Requires Adobe Flash Player)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Official website

The purpose of this template is to provide a standard format for labeling links to official websites.

Template parameters
Parameter Description Type Status
URL 1URL

The URL that the template will link to

Default
empty
Example
empty
Auto value
empty
string optional
URL Text name

The text the URL will display. If not provided this will default to 'Official website''

Default
empty
Example
empty
Auto value
empty
string optional
Mobile Website mobile

If the website has a different 'official website' for mobile devices this website can be listed here

Default
empty
Example
empty
Auto value
empty
string optional
Requires Flash format

If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash'

Default
empty
Example
empty
Auto value
empty
string optional

See also

  • {{Official websites}} – For multiple websites such as for different countries (preferably in English)
  • {{Official websites in}} – For multiple websites in different languages (preferably in English)
  • {{URL}} – For use instead of {{Official website}} in infoboxes