Template:InheritDelimitedDirection: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>* {{Attr|dir}}: This defines the validity of {{{selfLink|FIXME}}} along the {{IS:Doc|track}}. Possible values are:
<includeonly>* {{Attr|dir}}: {{#if:{{{depr|}}}|{{depr|{{{depr}}}}}&nbsp;}}This defines the validity of {{{selfLink|FIXME}}} along the {{IS:Doc|track}}. Possible values are:
:* {{Enum|up}}: This denotes the direction from the {{IS:Tag|trackBegin}} to the {{IS:Tag|trackEnd}} (increasing relative {{Attr|pos}}ition values).
:* {{Enum|up}}: This denotes the direction from the {{IS:Tag|trackBegin}} to the {{IS:Tag|trackEnd}} (increasing relative {{Attr|pos}}ition values).
:* {{Enum|down}}: This goes opposite to {{Enum|up}} (decreasing relative {{Attr|pos}}ition values).
:* {{Enum|down}}: This goes opposite to {{Enum|up}} (decreasing relative {{Attr|pos}}ition values).
Line 5: Line 5:
==Usage==
==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.
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===
===Arguments===
The template has one obligatory and two optional arguments:
The template has one obligatory and three optional arguments:
*obligatory:
*obligatory:
**selfLink: an attribute name
**selfLink: an attribute name
Line 12: Line 12:
**dir: an English comment
**dir: an English comment
**dir_de: a German comment
**dir_de: a German comment
**depr: Version number of deprication; calls [[Template:Depr]].
===Dependencies===
===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]].
This template depends on [[Template:Attr]], [[Template:Enum]], [[Template:IS:Doc]], [[Template:IS:Tag]], [[Template:Depr]] and [[Template:AddAnn]]. There are no other templates depending on it, but it is used in the context of [[Template:ElementDocu]].
==Examples==
==Examples==
<nowiki>{{inheritDelimitedDirection|selfLink={{IS:Tag|border}}}}</nowiki>
<nowiki>{{inheritDelimitedDirection|selfLink={{IS:Tag|border}}}}</nowiki>

Latest revision as of 11:40, 21 September 2020

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.

Arguments

The template has one obligatory and three optional arguments:

  • obligatory:
    • selfLink: an attribute name
  • optional:
    • dir: an English comment
    • dir_de: a German comment
    • depr: Version number of deprication; calls Template:Depr.

Dependencies

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

Examples

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

delivers

  • dir: This defines the validity of <border> along the track. Possible values are:
  • 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).
  • unknown: <border> is restricted to a certain direction, but this direction is not known.

{{inheritDelimitedDirection |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:
  • 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).
  • 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.