Changes
Jump to navigation
Jump to search
m
Template:Coord/prec dec/doc (view source)
Revision as of 19:00, 30 October 2018
, 19:00, 30 October 2018add {{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>{{Coord/prec dec|''lat''|''long''}}</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>
{{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>{{Coord/prec dec|''lat''|''long''}}</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>