Template:InheritEpsg: Difference between revisions
[unchecked revision] | [checked revision] |
(Updated using new template (Vorlage:AddAnn)) |
No edit summary |
||
Line 1: | Line 1: | ||
* {{Attr|{{{codeAttribute|FIXME}}}}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] as reference system for the coordinates in {{Attr|coord}}. {{AddAnn|{{{epsgCode|}}}|{{{epsgCode_de|}}} }} | <includeonly>* {{Attr|{{{codeAttribute|FIXME}}}}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] as reference system for the coordinates in {{Attr|coord}}. {{AddAnn|{{{epsgCode|}}}|{{{epsgCode_de|}}} }} | ||
* {{Attr|{{{heightCodeAttribute|FIXME}}}}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] for the separate altitude reference system. {{AddAnn|{{{heightEpsgCode|}}}|{{{heightEpsgCode_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude> | * {{Attr|{{{heightCodeAttribute|FIXME}}}}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] for the separate altitude reference system. {{AddAnn|{{{heightEpsgCode|}}}|{{{heightEpsgCode_de|}}} }}</includeonly><noinclude> | ||
==Usage== | |||
This template supports [[Template:InheritGeoCoord]] with two commented attribute items, that can both be commented in English and German. | |||
===Arguments=== | |||
The template has two obligatory and four optional arguments: | |||
*obligatory | |||
**codeAttribute: an URI for the reference system of the coordinates | |||
**heightCodeAttribute: an URI for the altitude reference system of the coordinates | |||
*optional: | |||
**epsgCode: an English comment on the reference system | |||
**epsgCode_de: a German comment on the reference system | |||
**heightEpsgCode: an English comment on the altitude reference system | |||
**heightEpsgCode_de: a German comment on the altitude reference system | |||
===Dependencies=== | |||
This template depends on [[Template:Attr]] and [[Template|AddAnn]]. It is employed solely via [[Template:InheritGeoCoord]]. | |||
==Example== | |||
<nowiki>{{InheritEpsg | |||
|codeAttribute = epsgCode | |||
|heightCodeAttribute = heightEpsgCode}}</nowiki> | |||
delivers (in a box) | |||
{|border="1" | |||
| | |||
* {{Attr|epsgCode}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] as reference system for the coordinates in {{Attr|coord}}. {{AddAnn|| }} | |||
* {{Attr|heightEpsgCode}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] for the separate altitude reference system. {{AddAnn|| }} | |||
|} | |||
<nowiki>{{InheritEpsg | |||
|codeAttribute = epsgCode | |||
|heightCodeAttribute = heightEpsgCode | |||
|epsgCode=an English comment on the reference system | |||
|epsgCode_de=a German comment on the reference system | |||
|heightEpsgCode=an English comment on the altitude reference system | |||
|heightEpsgCode_de=a German comment on the altitude reference system}}</nowiki> | |||
delivers (in a box) | |||
{|border="1" | |||
| | |||
* {{Attr|epsgCode}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] as reference system for the coordinates in {{Attr|coord}}. {{AddAnn|an English comment on the reference system|a German comment on the reference system }} | |||
* {{Attr|heightEpsgCode}}: This is an URI pointing to the [http://en.wikipedia.org/wiki/EPSG EPSG-Code] for the separate altitude reference system. {{AddAnn|an English comment on the altitude reference system|a German comment on the altitude reference system }} | |||
|} | |||
The template is employed indirectly via [[Template:InheritGeoCoord]] e.g. in [[IS:geoCoord_brigde]] | |||
[[Category:AttributeTemplate]]</noinclude> |
Revision as of 12:03, 15 February 2016
Usage
This template supports Template:InheritGeoCoord with two commented attribute items, that can both be commented in English and German.
Arguments
The template has two obligatory and four optional arguments:
- obligatory
- codeAttribute: an URI for the reference system of the coordinates
- heightCodeAttribute: an URI for the altitude reference system of the coordinates
- optional:
- epsgCode: an English comment on the reference system
- epsgCode_de: a German comment on the reference system
- heightEpsgCode: an English comment on the altitude reference system
- heightEpsgCode_de: a German comment on the altitude reference system
Dependencies
This template depends on Template:Attr and AddAnn. It is employed solely via Template:InheritGeoCoord.
Example
{{InheritEpsg |codeAttribute = epsgCode |heightCodeAttribute = heightEpsgCode}}
delivers (in a box)
|
{{InheritEpsg |codeAttribute = epsgCode |heightCodeAttribute = heightEpsgCode |epsgCode=an English comment on the reference system |epsgCode_de=a German comment on the reference system |heightEpsgCode=an English comment on the altitude reference system |heightEpsgCode_de=a German comment on the altitude reference system}}
delivers (in a box)
|
The template is employed indirectly via Template:InheritGeoCoord e.g. in IS:geoCoord_brigde