Vorlage:CoordinateComplex: Unterschied zwischen den Versionen

Aus Regiowiki
Zur Navigation springen Zur Suche springen
(Ä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|adm1st=500001<!--D-->
  |continent=10000000
   |adm2nd|city|mountain|isle= 10001<!--DM-->
   |country|state=500001<!--D-->
   |landmark= <!-- 250 ??? -->
   |adm1st|adm2nd|city|mountain|isle= 10001<!--DM-->
  |event|forest|landscape=10000
  |airport=5000
  |railwaystation=1000
   |landmark|building= 250 <!-- ??? -->
   |#default= 500<!--DMS-->
   |#default= 500<!--DMS-->
   }}
   }}
   | {{#ifeq: {{{type}}} | landmark
   | {{{dim}}}
  | {{#ifexpr: 250>{{{dim}}}
}}
     | {{{dim}}}
|dim= {{#ifeq: {{{dim|}}}x|x
    | 250
  | <!--void--><!--explicit default dims for types not supported by geohack-->
   }}
     {{#switch: {{{type}}}
   | {{{dim}}}
  |continent=10000000
  |event|landscape=10000
  |airport=5000
  |railwaystation=1000
   |building=250
   |#default=
   }}
   }}
  | {{{dim|}}}
  }}
  }}
|dim= {{{dim|}}}
  |region= {{{region|}}}
  |region= {{{region|}}}
  |globe= {{#ifeq: {{{globe}}} | earth
  |globe= {{#ifeq: {{{globe}}} | earth

Version vom 26. Februar 2018, 22:49 Uhr

Koordinaten fehlen! Hilf mit.

Documentation

w:Vorlage:CoordinateComplex/Doku

Werkzeuge

Bei technischen Fragen zu dieser Vorlage kannst du dich auch an die Vorlagenwerkstatt wenden. Inhaltliche Fragen und Vorschläge gehören zunächst auf die Diskussionsseite. Sie können ggf. auch an eine passende Redaktion, Portal usw. gerichtet werden.