Template:InheritGauge: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>* {{Attr|value}} {{AddAnn|{{{value|}}}|{{{value_de|}}} }}</includeonly><noinclude>
<includeonly>
* {{Attr|value}}: Track width in mm {{AddAnn|{{{value|}}}|{{{value_de|}}} }}</includeonly><noinclude>
==Usage==
==Usage==
This template displays the specific attribute ''value'' to gauges and allows for an English and a German comment.
This template displays the specific attribute ''value'' to gauges and allows for an English and a German comment.
Line 8: Line 9:
===Dependencies===
===Dependencies===
This template depends on [[Template:Attr]] and [[Template:AddAnn]]. No other templates build on it.
This template depends on [[Template:Attr]] and [[Template:AddAnn]]. No other templates build on it.
[[Category:AttributeTemplate]]</noinclude>
==Example==
==Example==
<nowiki>{{inheritGauge}}</nowiki>
<nowiki>{{inheritGauge}}</nowiki>
Line 30: Line 30:
* {{Attr|value}} {{AddAnn|An English comment on value|A German comment on value }}
* {{Attr|value}} {{AddAnn|An English comment on value|A German comment on value }}
|}
|}
The template is employed by [[IS:gauge]] and [[IS:gaugeChange]]
[[Category:AttributeTemplate]]</noinclude>

Latest revision as of 12:39, 15 February 2024

Usage

This template displays the specific attribute value to gauges and allows for an English and a German comment.

Arguments

The template has two optional arguments:

  • value: an English comment on value
  • value_de: a German comment on value

Dependencies

This template depends on Template:Attr and Template:AddAnn. No other templates build on it.

Example

{{inheritGauge}}

delivers

  • value

{{inheritGauge |value=An English comment on value |value_de=A German comment on value }}

delivers

  • value
    An English comment on value
    A German comment on value

The template is employed by IS:gauge and IS:gaugeChange