Mall:Coord DD to DMS
Utseende
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 coordinateist 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. Beiprecision=0werden nur die Gradwerte angezeigt, beiprecision=1 oder 2auch die Minutenangaben, beiprecision=3 oder 4auch die Sekundenangaben bzw. beiprecision=5auch 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 coordinateist 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. Forprecision=0only degree values are shown, forprecision=1 or 2also minute values, forprecision=3 or 4also second values and forprecision=5also 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.