Template:External: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(→‎Usage: Arguments explained)
(→‎Examples: Further example)
Line 26: Line 26:
|[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=HTML}}</nowiki>
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:PDF|,&nbsp;PDF}}{{#if:|,&nbsp;{{{lang}}}}})''
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:HTML|,&nbsp;HTML}}{{#if:|,&nbsp;{{{lang}}}}})''[[kategorie:External Link]]
|-
|-
|<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:|,&nbsp;{{{type}}}}}{{#if:EN|,&nbsp;EN}})''
|[http://www.uic.org {{#if:|{{{2}}}|{{#if:UIC|UIC|http://www.uic.org}}}}] ''(external link{{#if:|,&nbsp;{{{type}}}}}{{#if:EN|,&nbsp;EN}})''
|-
|<nowiki>{{external|http://www.uic.org|UIC|type=HTML|lang=EN}}</nowiki>
|[http://www.uic.org {{#if:UIC|UIC|{{#if:|{{{text}}}|http://www.uic.org}}}}] ''(external link{{#if:HTML|,&nbsp;HTML}}{{#if:EN|,&nbsp;EN}})''[[kategorie:External Link]]
|}
|}


[[kategorie:ContentTemplate]]
[[kategorie:ContentTemplate]]
</noinclude>
</noinclude>

Revision as of 16:44, 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
  • 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=HTML}} http://www.uic.org (external link, HTML)kategorie:External Link
{{external|http://www.uic.org|lang=EN|text=UIC}} UIC (external link, EN)
{{external|http://www.uic.org|UIC|type=HTML|lang=EN}} UIC (external link, HTML, EN)kategorie:External Link

kategorie:ContentTemplate