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
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:display|railML<sup><small>®</small></sup>{{{1|}}}}}{{#ifeq:{{#sub:{{{1}}}|0|1}}|3|{{#vardefine:display|[https://wiki3.railml.org railML<sup><small>®</small></sup>{{{1|}}}]}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML<sup><small>®</small></sup>{{{1|}}}}}}}{{#var:display}}</includeonly><noinclude>
<includeonly>{{#vardefine:display|railML<sup><small>®</small></sup> {{{1|}}}}}{{#ifeq:{{#sub:{{{1}}}|0|1}}|3|{{#vardefine:display|[https://wiki3.railml.org railML<sup><small>®</small></sup>{{{1|}}}]}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML<sup><small>®</small></sup> {{{1|}}}}}}}{{#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 railML<sup>®</sup>. If it refers to {{rml|3}} it will produce a link.
Line 9: Line 9:


==Example==
==Example==
<nowiki>{{rml}}</nowiki>
<pre>{{rml}}</pre>


delivers
delivers


{{rml}}
{{rml}}
<nowiki>{{rml|2.4}}</nowiki>
<pre>{{rml|2.4}}</pre>


delivers
delivers


{{rml|2.4}}
{{rml|2.4}}
<nowiki>{{rml|3.1}}</nowiki>
<pre>{{rml|3.1}}</pre>


delivers
delivers

Revision as of 10:14, 13 November 2021

Usage

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

Arguments

  • 1 (optional): a version number
  • link (optional): if "no", no link will be produced; 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|3.2|link=no}}

delivers:

railML® 3.2