Template:CoordinateComplex
From Holocaustmap
{{Coordinate{{#if:
| Map | {{#switch: ||/|//|///|///N|///S=NO{{#if: Template | x }} | {{#switch: ||/|//|///|///E|///W|///O=NO{{#if: Template | x }} | Main }} }} }} |NS= {{#iferror: {{#expr: {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }} / (1 + (abs({{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }})>90)*(abs({{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }})-90)/90 ) }} | {{#iferror: {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }} | {{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }} | {{#if:{{#ifeq: {{#titleparts:X{{{NS}}}|1|-1}} | X{{{NS}}} | | Template:Coordinate/LatDMS }} | keine Zahl }} }}
}}
|EW= {{#iferror: {{#expr: ({{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | | Template:Coordinate/LonDMS }}) - ceil ( ({{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | | Template:Coordinate/LonDMS }}) / 360 - 0.5 ) * 360 }} | {{#iferror: {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | | Template:Coordinate/LonDMS }} | {{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | | Template:Coordinate/LonDMS }} | {{#if:{{#ifeq: {{#titleparts:X{{{EW}}}|1|-1}} | X{{{EW}}} | | Template:Coordinate/LonDMS }} | keine Zahl }} }}
}}
|type_safe = {{#switch: {{{type}}} |continent|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landscape|landmark|event|railwaystation|building={{{type}}} |example={{#if:Template | example }} }} |type = {{#if: | {{{type}}} | }} |pop= {{#if: | {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}}) | {{{pop}}} | keine ganze Zahl bei Bevölkerung }} | keine Zahl: {{{pop}}} }} }} |lw= |elevation = {{#if: | {{#iferror: {{#ifexpr: ({{{elevation}}}) = ({{{elevation}}}) round 2 | {{{elevation}}} | keine Tausendertrennzeichen und höchstens 2 Nachkommastellen in der Höhenangabe erlaubt }} | keine Zahl: {{{elevation}}} }} }} |dim_safe = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }} | {{#switch: {{{type}}} |continent=10000000 |country|state=500001 |adm1st|adm2nd|city|mountain|isle= 10001 |event|forest|landscape=10000 |airport=5000 |railwaystation=1000 |landmark|building= 250 |#default= 500 }} | {{{dim}}} }} |dim= {{#ifeq: x|x | {{#switch: {{{type}}} |continent=10000000 |event|landscape=10000 |airport=5000 |railwaystation=1000 |building=250 |#default= }} | }} |region= |globe= {{#ifeq: {{{globe}}} | earth | | }} |text= |article= {{#if: | | / }} |name= {{#ifeq: {{{name}}} | coordinates | | }} |default= {{#ifeq: { | / | Template:CoordinateDefault }} |tooltip= |ttf = DMS |sortkey= |mapname = |maplevel = |mapfloat = |mapsize = |maptype = |mapcaption = auto |maplabel = |maplayer = |maptrenner =
}}