Difference between revisions of "Template:LocFormat"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| − | Template to format coordinates in decimal degrees | + | Template to format coordinates in decimal degrees without directional indicators. |
==== Usage ==== | ==== Usage ==== | ||
<pre>{{LocFormat | <pre>{{LocFormat | ||
|coordinates | |coordinates | ||
|format=dd | |format=dd | ||
| − | | | + | |directional=no}}</pre> |
==== Examples ==== | ==== Examples ==== | ||
| − | * | + | === Floats (format=float) === |
| − | {{LocFormat| | + | * {{LocFormat|55° 45' 20.83" N, 37° 37' 3.48" W|format=float}} |
| − | → | + | → 55.7557860, -37.6176330 |
| − | * | + | === Decimal Degrees (format=dd) === |
| − | {{LocFormat| | + | * {{LocFormat|55° 45' 20.83" N, 37° 37' 3.48" W|format=dd}} |
| − | → | + | → 55.7557860°, -37.6176330° |
| + | |||
| + | === Decimal Minutes (format=dm) === | ||
| + | * {{LocFormat|55° 45' 20.83" N, 37° 37' 3.48" W|format=dm}} | ||
| + | → 55° 45.3472', -37° 37.0580' | ||
| + | |||
| + | === Degrees Minutes Seconds (format=dms) === | ||
| + | * {{LocFormat|55° 45' 20.83" N, 37° 37' 3.48" W|format=dms}} | ||
| + | → 55° 45' 20.83", -37° 37' 3.48" | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
| − | <includeonly>{{#coordinates:{{{1}}}|format={{{format|dd}}}|directional=yes | + | <includeonly>{{#coordinates:{{{1}}}|format={{{format|dd}}}|directional=yes}}</includeonly> |
Revision as of 08:44, 19 January 2025
Template to format coordinates in decimal degrees without directional indicators.
Usage
{{LocFormat
|coordinates
|format=dd
|directional=no}}
Examples
Floats (format=float)
55.755786 N, 37.617633 W → 55.7557860, -37.6176330
Decimal Degrees (format=dd)
55.755786° N, 37.617633° W → 55.7557860°, -37.6176330°
Decimal Minutes (format=dm)
55° 45.3472' N, 37° 37.0580' W → 55° 45.3472', -37° 37.0580'
Degrees Minutes Seconds (format=dms)
55° 45' 20.83" N, 37° 37' 3.48" W → 55° 45' 20.83", -37° 37' 3.48"