Template:External link/doc: Difference between revisions
From BoyWiki
Created page with "{{documentation subpage}}<includeonly>{{intricate template}}</includeonly> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> '''Note: This template is ..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation subpage}}<includeonly>{{intricate template}}</includeonly> | <noinclude>{{documentation subpage}}<includeonly>{{intricate template}}</noinclude></includeonly> | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
Latest revision as of 22:04, 5 March 2015
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/doc 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/doc (official website) - language: The
|language=
parameter accepts an ISO 639 language code.|language=eo
produces: External link/doc (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/doc (requires registration) - subscription: Define if the link requires a subscription.
|subscription=y
produces: External link/doc (requires subscription) - flash: Define if the link requires Adobe Flash.
|flash=y
produces: External link/doc (requires Adobe Flash) - plugin: Define if the link requires a browser plugin.
|plugin=y
produces: External link/doc (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/doc (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}}