Vorlage:CoordinateComplex: Unterschied zwischen den Versionen

Aus Regiowiki
Zur Navigation springen Zur Suche springen
de>Herzi Pinki
(zur Sicherheit, falls dim fehlt)
(zurücksetzen funkt nicht)
 
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt)
Zeile 32: Zeile 32:
  }}
  }}
  |type_safe = {{#switch: {{{type}}}
  |type_safe = {{#switch: {{{type}}}
   |continent|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landscape|landmark|event|railwaystation|building={{{type}}}
   |country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{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>
   | <span class="error" />
  }}
  }}
  |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 58: Zeile 57:
   }}
   }}
  }}
  }}
  |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}<!-- leer oder keine Zahl -->
  |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}
   | {{#switch: {{{type}}}
   | {{#switch: {{{type}}}
  |continent=10000000
   |country|state|adm1st=500001<!--D-->
   |country|state=500001<!--D-->
   |adm2nd|city|mountain|isle= 10001<!--DM-->
   |adm1st|adm2nd|city|mountain|isle= 10001<!--DM-->
   |landmark= <!-- 250 ??? -->
  |event|forest|landscape=10000
  |airport=5000
  |railwaystation=1000
   |landmark|building= 250 <!-- ??? -->
   |#default= 500<!--DMS-->
   |#default= 500<!--DMS-->
   }}
   }}
   | {{{dim}}}
   | {{#ifeq: {{{type}}} | landmark
}}
  | {{#ifexpr: 250>{{{dim}}}
|dim= {{#ifeq: {{{dim|}}}x|x
    | {{{dim}}}
  | <!--void--><!--explicit default dims for types not supported by geohack-->
    | 250
    {{#switch: {{{type}}}
   }}
  |continent=10000000
   | {{{dim}}}
   |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

Aktuelle Version vom 29. Oktober 2018, 16:33 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.