Template:InheritPosition: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Hinweis) |
(Outsourced @pos and @absPos to Template:InheritPositionWithoutOffset, which can be used on IS:mileageChange) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{InheritPositionWithoutOffset| | ||
pos{{#if:{{{pos|}}}||UNDEFINED}}={{{pos}}}| | |||
pos_de{{#if:{{{pos_de|}}}||UNDEFINED}}={{{pos_de}}}| | |||
absPos{{#if:{{{absPos|}}}||UNDEFINED}}={{{absPos}}}| | |||
absPos_de{{#if:{{{absPos_de|}}}||UNDEFINED}}={{{absPos_de}}} }} | |||
* {{Attr|absPosOffset}} {{Depr|2.1}}: The semantics of this attribute aren't very clear. It seems to be redundant to the definitions with {{IS:Doc|mileageChange}}s in "overlapping regions". {{AddAnn|{{{absPosOffset|}}}|{{{absPosOffset_de|}}} }}</includeonly><noinclude> | * {{Attr|absPosOffset}} {{Depr|2.1}}: The semantics of this attribute aren't very clear. It seems to be redundant to the definitions with {{IS:Doc|mileageChange}}s in "overlapping regions". {{AddAnn|{{{absPosOffset|}}}|{{{absPosOffset_de|}}} }}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Line 14: | Line 16: | ||
*absPosOffset_de: German comment on absPosOffset | *absPosOffset_de: German comment on absPosOffset | ||
===Dependencies=== | ===Dependencies=== | ||
The template depends on [[Template:Attr]], [[Template:AddAnn]], [[Template:Depr]] and [[Template:IS:Doc]]. No other templates build on it. | The template depends on [[Template:InheritPositionWithoutOffset]], [[Template:Attr]], [[Template:AddAnn]], [[Template:Depr]] and [[Template:IS:Doc]]. No other templates build on it. | ||
==Examples== | ==Examples== |
Latest revision as of 00:01, 5 February 2019
Usage
This template lists the attributes pos, absPos and absPosOffset. All of them have obligatory comments and can besides that be commented both in English as in German.
Arguments
The template has six optional arguments:
- pos: English comment on pos
- pos_de: German comment on pos — with a default comment
- absPos: English comment on absPos
- absPos_de: German comment on absPos — with a default comment
- absPosOffset: English comment on absPosOffset
- absPosOffset_de: German comment on absPosOffset
Dependencies
The template depends on Template:InheritPositionWithoutOffset, Template:Attr, Template:AddAnn, Template:Depr and Template:IS:Doc. No other templates build on it.
Examples
{{InheritPosition}}
delivers
- pos: This is the position on a track defined as distance from its start (trackBegin) regardless the "absolute mileage" in @absPos.
Das ist die Position des Elements auf einem Track i.S. der realen Entfernung zum trackBegin. Sie ist damit unabhängig von der mit absPos modellierten Strecken-Kilometrierung.
|
- absPos: This is the position on a track as absolute mileage/chainage.
Das ist die Position des Elements im Referenzsystem der Strecken-Kilometrierung.
|
- absPosOffset (deprecated with version 2.1): The semantics of this attribute aren't very clear. It seems to be redundant to the definitions with mileageChanges in "overlapping regions".
{{InheritPosition |pos=English comment on pos |pos_de=German comment on pos |absPos=English comment on absPos |absPos_de=German comment on absPos |absPosOffset=English comment on absPosOffset |absPosOffset_de=German comment on absPosOffset }}
delivers
- pos: This is the position on a track defined as distance from its start (trackBegin) regardless the "absolute mileage" in @absPos.
English comment on pos
German comment on pos
|
- absPos: This is the position on a track as absolute mileage/chainage.
English comment on absPos
German comment on absPos
|
- absPosOffset (deprecated with version 2.1): The semantics of this attribute aren't very clear. It seems to be redundant to the definitions with mileageChanges in "overlapping regions".
English comment on absPosOffset
German comment on absPosOffset
The template is employed e.g. by IS:balise.