Template:Location/deg2dms
From OpenMedia
< Template:Location
Revision as of 14:21, 13 December 2012 by Jarekt (Talk) (Imported 2013-03-10 from http://commons.wikimedia.org/wiki/[SAME-NAME-AS-HERE] to enable licence display of reused media. See there for complete license and author attribution!)
{{{1}}}
[edit]
Documentation
Helper function of {{Location}} template family. It converts a number representing decimal degrees to degree/minutes/seconds notations.
Usage
{{Location/deg2dms|1=|lang=}}
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | Decimal degrees.
|
empty | required |
lang | language code used for the decimal mark. See Decimal mark article for more information. | {{int:lang}} | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Relies on:
{{FormatnumSigns}}
Example
- {{Location/deg2dms|0}} produces 0
- {{Location/deg2dms|11.111111}} produces 11° 6′ 40.0″
- {{Location/deg2dms|150.123456789}} produces 150° 7′ 24.44″
- {{Location/deg2dms|250.123456789}} produces 250° 7′ 24.44″
- {{Location/deg2dms|-150.123456789}} produces 150° 7′ 24.44″