Template:InheritPosition: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(Outsourced @pos and @absPos to Template:InheritPositionWithoutOffset, which can be used on IS:mileageChange)
 
(2 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.}}} }}<br>{{note|For an explanation of the differences between {{attr|pos}} and {{attr|abspos}} see </includeonly><tt><[[IS:mileageChange_|mileageChange]]></tt><includeonly>}}
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 23:01, 4 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.