Template:InheritDirection: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
(Updated using new template (Vorlage:AddAnn)) |
(+depr) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* {{Attr|dir}}: This defines the validity of {{{selfLink|FIXME}}} along the {{IS:Doc|track}}. Possible values are: | <includeonly>* {{Attr|dir}}: {{#if:{{{depr|}}}|{{depr|{{{depr}}}}} }}This defines the validity of {{{selfLink|FIXME}}} along the {{IS:Doc|track}}. Possible values are: | ||
:* {{Enum|none}} {{{selfLink|FIXME}}} has no direction restriction. | :* {{Enum|none}}: {{{selfLink|FIXME}}} has no direction restriction. | ||
:* {{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|both}}: {{{selfLink|FIXME}}} is valid in both directions. | |||
:* {{Enum|unknown}}: {{{selfLink|FIXME}}} is restricted to a certain direction, but this direction is not known.{{AddAnn|{{{dir|}}}|{{{dir_de|}}} }}</includeonly><noinclude> | |||
==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 | |||
**depr: Version number of deprication; calls [[Template:Depr]]. | |||
===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== | |||
<nowiki>{{inheritDirection|selfLink={{IS:Tag|balise}}}}</nowiki> | |||
delivers (in a box) | |||
{|border="1" | |||
| | |||
* {{Attr|dir}}: This defines the validity of {{IS:Tag|balise}} along the {{IS:Doc|track}}. Possible values are: | |||
:* {{Enum|none}} {{IS:Tag|balise}} has no direction restriction. | |||
:* {{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). | ||
:* {{Enum|both}} {{ | :* {{Enum|both}} {{IS:Tag|balise}} is valid in both directions. | ||
:* {{Enum|unknown}} {{ | :* {{Enum|unknown}} {{IS:Tag|balise}} is restricted to a certain direction, but this direction is not known.{{AddAnn|| }} | ||
|} | |||
<nowiki>{{inheritDirection | |||
|selfLink={{IS:Tag|balise}} | |||
|dir=In case the direction is unknown. | |||
|dir_de=Falls die Richtung nicht bekannt ist. | |||
}}</nowiki> | |||
delivers (in a box) | |||
{|border="1" | |||
| | |||
* {{Attr|dir}}: This defines the validity of {{IS:Tag|balise}} along the {{IS:Doc|track}}. Possible values are: | |||
:* {{Enum|none}} {{IS:Tag|balise}} has no direction restriction. | |||
:* {{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|both}} {{IS:Tag|balise}} is valid in both directions. | |||
:* {{Enum|unknown}} {{IS:Tag|balise}} is restricted to a certain direction, but this direction is not known.{{AddAnn|In case the direction is unknown.|Falls die Richtung nicht bekannt ist. }} | |||
|} | |||
The template is employed e.g. by [[IS:balise]]. | |||
[[Category:AttributeTemplate]]</noinclude> |
Latest revision as of 12:02, 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.
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
- depr: Version number of deprication; calls Template:Depr.
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|balise}}}}
delivers (in a box)
|
{{inheritDirection |selfLink={{IS:Tag|balise}} |dir=In case the direction is unknown. |dir_de=Falls die Richtung nicht bekannt ist. }}
delivers (in a box)
|
The template is employed e.g. by IS:balise.