Template:InheritPosition: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Attr. absPosOffset entfernt: Veraltet vor v2.2)
(Outsourced @pos and @absPos to Template:InheritPositionWithoutOffset, which can be used on IS:mileageChange)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>* {{Attr|pos}}: This is the position on a [[IS:track|track]] defined as distance from its [[IS:trackBegin | start (trackBegin)]] regardless the "absolute mileage" in {{Attr|absPos}}. {{AddAnn|{{{pos|}}}|{{{pos_de|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.}}} }}
<includeonly>{{InheritPositionWithoutOffset|
 
pos{{#if:{{{pos|}}}||UNDEFINED}}={{{pos}}}|
* {{Attr|absPos}}: This is the position on a track as absolute mileage/chainage. {{AddAnn|{{{absPos|}}}|{{{absPos_de|Das ist die Position des Elements im Referenzsystem der Strecken-Kilometrierung.}}} }}</includeonly><noinclude>
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>
==Usage==
==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.
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.
Line 13: Line 16:
*absPosOffset_de: German comment on absPosOffset
*absPosOffset_de: German comment on absPosOffset
===Dependencies===
===Dependencies===
The template depends on [[Templat: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==
<pre>{{InheritPosition}}</pre>
<pre>{{InheritPosition}}</pre>
Line 19: Line 23:
delivers
delivers


{|boreder="1"
{{InheritPosition}}
|
* {{Attr|pos}}: This is the position on a [[IS:track|track]] defined as distance from its [[IS:trackBegin | start (trackBegin)]] regardless the "absolute mileage" in {{Attr|absPos}}. {{AddAnn||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. }}
 
* {{Attr|absPos}}: This is the position on a track as absolute mileage/chainage. {{AddAnn||Das ist die Position des Elements im Referenzsystem der Strecken-Kilometrierung. }}
 
* {{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|| }}
|}


<pre>{{InheritPosition
<pre>{{InheritPosition
Line 39: Line 36:
delivers
delivers


{|border="1"
{{InheritPosition
|{{InheritPosition
|pos=English comment on pos
|pos=English comment on pos
|pos_de=German comment on pos
|pos_de=German comment on pos
Line 48: Line 44:
|absPosOffset_de=German comment on absPosOffset
|absPosOffset_de=German comment on absPosOffset
}}
}}
|}


The template is employed e.g. by [[IS:balise]].
The template is employed e.g. by [[IS:balise]].


[[Category:AttributeTemplate]]</noinclude>
[[Category:AttributeTemplate]]</noinclude>

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.
🗒️ For an explanation of the differences between @pos and @absPos see <mileageChange>
  • absPos: This is the position on a track as absolute mileage/chainage.
    Das ist die Position des Elements im Referenzsystem der Strecken-Kilometrierung.
🗒️ For an explanation of the differences between @pos and @absPos see <mileageChange>
  • 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
🗒️ For an explanation of the differences between @pos and @absPos see <mileageChange>
  • absPos: This is the position on a track as absolute mileage/chainage.
    English comment on absPos
    German comment on absPos
🗒️ For an explanation of the differences between @pos and @absPos see <mileageChange>
  • 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.