Template:InheritGauge: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Updated using new template (Vorlage:AddAnn))
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* {{Attr|value}} {{AddAnn|{{{value|}}}|{{{value_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
<includeonly>
* {{Attr|value}}: Track width in mm {{AddAnn|{{{value|}}}|{{{value_de|}}} }}</includeonly><noinclude>
==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==
<nowiki>{{inheritGauge}}</nowiki>
 
delivers
 
{|border="1"
|
* {{Attr|value}} {{AddAnn|| }}
|}
 
<nowiki>{{inheritGauge
|value=An English comment on value
|value_de=A German comment on value
}}</nowiki>
 
delivers
 
{|border="1"
|
* {{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