Vorlage:CoordinateLAT

Aus VolynWiki
Wechseln zu: Navigation, Suche

{{#if:{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+4}}}} | |{{#titleparts:/|1|{{#expr:1+4}}}} }}{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }}{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }} |{{#switch:{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+4}}}} | |{{#titleparts:/|1|{{#expr:1+4}}}} }}

||N|S={{#ifeq: {{#ifeq:{{#iferror:{{#expr:{{#switch:R+

| R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }}) = (0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }}) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}{{#ifeq:{{#iferror:{{#expr:{{#switch:{{#if:{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }}|N|R+}} | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }}) = (0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }}) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}{{#ifeq:{{#iferror:{{#expr:{{#switch:N | R+ = abs | R- = -abs | Z = trunc | Z+ | N = abs trunc | Z- = -abs trunc}}(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) = (0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) {{#if: | round ({{{3}}}) }} }} | }} | 1 | 1 | }}|111

 |{{#ifexpr: (0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }})>=60

  | Breitensekunden >= 60 
  |{{#ifexpr: (0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }})>=60

   | Längenminuten >= 60 
   |{{#ifeq:S|{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+4}}}} | |{{#titleparts:/|1|{{#expr:1+4}}}} }}|-

    }}{{#ifexpr:( (0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }})/3600 +(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }})/60 +(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) )>90

    |90
    |{{#expr:(0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+3}}}} | |{{#titleparts:/|1|{{#expr:1+3}}}} }})/3600 +(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+2}}}} | |{{#titleparts:/|1|{{#expr:1+2}}}} }})/60 +(0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) }}

    }}
   }}
  }}
  | Breitengrad: DMS-Formatfehler 
 }}
|#default=  unbekannte Himmelsrichtung ›{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+4}}}} | |{{#titleparts:/|1|{{#expr:1+4}}}} }}‹

}}

|{{#if:{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}

|{{#ifexpr:(0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }})>90|90

 |{{#ifexpr:(0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }})<-90|-90

  |{{#expr:(0{{#ifeq:/

|{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }})}}

  }}
 }}
}}

}}