Template:InheritCourse: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Created for use in several IS element documentation sites)
 
(added definition to trackContinueCourse because was missing (2))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
<includeonly>* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
:* {{Enum|straight}} straight leg (no curve) of the switch
:* {{Enum|left}} left curved leg of switch
:* {{Enum|right}} right curved leg of switch
:* {{OtherEnum
|notes_en =
|notes_de =
}} {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}</includeonly><noinclude>
==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==
<nowiki>{{InheritCourse|attributeName=course}}</nowiki>
 
delivers (in a box)
{|border="1"
|
* {{Attr|course }} track whose radius = ∞ or radius > radius of diverting track. Possible values are:
:* {{Enum|straight}}
:* {{Enum|left}}
:* {{Enum|right}}
:* {{OtherEnum
|notes_en =
|notes_de =
}} {{AddAnn|| }}
|}
 
<nowiki>{{InheritCourse
|attributeName = course
|notes_en = seen from the movable points
|notes_de = vom Weichenanfang aus gesehen
}}</nowiki>
 
delivers (in a box)
{|border="1"
|
* {{Attr|course }} track whose radius = ∞ or radius > radius of diverting track. Possible values are:
:* {{Enum|straight}}
:* {{Enum|straight}}
:* {{Enum|left}}
:* {{Enum|left}}
Line 6: Line 50:
|notes_en =
|notes_en =
|notes_de =
|notes_de =
}} {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
}} {{AddAnn|seen from the movable points|vom Weichenanfang aus gesehen }}
|}
 
The template is employed by [[IXL_Data_Dictionary]].
 
[[Category:AttributeTemplate]]</noinclude>

Latest revision as of 16:22, 25 September 2023

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 track whose radius = ∞ or radius > radius of diverting track. 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 track whose radius = ∞ or radius > radius of diverting track. 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.