Template:External: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
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 railML<sup>®</sup> ([http://railml.org http://railml.org]), please use [[Semplate:Site]]. | |||
===Options=== | ===Options=== | ||
The template has an obligatory and an optional argument: | The template has an obligatory and an optional argument: | ||
* The first, obligatory, argument is the link target | * The first, obligatory, argument is the link target | ||
* The second, optional argument is the link text. If it is empty, the link target will be used as link text. | * The second, optional argument is the link text. If it is empty, the link target will be used as link text. | ||
==Examples== | |||
<nowiki>{{external|http://uic.org}}</nowiki> | |||
delivers | |||
[http://uic.org {{#if:|{{{2}}}|http://uic.org}}] ''(external link)''[[kategorie:External Link]] | |||
<nowiki>{{external|http://uic.org|UIC homepage}}</nowiki> | |||
delivers | |||
[http://uic.org {{#if:UIC homepage|UIC homepage|http://uic.org}}] ''(external link)''[[kategorie:External Link]] | |||
[[kategorie:ContentTemplate]] | [[kategorie:ContentTemplate]] | ||
</noinclude> | </noinclude> |
Revision as of 10:19, 11 February 2016
Usage
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® (http://railml.org), please use Semplate:Site.
Options
The template has an obligatory and an optional argument:
- The first, obligatory, argument is the link target
- The second, optional argument is the link text. If it is empty, the link target will be used as link text.
Examples
{{external|http://uic.org}}
delivers
http://uic.org (external link)kategorie:External Link
{{external|http://uic.org|UIC homepage}}
delivers
UIC homepage (external link)kategorie:External Link