Änderungen

Wechseln zu: Navigation, Suche

Vorlage:CoordinateComplex

3.185 Byte hinzugefügt, 07:10, 11. Nov. 2021
Die Seite wurde neu angelegt: „<onlyinclude>{{Coordinate{{#if:{{{map|}}} | Map | {{#switch: {{{NS|}}} ||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }} | {{#switch: {{{EW|}}}…“
<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/LatRange
|1= {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}}
| {{{NS|}}}
| {{Coordinate/LatDMS
|1= {{#titleparts:{{{NS}}}|1|1}}
|2= {{#titleparts:{{{NS}}}|1|2}}
|3= {{#titleparts:{{{NS}}}|1|3}}
|4= {{#titleparts:{{{NS}}}|1|4}}
}}
}}
}}
|EW= {{Coordinate/LonRange
|1= {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}}
| {{{EW|}}}
| {{Coordinate/LonDMS
|1= {{#titleparts:{{{EW}}}|1|1}}
|2= {{#titleparts:{{{EW}}}|1|2}}
|3= {{#titleparts:{{{EW}}}|1|3}}
|4= {{#titleparts:{{{EW}}}|1|4}}
}}
}}
}}
|type_safe = {{#switch: {{{type}}}
|continent|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landscape|landmark|event|railwaystation|building={{{type}}}
|example={{#if:{{NAMESPACE}}
| example <!--{{{type}}}-->
}}
}}
|type = {{#if: {{{type|}}}
| {{{type}}}
| <span class="error"></span>
}}
|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}}}) }}<!-- leer oder keine Zahl -->
| {{#switch: {{{type}}}
|continent=10000000
|country|state=500001<!--D-->
|adm1st|adm2nd|city|mountain|isle= 10001<!--DM-->
|event|forest|landscape=10000
|airport=5000
|railwaystation=1000
|landmark|building= 250 <!-- ??? -->
|#default= 500<!--DMS-->
}}
| {{{dim}}}
}}
|dim= {{#ifeq: {{{dim|}}}x|x
| <!--void--><!--explicit default dims for types not supported by geohack-->
{{#switch: {{{type}}}
|continent=10000000
|event|landscape=10000
|airport=5000
|railwaystation=1000
|building=250
|#default=
}}
| {{{dim|}}}
}}
|region= {{{region|}}}
|globe= {{#ifeq: {{{globe}}} | earth
|
| {{{globe|}}}
}}
|text= {{{text|}}}
|article= {{#if: {{{article|}}}{{{text|}}}{{{map|}}}
| {{{article|}}}
| /
}}
|name= {{#ifeq: {{{name}}} | coordinates
|
|{{{name|}}}
}}
|default= {{#ifeq: {{padleft:|1|{{{text}}} }} | /
| {{CoordinateDefault|{{{region|}}} }}
}}
|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>

{{Dokumentation}}
751
Bearbeitungen