Template:Rml: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:®|{{#ifeq:{{{R|yes}}}|no||<sup><small>®</small></sup> }}}}{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}{{#ifeq:{{#sub:{{{1}}}|0|1}}|2|{{#vardefine:display|[https://wiki2.railml.org railML{{#var:®}} {{{1|}}}]}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}{{#var:display}}</includeonly><noinclude>
<includeonly>{{#vardefine:®|{{#ifeq:{{{R|yes}}}|no||<sup><small>®</small></sup> }}}}{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}{{#ifeq:{{#sub:{{{1}}}|0|1}}|2|{{#vardefine:display|{{wiki2|railML{{#var:®}} {{{1|}}}}}}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}{{#var:display}}</includeonly><noinclude>
==Usage==
==Usage==
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.
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.

Revision as of 17:24, 23 May 2024

Usage

This template is intended to allow for a standardized and adaptable display of the brand name railML®. If it refers to [[:wiki2:railML® 2|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

[[:wiki2:railML® 2.4|railML® 2.4]]

{{rml|3.1}}

delivers

railML® 3.1

{{rml|2.5|link=no}}

delivers:

railML® 2.5

{{rml|R=no}}

delivers:

railML