FANDOM


(AZ: Die Seite wurde neu angelegt: <onlyinclude>{{Coordinate/Test/{{#switch: {{{NS|}}} ||/|//|///|///N|///S=NO | {{#switch: {{{EW|}}} …)
 
K (26 Versionen importiert: Export aus der Wikipedia)
 
(25 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude>{{Coordinate/Test/{{#switch: {{{NS|}}}
+
<onlyinclude>{{Coordinate{{#if:{{{map|}}}
||/|//|///|///N|///S=NO
+
| Map
| {{#switch: {{{EW|}}}
+
| {{#switch: {{{NS|}}}
||/|//|///|///E|///W|///O=NO
+
||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }}
| MAIN
+
| {{#switch: {{{EW|}}}
  +
||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }}
  +
| Main
  +
}}
 
}}
 
}}
 
}}
 
}}
|NS= {{Coordinate/Test/LatRange
+
|NS= {{Coordinate/LatRange
| {{#ifeq: {{#titleparts:{{{NS|}}}|1|-1}} | {{{NS|}}}
+
|1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}}
 
| {{{NS|}}}
 
| {{{NS|}}}
| {{Coordinate/Test/LatDMS
+
| {{Coordinate/LatDMS
| {{#titleparts:{{{NS|}}}|1|1}}
+
|1= {{#titleparts:{{{NS}}}|1|1}}
| {{#titleparts:{{{NS|}}}|1|2}}
+
|2= {{#titleparts:{{{NS}}}|1|2}}
| {{#titleparts:{{{NS|}}}|1|3}}
+
|3= {{#titleparts:{{{NS}}}|1|3}}
| {{#titleparts:{{{NS|}}}|1|4}}
+
|4= {{#titleparts:{{{NS}}}|1|4}}
 
}}
 
}}
 
}}
 
}}
 
}}
 
}}
|EW= {{Coordinate/Test/LonRange
+
|EW= {{Coordinate/LonRange
| {{#ifeq: {{#titleparts:{{{EW|}}}|1|-1}} | {{{EW|}}}
+
|1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}}
 
| {{{EW|}}}
 
| {{{EW|}}}
| {{Coordinate/Test/LonDMS
+
| {{Coordinate/LonDMS
| {{#titleparts:{{{EW|}}}|1|1}}
+
|1= {{#titleparts:{{{EW}}}|1|1}}
| {{#titleparts:{{{EW|}}}|1|2}}
+
|2= {{#titleparts:{{{EW}}}|1|2}}
| {{#titleparts:{{{EW|}}}|1|3}}
+
|3= {{#titleparts:{{{EW}}}|1|3}}
| {{#titleparts:{{{EW|}}}|1|4}}
+
|4= {{#titleparts:{{{EW}}}|1|4}}
 
}}
 
}}
 
}}
 
}}
 
}}
 
}}
<!-- Wertebereichstest type, pop und elevation auch in Vorlage:Positionskarte~ -->
+
|type_safe = {{#switch: {{{type}}}
|type_save = {{#switch: {{{type|landmark}}}
+
|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type|landmark}}}
 
 
|example={{#if:{{NAMESPACE}}
 
|example={{#if:{{NAMESPACE}}
 
| example <!--{{{type}}}-->
 
| example <!--{{{type}}}-->
 
}}
 
}}
 
}}
 
}}
|type = {{{type|}}}
+
|type = {{#if: {{{type|}}}
|pop_save= {{#if:{{IstZahl|0{{{pop|}}}|N}} |{{{pop}}} }}
+
| {{{type}}}
|pop = {{{pop|}}}
+
| <span class="error" />
|elevation_save= {{#if:{{IstZahl|0{{{elevation|}}}|R|2}} |{{{elevation}}} }}
+
}}
|elevation = {{{elevation|}}}
+
|pop= {{#if: {{{pop|}}}
|dim_save = {{#if:{{{dim|}}}
+
| {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}})
| {{#ifeq: {{{type|landmark}}} | landmark
+
| {{{pop}}}
| {{min |250 |{{{dim}}} }}
+
| <span class="error">keine ganze Zahl bei Bevölkerung</span>
| {{{dim}}}
+
}}
  +
| <span class="error">keine Zahl: {{{pop}}}</span>
 
}}
 
}}
| {{#switch: {{{type|landmark}}}
+
}}
  +
|elevation = {{#if: {{{elevation|}}}
  +
| {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2
  +
| {{{elevation}}}
  +
| <span class="error">keine Tausendertrennzeichen und höchstens 2 Nachkommastellen in der Höhenangabe erlaubt</span>
  +
}}
  +
| <span class="error">keine Zahl: {{{elevation}}}</span>
  +
}}
  +
}}
  +
|dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }}
  +
| {{#switch: {{{type}}}
 
|country|state|adm1st=500001<!--D-->
 
|country|state|adm1st=500001<!--D-->
 
|adm2nd|city|mountain|isle= 10001<!--DM-->
 
|adm2nd|city|mountain|isle= 10001<!--DM-->
 
|landmark= <!-- 250 ??? -->
 
|landmark= <!-- 250 ??? -->
 
|#default= 500<!--DMS-->
 
|#default= 500<!--DMS-->
  +
}}
  +
| {{#ifeq: {{{type}}} | landmark
  +
| {{#ifexpr: 250>{{{dim}}}
  +
| {{{dim}}}
  +
| 250
  +
}}
  +
| {{{dim}}}
 
}}
 
}}
 
}}
 
}}
 
|dim= {{{dim|}}}
 
|dim= {{{dim|}}}
 
|region= {{{region|}}}
 
|region= {{{region|}}}
  +
|globe= {{#ifeq: {{{globe}}} | earth
  +
|
  +
| {{{globe|}}}
  +
}}
 
|text= {{{text|}}}
 
|text= {{{text|}}}
|article= {{#if: {{{article|}}}
+
|article= {{#if: {{{article|}}}{{{text|}}}{{{map|}}}
 
| {{{article|}}}
 
| {{{article|}}}
| {{#if: {{{text|}}}{{{map|}}}
+
| /
|
 
| <!-- / Better: --> DMS
 
}}
 
 
}}
 
}}
|name= {{#ifeq: {{{name|}}} | coordinates
+
|name= {{#ifeq: {{{name}}} | coordinates
 
|
 
|
 
|{{{name|}}}
 
|{{{name|}}}
 
}}
 
}}
|sortkey= {{#if:{{{text|}}} | {{{sortkey|}}} }}
+
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
|globe= {{{globe|}}}
+
| {{CoordinateDefault|{{{region|}}} }}
}}{{#if:{{{1|}}} |
 
{{CoordinateMSG|5|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}
 
}}{{#if:{{{map|}}} |
 
{{Coordinates/Test/Map
 
<!--Coordinates Koordinaten -->
 
|lat = {{{NS|}}}
 
|long = {{{EW|}}}
 
<!-- Wertebereichstest type, pop, elevation in Vorlage:Positionskarte~ für alle Positionskarten! -->
 
|type = {{{type|}}}
 
|pop = {{{pop|}}}
 
|elevation = {{{elevation|}}}
 
|dim = {{{dim|}}}
 
|region = {{{region|}}}
 
|globe = {{{globe|}}}
 
|name = {{#ifeq: {{{name|}}} | coordinates
 
|
 
| {{{name|}}}
 
}}
 
|label = {{#if:{{{name|}}}
 
| {{#if:{{{text|}}}
 
| {{#ifexist: {{{name}}}
 
|[[{{{name}}}]]
 
|{{{name}}}
 
}}
 
|{{{name}}}
 
}}
 
|{{PAGENAME}}
 
}}
 
|maplevel = {{{maplevel|}}}
 
|float = {{{map}}}
 
|width = {{{mapsize|}}}
 
|maptype = {{{maptype|}}}
 
 
}}
 
}}
  +
|tooltip= {{{tooltip|}}}
  +
|ttf = {{{tooltipformat|DMS}}}
  +
|sortkey= {{{sortkey|}}}
  +
<!-- Map-Parameter -->
  +
|mapname = {{{mapname|}}}
  +
|maplevel = {{{maplevel|}}}
  +
|mapfloat = {{{map|}}}
  +
|mapsize = {{{mapsize|}}}
  +
|maptype = {{{maptype|}}}
  +
|mapcaption = {{{mapcaption|auto}}}
  +
|maplabel = {{{maplabel|}}}
  +
|maplayer = {{{maplayer|}}}
  +
|maptrenner = {{{maptrenner|}}}
 
}}</onlyinclude>
 
}}</onlyinclude>
   

Aktuelle Version vom 22. Dezember 2013, 22:43 Uhr

Koordinaten fehlen! Hilf mit.


Dokumentation[Bearbeiten]


Nutzung von Community-Inhalten gemäß CC-BY-SA , sofern nicht anders angegeben.