Vorlage:CoordinateComplex: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) K (elevation-fix, - default-type) |
K (26 Versionen) |
||
(23 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | <onlyinclude>{{Coordinate | + | <onlyinclude>{{Coordinate{{#if:{{{map|}}} |
− | + | | Map | |
− | + | | {{#switch: {{{NS|}}} | |
− | + | ||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }} | |
− | + | | {{#switch: {{{EW|}}} | |
+ | ||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }} | ||
+ | | Main | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
− | |NS= {{Coordinate | + | |NS= {{Coordinate/LatRange |
− | | {{#ifeq: {{#titleparts:{{{NS | + | |1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} |
| {{{NS|}}} | | {{{NS|}}} | ||
− | | {{Coordinate | + | | {{Coordinate/LatDMS |
− | | {{#titleparts:{{{NS | + | |1= {{#titleparts:{{{NS}}}|1|1}} |
− | | {{#titleparts:{{{NS | + | |2= {{#titleparts:{{{NS}}}|1|2}} |
− | | {{#titleparts:{{{NS | + | |3= {{#titleparts:{{{NS}}}|1|3}} |
− | | {{#titleparts:{{{NS | + | |4= {{#titleparts:{{{NS}}}|1|4}} |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | |EW= {{Coordinate | + | |EW= {{Coordinate/LonRange |
− | | {{#ifeq: {{#titleparts:{{{EW | + | |1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} |
| {{{EW|}}} | | {{{EW|}}} | ||
− | | {{Coordinate | + | | {{Coordinate/LonDMS |
− | | {{#titleparts:{{{EW | + | |1= {{#titleparts:{{{EW}}}|1|1}} |
− | | {{#titleparts:{{{EW | + | |2= {{#titleparts:{{{EW}}}|1|2}} |
− | | {{#titleparts:{{{EW | + | |3= {{#titleparts:{{{EW}}}|1|3}} |
− | | {{#titleparts:{{{EW | + | |4= {{#titleparts:{{{EW}}}|1|4}} |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | + | |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 35: | Zeile 37: | ||
}} | }} | ||
}} | }} | ||
− | |type = {{{type|}}} | + | |type = {{#if: {{{type|}}} |
− | | | + | | {{{type}}} |
− | + | | <span class="error" /> | |
− | + | }} | |
− | | | + | |pop= {{#if: {{{pop|}}} |
− | | | + | | {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}}) |
− | | {{# | + | | {{{pop}}} |
− | + | | <span class="error">keine ganze Zahl bei Bevölkerung</span> | |
− | | {{{ | + | }} |
+ | | <span class="error">keine Zahl: {{{pop}}}</span> | ||
+ | }} | ||
+ | }} | ||
+ | |lw= {{{lw|}}} | ||
+ | |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 50: | Zeile 64: | ||
|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|}}} | |
− | + | | / | |
− | |||
− | |||
− | |||
}} | }} | ||
|name= {{#ifeq: {{{name}}} | coordinates | |name= {{#ifeq: {{{name}}} | coordinates | ||
Zeile 67: | Zeile 89: | ||
}} | }} | ||
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | |default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | ||
− | | {{ | + | | {{CoordinateDefault|{{{region|}}} }} |
}} | }} | ||
|tooltip= {{{tooltip|}}} | |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> | ||
{{Dokumentation}} | {{Dokumentation}} |