Difference between revisions of "Template:LocFormat"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
<pre>{{LocFormat
 
<pre>{{LocFormat
 
|coordinates
 
|coordinates
|format=dd}}</pre>
+
|format=dd
 +
|directional=no}}</pre>
 
{{LocFormat|43° 16' 28.74" N, 2° 1' 16.69" W }}
 
{{LocFormat|43° 16' 28.74" N, 2° 1' 16.69" W }}
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
<includeonly>{{#coordinates:{{{1}}}|format={{{format|dd}}}|directional=yes}}</includeonly>
+
<includeonly>{{#coordinates:{{{1}}}|format={{{format|float}}}|directional=no}}</includeonly>

Revision as of 22:37, 27 November 2024

Template to format coordinates in decimal degrees without directional indicators.

Usage

{{LocFormat
|coordinates
|format=dd
|directional=no}}

43.27465, -2.021303