Vorlage:CoordinateComplex: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) K (verschob „Vorlage:Coordinate/Test/Neu“ nach „Vorlage:CoordinateComplex“) |
K (26 Versionen) |
||
(12 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | <onlyinclude>{{Coordinate | + | <onlyinclude>{{Coordinate{{#if:{{{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 |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | |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 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">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_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|}}} | + | |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|}}} | |
− | + | | / | |
− | |||
− | |||
− | |||
}} | }} | ||
|name= {{#ifeq: {{{name}}} | coordinates | |name= {{#ifeq: {{{name}}} | coordinates | ||
Zeile 88: | Zeile 89: | ||
}} | }} | ||
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | |default= {{#ifeq: {{padleft:|1|{{{text}}} }} | / | ||
− | | {{ | + | | {{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|}}} | ||
− | |||
− | |||
}}</onlyinclude> | }}</onlyinclude> | ||
{{Dokumentation}} | {{Dokumentation}} |