Template:External link
From BoyWiki
BoyWiki Template documentation (for the above template, sometimes hidden or invisible)
Note: This template is currently for experimental/testing purposes only.
Usage
Named parameters
- url: HTTP link for the site or page.
- name: Name to use for the HTTP link. Defaults to the name of the wiki page where this template is transcluded.
|name=Example link
produces: Example link- name-style: Can be used to define a custom text style for the
|name=
parameter or the default text.
- name-style: Can be used to define a custom text style for the
- site: Name of the parent site. Can be wikilinked.
|site=[[example.com|Example website]]
produces: External link at Example website- site-style: Can be used to define a custom text style for the
|site=
parameter.
- site-style: Can be used to define a custom text style for the
- official: Define if the link is the official website for the topic.
|official=y
produces: External link (official website) - language: The
|language=
parameter accepts an ISO 639 language code.|language=eo
produces: External link (in Template:ISO 639 name) English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title). - registration: Define if the link requires registration.
|registration=y
produces: External link (requires registration) - subscription: Define if the link requires a subscription.
|subscription=y
produces: External link (requires subscription) - flash: Define if the link requires Adobe Flash.
|flash=y
produces: External link (requires Adobe Flash) - plugin: Define if the link requires a browser plugin.
|plugin=y
produces: External link (requires plugin) - requires: Can be used to describe other website requirements not covered by one of the above parameters. Can be wikilinked.
|requires=requires a [[web browser]]
produces: External link (requires a web browser) - requires-style: Can be used to override the text style used by the
|official=
,|language=
,|registration=
,|subscription=
,|flash=
,|plugin=
, and|requires=
parameters. - template: Name of the calling template, used for error messages. Example:
|template=External link template name
- text: Text used between the
|name=
and|site=
parameters. Defaults to:|text= at
- text-style: Can be used to define a custom text style for the
|text=
parameter or the default text used between|name=
and|site=
.
- text-style: Can be used to define a custom text style for the
- notext: Can be used to omit the text between
|name=
and|site=
parameters. Placing any value after|notext=
(e.g.|notext=y
) will omit the text.{{External link |url=http://www.example.com/ |name=''Example link'' |site= from [[example.com|Example website]] |notext=y}}
produces: Example link from Example website
Unnamed parameters
- 1 – url
- 2 – name
- 3 – site
Examples:
{{External link|http://www.example.com/}}
produces:
{{External link|http://www.example.com/|Example link}}
produces:
{{External link|http://www.example.com/|Example link|[[example.com|Example website]]}}
produces:
See also
- Manual of Style (linking)#Non-English-language sites
- Lists of ISO 639 codes - language codes cross-reference
{{Language icon}}
{{Official website}}
{{WS}}
{{Ill}}
Visit Template:External link/doc to edit this template's description!
Done making changes? Refresh Also see: Portal:Template index and Help:Templates
Done making changes? Refresh Also see: Portal:Template index and Help:Templates