Difference between revisions of "Template:LocFormat"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
==== Usage ====
 
==== Usage ====
 
<pre>{{LocFormat
 
<pre>{{LocFormat
|latlon=coordinates
+
|coordinates
 
|format=dd}}</pre>
 
|format=dd}}</pre>
{{LocFormat|latlon=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:{{{latlon}}}|format={{{format|dd}}}|directional=no}}</includeonly>
+
<includeonly>{{#coordinates:{{{1}}}|format={{{format|dd}}}|directional=no}}</includeonly>

Revision as of 22:11, 27 November 2024

Template to format coordinates in decimal degrees without directional indicators.

Usage

{{LocFormat
|coordinates
|format=dd}}

43.274650°, -2.021303°