Template:Rml: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(Tooltip verbessert)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
Anzeige ohne Version: </noinclude>{{#vardefine:display|railML{{#var:®}}}}<noinclude>
Anzeige ohne Version: </noinclude>{{#vardefine:display|railML{{#var:®}}}}<noinclude>
Anzeige mit version:  </noinclude>{{#if:{{{1|}}}|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}<noinclude>
Anzeige mit version:  </noinclude>{{#if:{{{1|}}}|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}<noinclude>
Toter code:           {{#ifeq:{{#sub:{{{1}}}|0|1}}|2|{{#vardefine:display|{{wiki2||railML{{#var:®}}{{#if:{{{1|}}}|&ensp;{{{1|}}}}}}}}}}}{{#ifeq:{{{link}}}|no|  
In Link packen: </noinclude>{{#ifeq:{{{link}}}|no||{{#ifeq:{{#sub:{{{1}}}|0|1}}|2|{{#vardefine:display|{{wiki2|Main Page|{{#var:display}}}}}}}}}}<noinclude>
                      {{#vardefine:display|railML{{#var:®}}{{#if:{{{1|}}}|&ensp;{{{1|}}}}}}}}}
In Link packen: </noinclude>{{#ifeq:{{{link}}}|no||{{#vardefine:display|{{wiki{{#sub:{{{1}}}|0|1}}||{{var:display}}}}}}}}<noinclude>
Aufruf;        </noinclude>{{#var:display}}</includeonly><noinclude>
Aufruf;        </noinclude>{{#var:display}}</includeonly><noinclude>
==Usage==
==Usage==
Line 10: Line 8:


To display {{org}}, please use [[template:org]] instead.
To display {{org}}, please use [[template:org]] instead.
Analogously, there exists [[template:rtm]] for {{rtm}}.
===Arguments===
===Arguments===
*1 (optional): a version number
*1 (optional): a version number

Latest revision as of 12:28, 25 November 2024

Usage

This template is intended to allow for a standardized and adaptable display of the brand name railML®. If it refers to railML® 2 it will produce a link.

To display railML.org e.V., please use template:org instead.

Analogously, there exists template:rtm for RailTopoModel® .

Arguments

  • 1 (optional): a version number
  • link (optional): if "no", no link will be produced; default: "yes"
  • R: if "no", the ®-symbol will be omitted; default: "yes"

Dependencies

This template does not use or serve any other templates.

Example

{{rml}}

delivers

railML®

{{rml|2.4}}

delivers

railML® 2.4

{{rml|3.1}}

delivers

railML® 3.1

{{rml|2.5|link=no}}

delivers:

railML® 2.5

{{rml|R=no}}

delivers:

railML