Vorlage:CoordinateLONG

Aus VolynWiki
Version vom 13. September 2009, 07:04 Uhr von Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{#if:{{ParmPart|4|{{{1|}}}}}{{ParmPart|3|{{{1|}}}}}{{ParmPart|2|{{{1|}}}}} |{{#switch:{{ParmPart|4|{{{1|}}}}} ||O|E|W={{#ifeq: {{IstZahl|0{{ParmPart|3|{{{1|}}}}...“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
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}}}} }}

||O|E|W={{#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

  | Längensekunden >= 60 
  |{{#ifexpr: (0{{#ifeq:/

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

   | Längenminuten >= 60 
   |{{#expr:

(({{#ifeq:{{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+4}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+4}}}} }}|W|-}}

 ((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}}}} }})

 )
-180
)

-((({{#ifeq:{{#IFEQ:/ |{{#TITLEPARTS:/|1|{{#EXPR:1+4}}}} | |{{#TITLEPARTS:/|1|{{#EXPR:1+4}}}} }}|W|-}}

   ((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}}}} }})

   )
  -180
  )/360
 -.5
 )round 0
)*360

-180 )}}

   }}
  }}
 | Längengrad: DMS-Formatfehler 
 }}
|#default=  Längengrad: 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}}}} }}

|{{#expr:

(((0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) -180) -((((0{{#ifeq:/ |{{#titleparts:/|1|{{#expr:1+1}}}} | |{{#titleparts:/|1|{{#expr:1+1}}}} }}) -180)/360

 -.5
 )round 0
)*360

-180 )}} }}}}