Template:Site: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(→‎Options: Arguments explained)
Line 6: Line 6:


For Links to other websites, please use [[Template:External]].
For Links to other websites, please use [[Template:External]].
===Options===
===Arguments===
The template has an obligatory and an optional argument:
The template has an obligatory and three optional argument:
* The first, obligatory, argument is the link target. Always use the complete URL, although the template is used exclusively for pages on [http://railml.org http://railml.org].
*Obligatory; unnamed
* The second, optional, argument is the link text. If it is empty, the link target will be used as link text.
**'''1''': the link target, e.g. http://railml.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 17:58, 2 March 2016

Usage

Use this template, whenever you set links to the railml.org website ([http.://railml.org http.://railml.org]).

This template grants that links out of this wiki will be collected in category:External Link. So we keep an overview of external links and control their actuality routinely.

For Links to other websites, please use Template:External.

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
{{site|http://railml.org}} http://railml.org (railML® website)
{{site|http://railml.org|Our homepage}} Our homepage (railML® website)
{{site|http://railml.org|type=HTML}} http://railml.org (railML® website, HTML)
{{site|http://railml.org|lang=EN|text=Our homepage}} Our homepage (railML® website, EN)
{{site|http://railml.org|Our homepage|type=HTML|lang=EN}} Our homepage (railML® website, HTML, EN)

kategorie:ContentTemplate