Template:InheritSwitchCrossing: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Updated using new template (Vorlage:InheritCourse))
(Documentation)
Line 1: Line 1:
{{InheritOcpRef
<includeonly>{{InheritOcpRef
|ocpStationRef = {{{ocpStationRef|}}}
|ocpStationRef = {{{ocpStationRef|}}}
|ocpStationRef_de = {{{ocpStationRef_de|}}}
|ocpStationRef_de = {{{ocpStationRef_de|}}}
Line 22: Line 22:
* {{Attr|model}} {{AddAnn|{{{model|}}}|{{{model_de|}}} }}
* {{Attr|model}} {{AddAnn|{{{model|}}}|{{{model_de|}}} }}


* {{Attr|length}} {{AddAnn|{{{length|}}}|{{{length_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
* {{Attr|length}} {{AddAnn|{{{length|}}}|{{{length_de|}}} }}</includeonly><noinclude>
==Usage==
This template lists seven attributes concerning switches and lists and obligatory comments for some of them. All attributes can be optionally commented in English and in German.
===Arguments===
The template allows for fourteen optional arguments:
*ocpStationRef: English comment on ocpStationRef
*ocpStationRef_de: German comment on ocpStationRef
*controllerRef: English comment on controllerRef
*controllerRef_de: German comment on controllerRef
*trackContinueCourse: English comment on trackContinueCourse
*trackContinueCourse_de: German comment on trackContinueCourse
*trackContinueRadius: English comment on trackContinueRadius
*trackContinueRadius_de: German comment on trackContinueRadius
*normalPosition: English comment on normalPosition
*normalPosition_de: German comment on normalPosition
*model: English comment on model
*model_de: German comment on model
*length: English comment on length
*length_de: German comment on length
===Dependencies===
The template depends on [[Template:InheritOcpRef]], [[Template:InheritCourse]], [[Template:Attr]] and [[Template:AddAnn]]. No other templates build on it.
==Examples==
<pre>{{InheritSwitchCrossing}}</pre>
 
delivers
 
{|border="1"
|{{InheritOcpRef
|ocpStationRef =
|ocpStationRef_de =
|controllerRef =
|controllerRef_de =
}}
 
{{InheritCourse
|attributeName = trackContinueCourse
|notes_en =
|notes_de =
}}
 
* {{Attr|trackContinueRadius}} {{AddAnn|| }}
 
{{InheritCourse
|attributeName = normalPosition
|notes_en =
|notes_de =
}}
 
* {{Attr|model}} {{AddAnn|| }}
 
* {{Attr|length}} {{AddAnn|| }}
|}
 
<pre>{{InheritSwitchCrossing
|ocpStationRef=English comment on ocpStationRef
|ocpStationRef_de=German comment on ocpStationRef
|controllerRef=English comment on controllerRef
|controllerRef_de=German comment on controllerRef
|trackContinueCourse=English comment on trackContinueCourse
|trackContinueCourse_de=German comment on trackContinueCourse
|trackContinueRadius=English comment on trackContinueRadius
|trackContinueRadius_de=German comment on trackContinueRadius
|normalPosition=English comment on normalPosition
|normalPosition_de=German comment on normalPosition
|model=English comment on model
|model_de=German comment on model
|length=English comment on length
|length_de=German comment on length
}}</pre>
 
delivers
 
{|border="1"
|{{InheritOcpRef
|ocpStationRef = English comment on ocpStationRef
|ocpStationRef_de = German comment on ocpStationRef
|controllerRef = English comment on controllerRef
|controllerRef_de = German comment on controllerRef
}}
 
{{InheritCourse
|attributeName = trackContinueCourse
|notes_en = English comment on trackContinueCourse
|notes_de = German comment on trackContinueCourse
}}
 
* {{Attr|trackContinueRadius}} {{AddAnn|English comment on trackContinueRadius|German comment on trackContinueRadius }}
 
{{InheritCourse
|attributeName = normalPosition
|notes_en = English comment on normalPosition
|notes_de = German comment on normalPosition
}}
 
* {{Attr|model}} {{AddAnn|English comment on model|German comment on model }}
 
* {{Attr|length}} {{AddAnn|English comment on length|German comment on length }}
|}
 
The template is employed by [[IS:Crossing]] and [[IS:Switch]].
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 19:50, 24 February 2016

Usage

This template lists seven attributes concerning switches and lists and obligatory comments for some of them. All attributes can be optionally commented in English and in German.

Arguments

The template allows for fourteen optional arguments:

  • ocpStationRef: English comment on ocpStationRef
  • ocpStationRef_de: German comment on ocpStationRef
  • controllerRef: English comment on controllerRef
  • controllerRef_de: German comment on controllerRef
  • trackContinueCourse: English comment on trackContinueCourse
  • trackContinueCourse_de: German comment on trackContinueCourse
  • trackContinueRadius: English comment on trackContinueRadius
  • trackContinueRadius_de: German comment on trackContinueRadius
  • normalPosition: English comment on normalPosition
  • normalPosition_de: German comment on normalPosition
  • model: English comment on model
  • model_de: German comment on model
  • length: English comment on length
  • length_de: German comment on length

Dependencies

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

Examples

{{InheritSwitchCrossing}}

delivers

  • ocpStationRef: This refers to the id attribute of the associated <ocp> element.
    (introduced with version 2.1)
  • controllerRef: This refers to the id attribute of the associated <controller> element.
    (introduced with version 2.1)
  • trackContinueCourse Possible values are:
  • straight straight leg (no curve) of the switch
  • left left curved leg of switch
  • right right curved leg of switch
  • 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.
  • trackContinueRadius
  • normalPosition Possible values are:
  • straight straight leg (no curve) of the switch
  • left left curved leg of switch
  • right right curved leg of switch
  • 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.
  • model
  • length
{{InheritSwitchCrossing
|ocpStationRef=English comment on ocpStationRef
|ocpStationRef_de=German comment on ocpStationRef
|controllerRef=English comment on controllerRef
|controllerRef_de=German comment on controllerRef
|trackContinueCourse=English comment on trackContinueCourse
|trackContinueCourse_de=German comment on trackContinueCourse
|trackContinueRadius=English comment on trackContinueRadius
|trackContinueRadius_de=German comment on trackContinueRadius
|normalPosition=English comment on normalPosition
|normalPosition_de=German comment on normalPosition
|model=English comment on model
|model_de=German comment on model
|length=English comment on length
|length_de=German comment on length
}}

delivers

  • ocpStationRef: This refers to the id attribute of the associated <ocp> element.
    (introduced with version 2.1)
    English comment on ocpStationRef

    German comment on ocpStationRef
  • controllerRef: This refers to the id attribute of the associated <controller> element.
    (introduced with version 2.1)
    English comment on controllerRef

    German comment on controllerRef
  • trackContinueCourse Possible values are:
  • straight straight leg (no curve) of the switch
  • left left curved leg of switch
  • right right curved leg of switch
  • 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 trackContinueCourse
    German comment on trackContinueCourse
  • trackContinueRadius
    English comment on trackContinueRadius
    German comment on trackContinueRadius
  • normalPosition Possible values are:
  • straight straight leg (no curve) of the switch
  • left left curved leg of switch
  • right right curved leg of switch
  • 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 normalPosition
    German comment on normalPosition
  • model
    English comment on model
    German comment on model
  • length
    English comment on length
    German comment on length

The template is employed by IS:Crossing and IS:Switch.