کينډۍ:Coord/dec2dms/doc

Given a decimal coordinate, two cardinal directions, and precision, render a coordinate in degrees/minutes/seconds.

{{coord/dec2dms|coord|N|S|precision}}
{{coord/dec2dms|coord|E|W|precision}}

Precision codes:

dDegrees (rounded to integer)
d1Degrees (rounded to 0.1 degrees)
dmDegrees, minutes (rounded to integer)
dm1Degrees, minutes (rounded to 0.1 minutes)
dmsDegrees, minutes, seconds (rounded to integer)
dms1Degrees, minutes, seconds (rounded to 0.1 seconds)

Examples

سمول
{{Coord/dec2dms|10.391944|N|S|d}} شمال°10
{{Coord/dec2dms|10.391944|N|S|d1}} شمال10.4°
{{Coord/dec2dms|10.390000|N|S|d}} شمال°10
{{Coord/dec2dms|10.390000|N|S|d1}} شمال10.4°
{{Coord/dec2dms|10.39|N|S|d}} شمال°10
{{Coord/dec2dms|10.39|N|S|d1}} شمال10.4°
{{Coord/dec2dms|-10.391944|N|S|dm}} سويل10°24′
{{Coord/dec2dms|-10.391944|N|S|dm1}} سويل10°23.5′
{{Coord/dec2dms|10.391944|E|W|dms}} شرقی‌″۳۱ ′۲۳ °۱۰
{{Coord/dec2dms|10.391944|E|W|dms1}} شرقی‌10°23′31.0″
{{Coord/dec2dms|10|N|S|d}} شمال°10
{{Coord/dec2dms|10|E|W|dm}} شرقی‌10°00′
{{Coord/dec2dms|-10|E|W|dms}} لویدیځ″۰۰ ′۰۰ °۱۰
{{Coord/dec2dms|-10|E|W|dms1}} لویدیځ10°00′00.0″

Subroutines

سمول

Subroutines of Template:Coord/dec2dms (سمول | talk | پېښليک | تړنې | وگورئ | يادښتونه):