Template:InheritEpsg: Difference between revisions
[checked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
* {{Attr|{{{heightCodeAttribute|FIXME}}}}}: This is an URI pointing to the | <includeonly>* {{Attr|{{{codeAttribute|FIXME}}}}}: This is an URI pointing to the {{external|https://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 {{external|https://en.wikipedia.org/wiki/EPSG|EPSG-Code}} for the separate altitude reference system. {{AddAnn|{{{heightEpsgCode|}}}|{{{heightEpsgCode_de|}}} }}</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
This template supports | This template supports {{tag|IS|geoCoord}} with two commented attribute items, that can both be commented in English and German. | ||
===Arguments=== | ===Arguments=== | ||
The template has two obligatory and four optional arguments: | The template has two obligatory and four optional arguments: | ||
Line 15: | Line 16: | ||
**heightEpsgCode_de: a German comment on the altitude reference system | **heightEpsgCode_de: a German comment on the altitude reference system | ||
===Dependencies=== | ===Dependencies=== | ||
This template depends on [[Template:Attr]] and [[Template | This template depends on [[Template:Attr]] and [[Template:AddAnn]]. | ||
==Example== | ==Example== | ||
<nowiki>{{InheritEpsg | <nowiki>{{InheritEpsg | ||
Line 25: | Line 27: | ||
{|border="1" | {|border="1" | ||
| | | | ||
* {{Attr|epsgCode}}: This is an URI pointing to the | * {{Attr|epsgCode}}: This is an URI pointing to the {{external|https://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 | * {{Attr|heightEpsgCode}}: This is an URI pointing to the {{external|https://en.wikipedia.org/wiki/EPSG|EPSG-Code}} for the separate altitude reference system. {{AddAnn|| }} | ||
|} | |} | ||
Line 42: | Line 44: | ||
{|border="1" | {|border="1" | ||
| | | | ||
* {{Attr|epsgCode}}: This is an URI pointing to the | * {{Attr|epsgCode}}: This is an URI pointing to the {{external|https://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 | * {{Attr|heightEpsgCode}}: This is an URI pointing to the {{external|https://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: | The template is employed indirectly via [[Template:InheritGeoCoord]] e.g. in [[IS:geoCoord]] | ||
[[Category:AttributeTemplate]]</noinclude> | [[Category:AttributeTemplate]]</noinclude> |
Latest revision as of 17:24, 15 February 2021
Usage
This template supports <geoCoord> 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.
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