FANDOM


(fixes, MAP mit selben Parametern)
K (26 Versionen importiert: Export aus der Wikipedia)
 
(19 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude>{{Coordinate/Test/{{#switch: {{{NS|}}}
+
<onlyinclude>{{Coordinate{{#if:{{{map|}}}
||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }}
+
| Map
| {{#switch: {{{EW|}}}
+
| {{#switch: {{{NS|}}}
||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }}
+
||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }}
| {{#if:{{{map|}}}
+
| {{#switch: {{{EW|}}}
| MAP
+
||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }}
| MAIN
+
| Main
 
}}
 
}}
 
}}
 
}}
 
}}
 
}}
|NS= {{Coordinate/Test/LatRange
+
|NS= {{Coordinate/LatRange
|1= {{#ifeq: {{#titleparts:{{{NS|}}}|1|-1}} | {{{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}}
|3= {{#titleparts:{{{NS|}}}|1|3}}
+
|3= {{#titleparts:{{{NS}}}|1|3}}
|4= {{#titleparts:{{{NS|}}}|1|4}}
+
|4= {{#titleparts:{{{NS}}}|1|4}}
 
}}
 
}}
 
}}
 
}}
 
}}
 
}}
|EW= {{Coordinate/Test/LonRange
+
|EW= {{Coordinate/LonRange
|1= {{#ifeq: {{#titleparts:{{{EW|}}}|1|-1}} | {{{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}}
|3= {{#titleparts:{{{EW|}}}|1|3}}
+
|3= {{#titleparts:{{{EW}}}|1|3}}
|4= {{#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}}}
 
 
|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|}}}
|pop_save= {{#if: {{IstZahl|{{{pop|}}}|N}} |{{{pop}}} }}
+
| {{{type}}}
|pop = {{{pop|}}}
+
| <span class="error" />
|elevation_save= {{#if: {{IstZahl|{{{elevation|}}}|R|2}} |{{{elevation}}} }}
+
}}
|elevation = {{{elevation|}}}
+
|pop= {{#if: {{{pop|}}}
|dim_save = {{#if: {{{dim|}}}
+
| {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}})
| {{#ifeq: {{{type}}} | landmark
+
| {{{pop}}}
| {{min |250 |{{{dim}}} }}
+
| <span class="error">keine ganze Zahl bei Bevölkerung</span>
| {{{dim}}}
+
}}
  +
| <span class="error">keine Zahl: {{{pop}}}</span>
 
}}
 
}}
  +
}}
  +
|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}}}
 
| {{#switch: {{{type}}}
 
|country|state|adm1st=500001<!--D-->
 
|country|state|adm1st=500001<!--D-->
Zeile 52: Zeile 62:
 
|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= {{{globe|}}}
+
|globe= {{#ifeq: {{{globe}}} | earth
  +
|
  +
| {{{globe|}}}
  +
}}
 
|text= {{{text|}}}
 
|text= {{{text|}}}
|article= {{#if: {{{article|}}}
+
|article= {{#if: {{{article|}}}{{{text|}}}{{{map|}}}
| {{{article}}}
+
| {{{article|}}}
| {{#if: {{{text|}}}{{{map|}}}
+
| /
|
 
| / <!-- Besser: DMS ? -->
 
}}
 
 
}}
 
}}
 
|name= {{#ifeq: {{{name}}} | coordinates
 
|name= {{#ifeq: {{{name}}} | coordinates
Zeile 67: Zeile 84:
 
}}
 
}}
 
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
 
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
| {{Coordinate/Test/Default|{{{region|}}} }}
+
| {{CoordinateDefault|{{{region|}}} }}
 
}}
 
}}
 
|tooltip= {{{tooltip|}}}
 
|tooltip= {{{tooltip|}}}
  +
|ttf = {{{tooltipformat|DMS}}}
 
|sortkey= {{{sortkey|}}}
 
|sortkey= {{{sortkey|}}}
 
<!-- Map-Parameter -->
 
<!-- Map-Parameter -->
|label = {{#if:{{{name|}}}
+
|mapname = {{{mapname|}}}
| {{#if:{{{text|}}}
 
| {{#ifexist: {{{name}}}
 
|[[{{{name}}}]]
 
|{{{name}}}
 
}}
 
|{{{name}}}
 
}}
 
|{{PAGENAME}}
 
}}
 
 
|maplevel = {{{maplevel|}}}
 
|maplevel = {{{maplevel|}}}
|float = {{{map}}}
+
|mapfloat = {{{map|}}}
|width = {{{mapsize|}}}
+
|mapsize = {{{mapsize|}}}
 
|maptype = {{{maptype|}}}
 
|maptype = {{{maptype|}}}
}}{{#if:{{{1|}}} |
+
|mapcaption = {{{mapcaption|auto}}}
{{CoordinateMSG|5|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}
+
|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.