Vorlage:CoordinateMAIN

Aus VolynWiki
Wechseln zu: Navigation, Suche

{{#iferror: |{{#switch:1 |1= Gradzahl-Fehler: {{#iferror:|NS: |}} {{#iferror:|EW: |}} {{#if:Vorlage | | }} |2= nicht in Bereich von CH1903 {{#if:Vorlage | | }} |3= {{#if:|falscher Wert ›‹|kein Wert}} in type-Parameter {{#if:Vorlage | | }} |5= unbenannte Parameter 1:{{#if:|, 2:}}{{#if:|, 3:}}{{#if:|, 4:}} {{#if:|usw.}} {{#if:Vorlage | | }} |6={{#if:||{{#if:|:}} region-Parameter fehlt6 {{#if:|in Positionskarte.}} }}{{#if:Vorlage | | }} |7={{#if: |{{#if:Vorlage | | }} |{{#if:Vorlage | |7 }} }} |8=kein name-Parameter in Fließtextkoordinate{{#if:Vorlage | | }} |9={{#if: | Einwohner Zahlenformat {{#if:Vorlage | | }} |{{#if:Vorlage | |9 }} }} |#default= coordinates error {{#if:Vorlage | | }} }} |{{#if:|{{#if:|!{{#switch: |EW |LONG={{#expr:(500.0000005+((0) round 6))}}{{#expr: (500.0000005+((0) round 6))}} |#default={{#expr:(500.0000005+((0) round 6))}}{{#expr: (500.0000005+((0) round 6))}} }}}}{{#iferror:|{{{type}}}|{{#ifeq:|example|Beispiel }} }}{{#if:||{{#switch:8 |1= Gradzahl-Fehler: {{#iferror:|NS: {{{2}}}|}} {{#iferror:|EW: {{{3}}}|}} {{#if:Vorlage | | }} |2= nicht in Bereich von CH1903 {{#if:Vorlage | | }} |3= {{#if:|falscher Wert ›{{{2}}}‹|kein Wert}} in type-Parameter {{#if:Vorlage | | }} |5= unbenannte Parameter 1:{{{2}}}{{#if:|, 2:}}{{#if:|, 3:}}{{#if:|, 4:}} {{#if:|usw.}} {{#if:Vorlage | | }} |6={{#if:||{{#if:|{{{2}}}:}} region-Parameter fehlt6 {{#if:|in Positionskarte.}} }}{{#if:Vorlage | | }} |7={{#if: |{{#if:Vorlage | | }} |{{#if:Vorlage | |7 }} }} |8=kein name-Parameter in Fließtextkoordinate{{#if:Vorlage | | }} |9={{#if: | Einwohner Zahlenformat {{#if:Vorlage | | }} |{{#if:Vorlage | |9 }} }} |#default= coordinates error {{#if:Vorlage | | }} }}}}<onlyinclude>[//tools.wmflabs.org/geohack/geohack.php?pagename=Vorlage:CoordinateMAIN&language=de&params={{

  1. expr:abs(0)}}_{{#ifexpr:0<0|S|N}}_{{#expr:abs(0)}}_{{#ifexpr:0<0|W|E}}{{
  2. if:|_dim:}}{{#switch:

||earth={{#if: |_region:}}{{#switch:{{#iferror:}} |= |country|state |adm1st|adm2nd |city|isle=_type:{{#iferror:({{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:N | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}|}})}} |mountain=_type:{{#iferror:({{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:R | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if:2 | round (2) }} }} | }} | 1 | 1 | }}|}})}} |#default=_type: }} |#default=_globe: }}{{#if:|&title=}} {{#if:|}}{{#if:{{#switch: {{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} | |OSGB36|UTM |DMS|DM|DEC|CH1903= |ICON0=⊙ |ICON =⦁ |ICON1= |#default= }}|{{#switch: {{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} | |OSGB36|UTM |DMS|DM|DEC|CH1903= |ICON0=⊙ |ICON =⦁ |ICON1= |#default= }} |{{#if:{{#switch: {{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} |={{#titleparts:Vorlage:CoordinateRR DEFAULT|1|1}} |OSGB36|UTM |DMS= DMS |DM= DM |DEC= DEC |CH1903= CH1903 }}|{{Coordinate to {{#switch: {{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} |={{#titleparts:Vorlage:CoordinateRR DEFAULT|1|1}} |OSGB36|UTM |DMS= DMS |DM= DM |DEC= DEC |CH1903= CH1903 }}{{#ifeq:{{#SWITCH: {{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} |={{#TITLEPARTS:VORLAGE:COORDINATERR DEFAULT|1|1}} |OSGB36|UTM |DMS= DMS |DM= DM |DEC= DEC |CH1903= CH1903 }}|DM|S}}

|NS=0
|EW=0
|sortkey=
|dim= {{#ifeq:{{#SWITCH: {{#IFEQ:/

|{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+1}}}} }} |={{#TITLEPARTS:VORLAGE:COORDINATERR DEFAULT|1|1}} |OSGB36|UTM |DMS= DMS |DM= DM |DEC= DEC |CH1903= CH1903 }}|DM |10001 |{{#switch: |country|state|adm1st={{#if:||500001}} |adm2nd|city|mountain|isle={{#if:||10001}} |landmark={{#if:|{{#if:250|{{#expr:{{#if:|{{#if:|{{#ifexpr:(250)<()|{{#ifexpr:(250)<({{{3}}})|250|{{{3}}}}}|{{#ifexpr:()<({{{3}}})||{{{3}}}}}}}|{{#ifexpr:(250)<()|250|}}}}|250}}}}|}}}} |#default={{#if:||500}} }}}}<{{#if:|span|div}} class="geo microformat">0{{#ifexpr:(00)<90 and (00)>-90|0|0}}</{{#if:|span|div}}>{{#if:||{{#switch:||earth={{#switch:6 |1= Gradzahl-Fehler: {{#iferror:|NS: {{{2}}}|}} {{#iferror:|EW: {{{3}}}|}} {{#if:Vorlage | | }} |2= nicht in Bereich von CH1903 {{#if:Vorlage | | }} |3= {{#if:|falscher Wert ›{{{2}}}‹|kein Wert}} in type-Parameter {{#if:Vorlage | | }} |5= unbenannte Parameter 1:{{{2}}}{{#if:|, 2:}}{{#if:|, 3:}}{{#if:|, 4:}} {{#if:|usw.}} {{#if:Vorlage | | }} |6={{#if:||{{#if:|{{{2}}}:}} region-Parameter fehlt6 {{#if:|in Positionskarte.}} }}{{#if:Vorlage | | }} |7={{#if: |{{#if:Vorlage | | }} |{{#if:Vorlage | |7 }} }} |8=kein name-Parameter in Fließtextkoordinate{{#if:Vorlage | | }} |9={{#if: | Einwohner Zahlenformat {{#if:Vorlage | | }} |{{#if:Vorlage | |9 }} }} |#default= coordinates error {{#if:Vorlage | | }} }}}} }}{{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:N | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}||{{#switch:9 |1= Gradzahl-Fehler: {{#iferror:|NS: |}} {{#iferror:|EW: {{{3}}}|}} {{#if:Vorlage | | }} |2= nicht in Bereich von CH1903 {{#if:Vorlage | | }} |3= {{#if:|falscher Wert ›‹|kein Wert}} in type-Parameter {{#if:Vorlage | | }} |5= unbenannte Parameter 1:{{#if:|, 2:}}{{#if:|, 3:}}{{#if:|, 4:}} {{#if:|usw.}} {{#if:Vorlage | | }} |6={{#if:||{{#if:|:}} region-Parameter fehlt6 {{#if:|in Positionskarte.}} }}{{#if:Vorlage | | }} |7={{#if: |{{#if:Vorlage | | }} |{{#if:Vorlage | |7 }} }} |8=kein name-Parameter in Fließtextkoordinate{{#if:Vorlage | | }} |9={{#if: | Einwohner Zahlenformat {{#if:Vorlage | | }} |{{#if:Vorlage | |9 }} }} |#default= coordinates error {{#if:Vorlage | | }} }} }}{{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:R | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if:2 | round (2) }} }} | }} | 1 | 1 | }}||{{#switch:7 |1= Gradzahl-Fehler: {{#iferror:|NS: |}} {{#iferror:|EW: {{{3}}}|}} {{#if:Vorlage | | }} |2= nicht in Bereich von CH1903 {{#if:Vorlage | | }} |3= {{#if:|falscher Wert ›‹|kein Wert}} in type-Parameter {{#if:Vorlage | | }} |5= unbenannte Parameter 1:{{#if:|, 2:}}{{#if:|, 3:}}{{#if:|, 4:}} {{#if:|usw.}} {{#if:Vorlage | | }} |6={{#if:||{{#if:|:}} region-Parameter fehlt6 {{#if:|in Positionskarte.}} }}{{#if:Vorlage | | }} |7={{#if: |{{#if:Vorlage | | }} |{{#if:Vorlage | |7 }} }} |8=kein name-Parameter in Fließtextkoordinate{{#if:Vorlage | | }} |9={{#if: | Einwohner Zahlenformat {{#if:Vorlage | | }} |{{#if:Vorlage | |9 }} }} |#default= coordinates error {{#if:Vorlage | | }} }} }}{{#if:

|{{#if:|<span|<div}} id="coordinates" class="coordinates">Koordinaten: {{#iferror:|{{{type}}}|{{#ifeq:|example| Beispiel }}}}<onlyinclude>[//tools.wmflabs.org/geohack/geohack.php?pagename=Vorlage:CoordinateMAIN&language=de&params={{
  1. expr:abs(0)}}_{{#ifexpr:0<0|S|N}}_{{#expr:abs(0)}}_{{#ifexpr:0<0|W|E}}{{
  2. if:|_dim:}}{{#switch:

||earth={{#if: |_region:}}{{#switch:{{#iferror:}} |= |country|state |adm1st|adm2nd |city|isle=_type:{{#iferror:({{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:N | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}|}})}} |mountain=_type:{{#iferror:({{#if:{{#ifeq:{{#iferror:{{#expr:{{#switch:R | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0) = (0) {{#if:2 | round (2) }} }} | }} | 1 | 1 | }}|}})}} |#default=_type: }} |#default=_globe: }}{{#if:|&title=}} {{#if:Coordinates|}}{{#if:|{{{0}}} |{{#if:DMS|{{Coordinate to DMS{{#ifeq:DMS|DM|S}}

|NS=0
|EW=0
|sortkey=
|dim= {{#ifeq:DMS|DM

|10001 |{{#switch: |country|state|adm1st={{#if:||500001}} |adm2nd|city|mountain|isle={{#if:||10001}} |landmark={{#if:|{{#if:250|{{#expr:{{#if:|{{#if:|{{#ifexpr:(250)<()|{{#ifexpr:(250)<({{{3}}})|250|{{{3}}}}}|{{#ifexpr:()<({{{3}}})||{{{3}}}}}}}|{{#ifexpr:(250)<()|250|}}}}|250}}}}|}}}} |#default={{#if:||500}} }}</{{#if:|span></span|div}}>}} }}