Template:Rml: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Undo revision 10321 by Ferri Leberl (talk)) |
No edit summary |
||
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <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> | ||
==Usage== | ==Usage== | ||
This template is | 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. | ||
===Arguments=== | ===Arguments=== | ||
*1 (optional): a version number | |||
*link (optional): if "no", no link will be produced; default: "yes" | |||
*tm: If exiting, no <sup><small>®</small></sup> will be shown. | |||
===Dependencies=== | ===Dependencies=== | ||
This template does not use or serve any other templates. | This template does not use or serve any other templates. | ||
==Example== | ==Example== | ||
< | <pre>{{rml}}</pre> | ||
delivers | delivers | ||
{{rml}} | {{rml}} | ||
<pre>{{rml|2.4}}</pre> | |||
delivers | |||
{{rml|2.4}} | |||
<pre>{{rml|3.1}}</pre> | |||
delivers | |||
{{rml|3.1}} | |||
<pre>{{rml|3.2|link=no}}</pre>delivers: | |||
{{rml|3.2|link=no}} | |||
<pre>{{rml|3.2|tm=no}}</pre>delivers: | |||
{{rml|3.2|tm=no}} | |||
{{interwiki}} | |||
[[Category:ContentTemplate]]</noinclude> | [[Category:ContentTemplate]]</noinclude> |
Revision as of 17:14, 20 May 2024
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"
- tm: If exiting, no ® will be shown.
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
{{rml|3.2|link=no}}
delivers:
railML® 3.2
{{rml|3.2|tm=no}}
delivers: