Template:Coord/prec decEdit This Page

From FamilySearch Wiki

< Template:Coord
Revision as of 01:54, 5 July 2010 by Thomas_Lerman (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] [history] [purge] Documentation icon Template documentation

This template, {{Coord/prec dec}}, returns "d", "dm", or "dms", given two decimal WG84 coordinates.

Usage

{{Coord/prec dec|lat|long}}

Examples

{{Coord/prec dec|99|1}} d
{{Coord/prec dec|99|1.2}} dm
{{Coord/prec dec|99|1.23}} dm
{{Coord/prec dec|99|1.234}} dms
{{Coord/prec dec|99|1.2345}} dms
{{Coord/prec dec|99|1.23456}} dms
{{Coord/prec dec|99|1.0}} dm
{{Coord/prec dec|99|1.00}} dm
{{Coord/prec dec|99|1.000}} dms
{{Coord/prec dec|99|1.0000}} dms
{{Coord/prec dec|99|1.00000}} dms