Changes

Jump to navigation Jump to search
m
add {{documentation subpage}}
{{documentation subpage}}
{{lua|Module:Math}}

This template, {{tl|Coord/prec dec}}, returns "d", "dm", or "dms" to indicate the most appropriate display format for a latitude-longitude pair expressed in decimal degrees.

== Usage ==
<code>&#123;{Coord/prec dec|''lat''|''long''}&#125;</code>

== Examples ==
{| class="wikitable"
|-
| <code><nowiki>{{Coord/prec dec|99|1}}</nowiki></code> || {{Coord/prec dec|99|1}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.2}}</nowiki></code> || {{Coord/prec dec|99|1.2}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.23}}</nowiki></code> || {{Coord/prec dec|99|1.23}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.234}}</nowiki></code> || {{Coord/prec dec|99|1.234}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.2345}}</nowiki></code> || {{Coord/prec dec|99|1.2345}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.23456}}</nowiki></code> || {{Coord/prec dec|99|1.23456}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.0}}</nowiki></code> || {{Coord/prec dec|99|1.0}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.00}}</nowiki></code> || {{Coord/prec dec|99|1.00}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.000}}</nowiki></code> || {{Coord/prec dec|99|1.000}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.0000}}</nowiki></code> || {{Coord/prec dec|99|1.0000}}
|-
| <code><nowiki>{{Coord/prec dec|99|1.00000}}</nowiki></code> || {{Coord/prec dec|99|1.00000}}
|}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Coord template]]
}}</includeonly>
Anonymous user

Navigation menu