Vorlage:CoordinateComplex: Unterschied zwischen den Versionen
Vorlage:CoordinateComplex (Quelltext anzeigen)
Version vom 26. Februar 2018, 22:49 Uhr
, 26. Februar 2018zur Sicherheit, falls dim fehlt
AleXXw (Diskussion | Beiträge) (Änderung 20037 von AleXXw (Diskussion) rückgängig gemacht.) |
de>Herzi Pinki (zur Sicherheit, falls dim fehlt) |
||
Zeile 32: | Zeile 32: | ||
}} | }} | ||
|type_safe = {{#switch: {{{type}}} | |type_safe = {{#switch: {{{type}}} | ||
|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}} | |continent|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landscape|landmark|event|railwaystation|building={{{type}}} | ||
|example={{#if:{{NAMESPACE}} | |example={{#if:{{NAMESPACE}} | ||
| example <!--{{{type}}}--> | | example <!--{{{type}}}--> | ||
Zeile 39: | Zeile 39: | ||
|type = {{#if: {{{type|}}} | |type = {{#if: {{{type|}}} | ||
| {{{type}}} | | {{{type}}} | ||
| <span class="error" /> | | <span class="error"></span> | ||
}} | }} | ||
|pop= {{#if: {{{pop|}}} | |pop= {{#if: {{{pop|}}} | ||
Zeile 49: | Zeile 49: | ||
}} | }} | ||
}} | }} | ||
|lw= {{{lw|}}} | |||
|elevation = {{#if: {{{elevation|}}} | |elevation = {{#if: {{{elevation|}}} | ||
| {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2 | | {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2 | ||
Zeile 57: | Zeile 58: | ||
}} | }} | ||
}} | }} | ||
|dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }} | |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}<!-- leer oder keine Zahl --> | ||
| {{#switch: {{{type}}} | | {{#switch: {{{type}}} | ||
|country|state | |continent=10000000 | ||
|adm2nd|city|mountain|isle= 10001<!--DM--> | |country|state=500001<!--D--> | ||
|landmark= <!-- | |adm1st|adm2nd|city|mountain|isle= 10001<!--DM--> | ||
|event|forest|landscape=10000 | |||
|airport=5000 | |||
|railwaystation=1000 | |||
|landmark|building= 250 <!-- ??? --> | |||
|#default= 500<!--DMS--> | |#default= 500<!--DMS--> | ||
}} | }} | ||
| {{ | | {{{dim}}} | ||
}} | |||
|dim= {{#ifeq: {{{dim|}}}x|x | |||
| <!--void--><!--explicit default dims for types not supported by geohack--> | |||
{{#switch: {{{type}}} | |||
| | |continent=10000000 | ||
|event|landscape=10000 | |||
|airport=5000 | |||
|railwaystation=1000 | |||
|building=250 | |||
|#default= | |||
}} | }} | ||
| {{{dim|}}} | |||
}} | }} | ||
|region= {{{region|}}} | |region= {{{region|}}} | ||
|globe= {{#ifeq: {{{globe}}} | earth | |globe= {{#ifeq: {{{globe}}} | earth |