Vorlage:CoordinateComplex: Unterschied zwischen den Versionen

Aus KKWiki
Zur Navigation springenZur Suche springen
K (26 Versionen)
 
(12 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude>{{Coordinate/Test/{{#if:{{{map|}}}
+
<onlyinclude>{{Coordinate{{#if:{{{map|}}}
   | MAP
+
   | Map
 
   | {{#switch: {{{NS|}}}
 
   | {{#switch: {{{NS|}}}
 
   ||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }}
 
   ||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }}
 
   | {{#switch: {{{EW|}}}
 
   | {{#switch: {{{EW|}}}
 
     ||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }}
 
     ||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }}
     | MAIN
+
     | Main
 
   }}
 
   }}
 
   }}
 
   }}
 
  }}
 
  }}
  |NS= {{Coordinate/Test/LatRange
+
  |NS= {{Coordinate/LatRange
 
   |1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}}
 
   |1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}}
 
   | {{{NS|}}}
 
   | {{{NS|}}}
   | {{Coordinate/Test/LatDMS
+
   | {{Coordinate/LatDMS
 
     |1= {{#titleparts:{{{NS}}}|1|1}}
 
     |1= {{#titleparts:{{{NS}}}|1|1}}
 
     |2= {{#titleparts:{{{NS}}}|1|2}}
 
     |2= {{#titleparts:{{{NS}}}|1|2}}
Zeile 20: Zeile 20:
 
   }}
 
   }}
 
  }}
 
  }}
  |EW= {{Coordinate/Test/LonRange
+
  |EW= {{Coordinate/LonRange
 
   |1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}}
 
   |1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}}
 
   | {{{EW|}}}
 
   | {{{EW|}}}
   | {{Coordinate/Test/LonDMS
+
   | {{Coordinate/LonDMS
 
     |1= {{#titleparts:{{{EW}}}|1|1}}
 
     |1= {{#titleparts:{{{EW}}}|1|1}}
 
     |2= {{#titleparts:{{{EW}}}|1|2}}
 
     |2= {{#titleparts:{{{EW}}}|1|2}}
Zeile 31: Zeile 31:
 
   }}
 
   }}
 
  }}
 
  }}
  |type_save = {{#switch: {{{type}}}
+
  |type_safe = {{#switch: {{{type}}}
 
   |country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
 
   |country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
 
   |example={{#if:{{NAMESPACE}}
 
   |example={{#if:{{NAMESPACE}}
Zeile 37: Zeile 37:
 
   }}
 
   }}
 
  }}
 
  }}
  |type = {{{type|}}}
+
  |type = {{#if: {{{type|}}}
 +
  | {{{type}}}
 +
  | <span class="error" />
 +
}}
 
  |pop= {{#if: {{{pop|}}}
 
  |pop= {{#if: {{{pop|}}}
 
   | {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}})
 
   | {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}})
Zeile 46: Zeile 49:
 
   }}
 
   }}
 
  }}
 
  }}
 +
|lw= {{{lw|}}}
 
  |elevation = {{#if: {{{elevation|}}}
 
  |elevation = {{#if: {{{elevation|}}}
 
   | {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2
 
   | {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2
 
     | {{{elevation}}}
 
     | {{{elevation}}}
<!--| <span class="error">zu genaue Höhenangabe</span> ???-->
+
    | <span class="error">keine Tausendertrennzeichen und höchstens 2 Nachkommastellen in der Höhenangabe erlaubt</span>
 
   }}
 
   }}
 
   | <span class="error">keine Zahl: {{{elevation}}}</span>
 
   | <span class="error">keine Zahl: {{{elevation}}}</span>
 
   }}
 
   }}
 
  }}
 
  }}
  |dim_save = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}
+
  |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}
 
   | {{#switch: {{{type}}}
 
   | {{#switch: {{{type}}}
 
   |country|state|adm1st=500001<!--D-->
 
   |country|state|adm1st=500001<!--D-->
Zeile 69: Zeile 73:
 
   }}
 
   }}
 
  }}
 
  }}
  |dim= {{{dim|}}}<!-- keine Parameterprüfung ???-->
+
  |dim= {{{dim|}}}
 
  |region= {{{region|}}}
 
  |region= {{{region|}}}
 
  |globe= {{#ifeq: {{{globe}}} | earth
 
  |globe= {{#ifeq: {{{globe}}} | earth
Zeile 76: Zeile 80:
 
  }}
 
  }}
 
  |text= {{{text|}}}
 
  |text= {{{text|}}}
  |article= {{#if: {{{article|}}}
+
  |article= {{#if: {{{article|}}}{{{text|}}}{{{map|}}}
  | {{{article}}}
+
  | {{{article|}}}
  | {{#if: {{{text|}}}{{{map|}}}
+
  | /
  |
 
  | /
 
  }}
 
 
  }}
 
  }}
 
  |name= {{#ifeq: {{{name}}} | coordinates
 
  |name= {{#ifeq: {{{name}}} | coordinates
Zeile 88: Zeile 89:
 
  }}
 
  }}
 
  |default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
 
  |default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
   | {{Coordinate/Test/Default|{{{region|}}} }}
+
   | {{CoordinateDefault|{{{region|}}} }}
 
  }}
 
  }}
 
  |tooltip= {{{tooltip|}}}
 
  |tooltip= {{{tooltip|}}}
Zeile 100: Zeile 101:
 
  |maptype    = {{{maptype|}}}
 
  |maptype    = {{{maptype|}}}
 
  |mapcaption = {{{mapcaption|auto}}}
 
  |mapcaption = {{{mapcaption|auto}}}
 +
|maplabel  = {{{maplabel|}}}
 
  |maplayer  = {{{maplayer|}}}
 
  |maplayer  = {{{maplayer|}}}
 
  |maptrenner = {{{maptrenner|}}}
 
  |maptrenner = {{{maptrenner|}}}
}}{{#if:{{{1|}}} |
 
{{Coordinate/Test/MSG|5|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}
 
 
}}</onlyinclude>
 
}}</onlyinclude>
  
 
{{Dokumentation}}
 
{{Dokumentation}}

Aktuelle Version vom 23. September 2014, 22:20 Uhr

Koordinaten fehlen! Hilf mit.


<span style="visibility:hidden" id="Dokumentation[Bearbeiten]"><span id="Anker:Dokumentation[Bearbeiten]">Dokumentation[Bearbeiten]