Template:InheritPowerTransmission: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Added PowerTransmission "type" values. Deleted missing info block)
(Added "unclear semantics" statement for the "style" attribute. Deleted missing info block)
 
Line 8: Line 8:
}} {{AddAnn|{{{type|}}}|{{{type_de|}}} }}
}} {{AddAnn|{{{type|}}}|{{{type_de|}}} }}


* {{Attr|style}} {{AddAnn|{{{style|}}}|{{{style_de|}}} }}
* {{Attr|style}} {{AddAnn|{{{style|}}}|{{{style_de|}}} }} the semantics is unclear for now. This attribute should not be used if possible.
{{missing information|topic=the semantics of {{Attr|style}}|user=[[User:Ferri Leberl|Ferri Leberl]] ([[User talk:Ferri Leberl|talk]]) 16:34, 16 January 2017 (CET)}}</includeonly><noinclude>
</includeonly><noinclude>
==Usage==
==Usage==
This template displays the attributes ''type'' and ''style''. For ''type'' it lists the possible values ''adhesion'', gearrack'', ''cable'' and ''other:anything'' (see [[CO:usingAny#New enumeration value]]). Both attributes can be commented optionally as weel in English as in German.
This template displays the attributes ''type'' and ''style''. For ''type'' it lists the possible values ''adhesion'', gearrack'', ''cable'' and ''other:anything'' (see [[CO:usingAny#New enumeration value]]). Both attributes can be commented optionally as weel in English as in German.

Latest revision as of 12:59, 9 November 2022

Usage

This template displays the attributes type and style. For type it lists the possible values adhesion, gearrack, cable and other:anything (see CO:usingAny#New enumeration value). Both attributes can be commented optionally as weel in English as in German.

Arguments

The templlate allows for four optional arguments:

  • type: English comment on type
  • type_de: German comment on type
  • style: English comment on style
  • style_de: German comment on style

Dependencies

The template depends on Template:Attr, Template:Enum, Template:OtherEnum and Template:AddAnn. No other templates build on it.

Examples

{{InheritPowerTransmission}}

delivers

  • type Possible values are:
  • adhesion
  • gearrack
  • cable
  • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.
  • style
{{InheritPowerTransmission
|type=English comment on type
|type_de=German comment on type
|style=English comment on style
|style_de=German comment on style
}}

delivers

  • type Possible values are:
  • adhesion
  • gearrack
  • cable
  • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.
    English comment on type
    German comment on type
  • style
    English comment on style
    German comment on style

The template is employed by IS:powerTransmission and IS:powerTransmissionChange.