Template:Rml: Difference between revisions

From railTOPOMODEL® Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly>railML<sup>®</sup></includeonly><noinclude> ==Usage== This template is intendet to allow for a standardized and adaptable display of the brand name railML<sup>®...")
 
No edit summary
Tag: Manual revert
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>railML<sup>®</sup></includeonly><noinclude>
<includeonly>{{#vardefine:®|{{#ifeq:{{{R|yes}}}|no||<sup><small</small></sup> }}}}{{#vardefine:version|{{#sub:{{{1|3}}}|0|1}}}}{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}{{#if:{{{1|}}}|{{#vardefine:display|{{wiki{{#var:version}}|Main Page|railML{{#var:®}} {{{1|}}}}}}}}}{{#ifeq:{{{link}}}|no|{{#vardefine:display|railML{{#var:®}} {{{1|}}}}}}}{{#var:display}}</includeonly><noinclude>
==Usage==
==Usage==
This template is intendet to allow for a standardized and adaptable display of the brand name railML<sup>®</sup>.
This template is intended to allow for a standardized and adaptable display of the brand name railML<sup>®</sup>. If it refers to {{rml|2}} it will produce a link.
===Arguments===
===Arguments===
This template has no 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===
===Dependencies===
This template does not use or serve any other templates.
This template does not use or serve any other templates.


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


delivers
delivers


railML<sup>®</sup>
{{rml}}
<pre>{{rml|2.4}}</pre>


delivers
{{rml|2.4}}
<pre>{{rml|3.1}}</pre>
delivers
{{rml|3.1}}
<pre>{{rml|2.5|link=no}}</pre>delivers:
{{rml|2.5|link=no}}
<pre>{{rml|R=no}}</pre>delivers:
{{rml|R=no}}
{{interwiki}}
[[Category:ContentTemplate]]</noinclude>
[[Category:ContentTemplate]]</noinclude>

Latest revision as of 15:24, 15 April 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.

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