Template:External

From railML 2 Wiki
Revision as of 17:58, 8 September 2016 by RailML Coord Documentation (talk | contribs) (→‎Arguments: +Hinweis zu Gleichheitszeichen in URLs)
Jump to navigation Jump to search

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
      Notice: the mediawiki software will misinterpret URLs containing the equality sign (=). Replace equality signs in URLs with the HTML-entity =.
      Example: replace {{site|http://www.railml.org/forum/index.php?t=msg&th=469&start=0&}} with {{site|http://www.railml.org/forum/index.php?t=msg&th=469&start=0&}} as to display http://www.railml.org/forum/index.php?t=msg&th=469&start=0& (railML® website)
  • 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

If the second argument is unnamed (example: {{external|http://example.ex|some example text}}), it will be interpreted as link text. If the second argument is named (example:{{external|http://example.ex|type=some file format}}), it will be interpreted according to the argument name.

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)
{{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)