Template:InheritCourse: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(adding notes about values of Switch course)
Line 1: Line 1:
<includeonly>* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
<includeonly>* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
{{missing information|user=[[User:Ferri Leberl|Ferri Leberl]] ([[User talk:Ferri Leberl|talk]]) 16:29, 25 April 2018 (CEST)|topic=the semantics of the enumeration items}}
:* {{Enum|straight}} straight leg (no curve) of the switch
:* {{Enum|straight}}
:* {{Enum|left}} left curved leg of switch
:* {{Enum|left}}
:* {{Enum|right}} right curved leg of switch
:* {{Enum|right}}
:* {{OtherEnum
:* {{OtherEnum
|notes_en =
|notes_en =

Revision as of 13:44, 30 May 2018

Usage

This template depicts a variable attribute name refering to a course and its list of possible values straight, left, right and other:anything. It allows for English and German comments on other:anything.

Attributes

The template has one obligatory and two optional arguments:

  • obligatory:
    • attributeName: The name of the described attribute
  • optional:
    • notes_en: an English comment
    • notes_de: a German comment

Dependencies

The template depends on Template:Attr, Template:Enum, Template:OtherEnum and Template:AddAnn. Template:InheritSwitchCrossing builds on it.

Examples

{{InheritCourse|attributeName=course}}

delivers (in a box)

  • course Possible values are:
  • straight
  • left
  • right
  • 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.

{{InheritCourse |attributeName = course |notes_en = seen from the movable points |notes_de = vom Weichenanfang aus gesehen }}

delivers (in a box)

  • course Possible values are:
  • straight
  • left
  • right
  • 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.
    seen from the movable points
    vom Weichenanfang aus gesehen

The template is employed by IXL_Data_Dictionary.