Template:InheritDelimitedDirection

From railML 2 Wiki
Revision as of 12:44, 11 January 2019 by RailML Coord Documentation (talk | contribs) (new template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template depicts an attribute name refering to directions and a list of possible values (directions resp unknown). With respect for the value unknown it allows for English and German comments.

Attributes

The template has one obligatory and two optional arguments:

  • obligatory:
    • selfLink: an attribute name
  • optional:
    • dir: an English comment
    • dir_de: a German comment

Dependencies

This template depends on Template:Attr, [[Template:Enum, Template:IS:Doc, Template:IS:Tag and [[Template:AddAnn}}. There are no other templates depending on it, but it is used in the context of Template:ElementDocu.

Examples

{{inheritDirection|selfLink={{IS:Tag|border}}}}

delivers

  • dir: This defines the validity of <border> along the track. Possible values are:
  • none: <border> has no direction restriction.
  • up: This denotes the direction from the <trackBegin> to the <trackEnd> (increasing relative position values).
  • down: This goes opposite to up (decreasing relative position values).
  • both: <border> is valid in both directions.
  • unknown: <border> is restricted to a certain direction, but this direction is not known.

{{inheritDirection |selfLink={{IS:Tag|border}} |dir=In case the direction is unknown. |dir_de=Falls die Richtung nicht bekannt ist. }}

delivers

  • dir: This defines the validity of <border> along the track. Possible values are:
  • none: <border> has no direction restriction.
  • up: This denotes the direction from the <trackBegin> to the <trackEnd> (increasing relative position values).
  • down: This goes opposite to up (decreasing relative position values).
  • both: <border> is valid in both directions.
  • unknown: <border> is restricted to a certain direction, but this direction is not known.
    In case the direction is unknown.
    Falls die Richtung nicht bekannt ist.

The template is employed e.g. by IS:border.