Template:InheritPosition: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
(clarifying definition of pos and absPos) |
(Documentation) |
||
Line 1: | Line 1: | ||
* {{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>* {{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.}}} }} | ||
* {{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.}}} }} | * {{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.}}} }} | ||
* {{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|}}} }}<noinclude>[[Category:AttributeTemplate]]</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== | |||
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 [[Templat:Attr]], [[Template:AddAnn]], [[Template:Depr]] and [[Template:IS:Doc]]. No other templates build on it. | |||
==Examples== | |||
<pre>{{InheritPosition}}</pre> | |||
delivers | |||
{|boreder="1" | |||
| | |||
* {{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 | |||
|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 | |||
}}</pre> | |||
delivers | |||
{|border="1" | |||
|{{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 | |||
}} | |||
|} | |||
The template is employed e.g. by [[IS:balise]]. | |||
[[Category:AttributeTemplate]]</noinclude> |
Revision as of 17:25, 22 February 2016
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 Templat:Attr, Template:AddAnn, Template:Depr and Template:IS:Doc. No other templates build on it.
Examples
{{InheritPosition}}
delivers
|
{{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
|
The template is employed e.g. by IS:balise.