Template:External link/doc: Difference between revisions
|  >Tomoneill  (established from http://en.wikipedia.org/w/index.php?title=Template:External_link/doc&oldid=421905871) | m (1 revision imported) | 
Latest revision as of 08:59, 13 September 2024
|  | This is a documentation subpage for Template:External link
(see that page for the template itself). It contains usage information, categories, and other content that is not part of the original template page. | 
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 linkproduces: 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=yproduces: External link/doc (official website)
- language: The |language=parameter accepts an ISO 639 language code.|language=eoproduces: External link/doc (in Template:ISO 639 name eo) 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=yproduces: External link/doc (requires registration)
- subscription: Define if the link requires a subscription. |subscription=yproduces: External link/doc (requires subscription)
- flash: Define if the link requires Adobe Flash. |flash=yproduces: External link/doc (requires Adobe Flash)
- plugin: Define if the link requires a browser plugin. |plugin=yproduces: 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:
