Template:External: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(→Examples: Documentation actualized to new parameters) |
(→Usage: Arguments explained) |
||
Line 1: | Line 1: | ||
<includeonly>[{{{1}}} {{#if:{{{2|}}}|{{{2}}}|{{#if:{{{text|}}}|{{{text}}}|{{{1}}}}}}}] ''(external link{{#if:{{{type|}}}|, {{{type}}}}}{{#if:{{{lang|}}}|, {{{lang}}}}})''[[kategorie:External Link]]</includeonly><noinclude> | <includeonly>[{{{1}}} {{#if:{{{2|}}}|{{{2}}}|{{#if:{{{text|}}}|{{{text}}}|{{{1}}}}}}}] ''(external link{{#if:{{{type|}}}|, {{{type}}}}}{{#if:{{{lang|}}}|, {{{lang}}}}})''[[kategorie:External Link]]</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Please, use this template, whenever you set external links. | |||
This template grants that external links will be collected in [[:category:External Link]]. So we keep an overview of external links and control their actuality routinely. | This template grants that external links will be collected in [[:category:External Link]]. So we keep an overview of external links and control their actuality routinely. | ||
For Links to pages on the | For Links to pages on the {{rml}}-site ([http://railml.org http://railml.org]), please use [[Template:Site]]. | ||
=== | ===Arguments=== | ||
The template has an obligatory and | The template has an obligatory and three optional argument: | ||
* | *Obligatory; unnamed | ||
* | **'''1''': the link target, e.g. http://uic.org | ||
*Optional | |||
**'''2''' or ''text'': the link text. If it is empty, the link target will be used as link text. This argument can be used both named or unnamed. | |||
**''type'': the file type, e.g. PDF | |||
**''lang'': the language of the link target file, e.g. EN | |||
==Examples== | ==Examples== |
Revision as of 16:39, 2 March 2016
Usage
Please, use this template, whenever you set external links.
This template grants that external links will be collected in category:External Link. So we keep an overview of external links and control their actuality routinely.
For Links to pages on the railML®-site (http://railml.org), please use Template:Site.
Arguments
The template has an obligatory and three optional argument:
- Obligatory; unnamed
- 1: the link target, e.g. http://uic.org
- Optional
- 2 or text: the link text. If it is empty, the link target will be used as link text. This argument can be used both named or unnamed.
- type: the file type, e.g. PDF
- lang: the language of the link target file, e.g. EN
Examples
Code | Output |
{{external|http://www.uic.org}} | http://www.uic.org (external link) |
{{external|http://www.uic.org|International Union of Railways}} | International Union of Railways (external link) |
{{external|http://www.uic.org|type=PDF}} | http://www.uic.org (external link, PDF) |
{{external|http://www.uic.org|lang=EN|text=UIC}} | UIC (external link, EN) |