Vorlage:CoordinateComplex: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) (+maplabel) |
✓ (Diskussion) (-Test) |
||
Zeile 1: | Zeile 1: | ||
− | <onlyinclude>{{Coordinate | + | <onlyinclude>{{Coordinate{{#if:{{{map|}}} |
− | | | + | | Map |
| {{#switch: {{{NS|}}} | | {{#switch: {{{NS|}}} | ||
− | ||/|//|///|///N|///S= | + | ||/|//|///|///N|///S=None{{#if: {{NAMESPACE}} | NR }} |
| {{#switch: {{{EW|}}} | | {{#switch: {{{EW|}}} | ||
− | ||/|//|///|///E|///W|///O= | + | ||/|//|///|///E|///W|///O=None{{#if: {{NAMESPACE}} | NR }} |
− | | | + | | Main |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | |NS= {{Coordinate | + | |NS= {{Coordinate/LatRange |
|1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | |1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | ||
| {{{NS|}}} | | {{{NS|}}} | ||
− | | {{Coordinate | + | | {{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 | + | |EW= {{Coordinate/LonRange |
|1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | |1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | ||
| {{{EW|}}} | | {{{EW|}}} | ||
− | | {{Coordinate | + | | {{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_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 54: | Zeile 54: | ||
}} | }} | ||
}} | }} | ||
− | | | + | |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }} |
| {{#switch: {{{type}}} | | {{#switch: {{{type}}} | ||
|country|state|adm1st=500001<!--D--> | |country|state|adm1st=500001<!--D--> | ||
Zeile 88: | Zeile 88: | ||
}} | }} | ||
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | |default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | ||
− | | {{ | + | | {{CoordinateDefault|{{{region|}}} }} |
}} | }} | ||
|tooltip= {{{tooltip|}}} | |tooltip= {{{tooltip|}}} | ||
Zeile 104: | Zeile 104: | ||
|maptrenner = {{{maptrenner|}}} | |maptrenner = {{{maptrenner|}}} | ||
}}{{#if:{{{1|}}} | | }}{{#if:{{{1|}}} | | ||
− | {{ | + | {{CoordinateMessage|5|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}} |
}}</onlyinclude> | }}</onlyinclude> | ||
{{Dokumentation}} | {{Dokumentation}} |