Difference between revisions of "Template:Höhe"
imported>Bermicourt (m) |
imported>Bermicourt (m) |
||
| Line 341: | Line 341: | ||
{{#ifexpr: ({{{1|}}}>=0) | {{#ifexpr: ({{{1|}}}>=0) | ||
|{{formatnum:{{#expr:+1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Bitte kein m oder Meter für HÖHE-BEZUG{{!}}m]]|m}} | |{{formatnum:{{#expr:+1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Bitte kein m oder Meter für HÖHE-BEZUG{{!}}m]]|m}} | ||
| − | |{{formatnum:{{#expr:-1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Höhe über dem Meeresspiegel{{!}}m | + | |{{formatnum:{{#expr:-1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Höhe über dem Meeresspiegel{{!}}m below sea level]]|m below sea level}} |
}} | }} | ||
| − | | #default = {{formatnum:{{#expr:1*{{{1}}}}}}} {{{2|}}} <!-- | + | | #default = {{formatnum:{{#expr:1*{{{1}}}}}}} {{{2|}}} <!-- here generally no link --><span style="display:none">[[Template:Höhe/unknown reference]]</span> |
}} | }} | ||
| − | <!-- | + | <!-- no height reference given, implementation identical with M|METER above!--> |
|{{#ifexpr: ({{{1|}}}>=0) | |{{#ifexpr: ({{{1|}}}>=0) | ||
|{{formatnum:{{#expr:+1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Höhe über dem Meeresspiegel{{!}}m]]|m}} | |{{formatnum:{{#expr:+1*{{{1}}} }} }} {{#ifeq:{{{link|}}}|true|[[Höhe über dem Meeresspiegel{{!}}m]]|m}} | ||
| Line 354: | Line 354: | ||
}} | }} | ||
}} | }} | ||
| − | | <b class="hintergrundfarbe8"> | + | | <b class="hintergrundfarbe8">Height missing, see [[Template:Höhe|template documentation]]</b><!-- create hidden link --><span style="display:none">[[Template:Höhe/Erro in parameter list]]</span> |
}}</span></includeonly><noinclude>{{Documentation}}</noinclude> | }}</span></includeonly><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 18:42, 20 February 2016
Usage
This template mirrors the one on German Wikipedia called de:Vorlage:Höhe for interpreting height data based on a range of systems. It is currently being used on English Wikipedia to assist translation of hundreds of articles, e.g. on railway lines, mountains, rivers and other geographical features that record the heights based on standard German, Austrian or Swiss reference points.
The template contains world-wide datum information and could be used for any topographical purpose, to show heights above and below a particular datum. However, at present it will only translate height information based on German, Austrian or Swiss height reference systems into English, the rest should work but would appear in German.
Format
An example of the basic format is: {{Höhe|611|DE-NHN|link=true}}, which results in the statement "611 m above sea level (NHN)".
If the parameter |link= is set to "true", it produces a link to the definition of the vertical datum. In this case Normalhöhennull.
See also
| The above documentation is transcluded from Template:Höhe/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |