Vorlage:Coord DD to DMS
Aus Wikivoyage
de:
- Funktion: Die Vorlage rechnet eine Koordinate in Dezimalform (DD, Decimal Degree) in die Form Grad, Minute, Sekunde (DMS, Degree:Minute:Second) um.
- Verwendung:
{{Coord DD to DMS|DD coordinate}}
- Erforderlicher Parameter:
-
DD coordinate ist die Koordinate in Dezimalform.
- Optionale Parameter:
-
|plus= Zeichenkette für Himmelsrichtungsangabe für positive Werte.
-
|minus= Zeichenkette für Himmelsrichtungsangabe für negative Werte.
-
|precision= Anzahl der gültigen Nachkommastellen. Bei precision=0 werden nur die Gradwerte angezeigt, bei precision=1 oder 2 auch die Minutenangaben, bei precision=3 oder 4 auch die Sekundenangaben bzw. bei precision=5 auch die Nachkommastelle der Sekundenangabe. Standardwert ist 4.
- Beispiele:
-
{{Coord DD to DMS|30.3333}} wird zu 30° 20' 0".
-
{{Coord DD to DMS|-30.8888}} wird zu -30° 53' 20".
-
{{Coord DD to DMS|-30.8888|plus=n. Br.|minus=s. Br.}} wird zu 30° 53' 20" s. Br.
-
{{Coord DD to DMS|-30.8888|plus=n. Br.|minus=s. Br.|precision=2}} wird zu 30° 53' s. Br.
- Kommentar: Diese Vorlage nutzt eine Parserfunktion.
en:
- Function: The template converts a DD coordinate (Decimal Degree) to a DMS coordinate (Degree:Minute:Second).
- Usage:
{{Coord DD to DMS|DD coordinate}}
- Required Parameter:
-
DD coordinate ist the Decimal Degree coordinate.
- Optional Parameters:
-
|plus= String for the cardinal direction of positive values.
-
|minus= String for the cardinal direction of negative values.
-
|precision= Number of valid decimal places. For precision=0 only degree values are shown, for precision=1 or 2 also minute values, for precision=3 or 4 also second values and for precision=5 also the decimal place of the second value. Default value is 4.
- Examples:
-
{{Coord DD to DMS|30.3333}} gives 30° 20' 0".
-
{{Coord DD to DMS|-30.8888}} gives -30° 53' 20".
-
{{Coord DD to DMS|-30.8888|plus=N|minus=S}} gives 30° 53' 20" S.
-
{{Coord DD to DMS|-30.8888|plus=N|minus=S|precision=2}} gives 30° 53' S.
- Comment: This template uses a parser function.