Template:External: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(→Examples: Documentation actualized to new parameters) |
|||
Line 17: | Line 17: | ||
|- | |- | ||
|<nowiki>{{external|http://www.uic.org}}</nowiki> | |<nowiki>{{external|http://www.uic.org}}</nowiki> | ||
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | |[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{external|http://www.uic.org|International Union of Railways}}</nowiki> | |<nowiki>{{external|http://www.uic.org|International Union of Railways}}</nowiki> | ||
|[http://www.uic.org {{#if:International Union of Railways|International Union of Railways|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | |[http://www.uic.org {{#if:International Union of Railways|International Union of Railways|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{external|http://www.uic.org|type=PDF}}</nowiki> | |<nowiki>{{external|http://www.uic.org|type=PDF}}</nowiki> | ||
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:PDF|, PDF}}{{#if:|, {{{lang}}}}})'' | |[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:PDF|, PDF}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{external|http://www.uic.org|lang=EN|text=UIC}}</nowiki> | |<nowiki>{{external|http://www.uic.org|lang=EN|text=UIC}}</nowiki> | ||
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:UIC|UIC|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:EN|, EN}})'' | |[http://www.uic.org {{#if:|{{{2}}}|{{#if:UIC|UIC|http://www.uic.org}}}}] ''(external link{{#if:|, {{{type}}}}}{{#if:EN|, EN}})'' | ||
|} | |} | ||
[[kategorie:ContentTemplate]] | [[kategorie:ContentTemplate]] | ||
</noinclude> | </noinclude> |
Revision as of 17:33, 2 March 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 Template: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
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) |