Template:Rml: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#vardefine:tm|{{#if:{{{tm|}}}||<sup><small>®</small></sup>}}}}{{#vardefine:display|railML{{#var:tm}} {{{1|}}}}}{{#ifeq:{{#sub:{{{1}}}|0|1}}|3|{{#vardefine:display|{{wiki3||railML{{#var:tm}} {{{1|}}}}}}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML{{#var:tm}} {{{1|}}}}}}}{{#var:display}}<!--{{#ifeq:{{{link}}}|no||[[category:railML {{{1|}}}]]}}--></includeonly><noinclude>
<includeonly>{{#vardefine:®|{{#ifeq:{{{R|yes}}}|no||<sup><small>®</small></sup>}}}}<noinclude>
Anzeige ohne Version: </noinclude>{{#vardefine:display|railML{{#var:®}}}}<noinclude>
Anzeige mit version: </noinclude>{{#if:{{{1|}}}|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}<noinclude>
In Link packen: </noinclude>{{#ifeq:{{{link}}}|no||{{#ifeq:{{#sub:{{{1}}}|0|1}}|3|{{#vardefine:display|{{wiki3||{{#var:display}}}}}}}}}}<noinclude>
Aufruf;        </noinclude>{{#var:display}}</includeonly><noinclude>
==Usage==
==Usage==
This template is intended to allow for a standardized and adaptable display of the brand name railML<sup>®</sup>. If it refers to {{rml|3}} it will produce a link.
This template is intended to allow for a standardized and adaptable display of the brand name {{rml}}. If it refers to {{rml|2}} it will produce a link.
 
To display {{org}}, please use [[template:org]] instead.
===Arguments===
===Arguments===
*1 (optional): a version number
*1 (optional): a version number
*link (optional): if "no", no link will be produced; default: "yes"
*link (optional): if "no", no link will be produced; default: "yes"
*tm: If exiting, no <sup><small>®</small></sup> will be shown.
*R: if "no", the ®-symbol will be omitted; default: "yes"
===Dependencies===
===Dependencies===
This template does not use or serve any other templates.
This template does not use or serve any other templates.
Line 25: Line 31:


{{rml|3.1}}
{{rml|3.1}}
<pre>{{rml|3.2|link=no}}</pre>delivers:
<pre>{{rml|2.5|link=no}}</pre>delivers:


{{rml|3.2|link=no}}
{{rml|2.5|link=no}}
<pre>{{rml|3.2|tm=no}}</pre>delivers:
<pre>{{rml|R=no}}</pre>delivers:


{{rml|3.2|tm=no}}
{{rml|R=no}}


{{interwiki}}
{{interwiki|2=all}}
[[Category:ContentTemplate]]</noinclude>
[[Category:ContentTemplate]]</noinclude>

Latest revision as of 16:47, 25 September 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.

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