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)
 
No edit summary
Line 1: Line 1:
* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
<includeonly>* {{Attr|{{{attributeName|FIXME}}} }} Possible values are:
:* {{Enum|straight}}
:* {{Enum|straight}}
:* {{Enum|left}}
:* {{Enum|left}}
Line 6: Line 6:
|notes_en =
|notes_en =
|notes_de =
|notes_de =
}} {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
}} {{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 }} 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 }} Possible values are:
:* {{Enum|straight}}
:* {{Enum|left}}
:* {{Enum|right}}
:* {{OtherEnum
|notes_en =
|notes_de =
}} {{AddAnn|seen from the movable points|vom Weichenanfang aus gesehen }}
|}
 
The template is employed by [[IXL_Data_Dictionary]].
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 11:02, 15 February 2016

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.