Difference between revisions of "Template:LocFormat"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Template to format coordinates in decimal degrees without directional indicators. ==== Usage ==== <pre>{{LocFormat:|coordinates}}</pre> Category:Template </noi...")
 
Line 2: Line 2:
 
Template to format coordinates in decimal degrees without directional indicators.
 
Template to format coordinates in decimal degrees without directional indicators.
 
==== Usage ====
 
==== Usage ====
<pre>{{LocFormat:|coordinates}}</pre>
+
<pre>{{LocFormat
 +
|latlon=coordinates
 +
|format=dd}}</pre>
 +
{{LocFormat|latlon=43° 18' 4.71" N, 2° 0' 3.91" W}}
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
<includeonly>{{#coordinates:{{{1}}}|format=dd|directional=no}}</includeonly>
+
<includeonly>{{#coordinates:{{{latlon}}}|format={{{format|dd}}}|directional=no}}</includeonly>

Revision as of 16:39, 27 November 2024

Template to format coordinates in decimal degrees without directional indicators.

Usage

{{LocFormat
|latlon=coordinates
|format=dd}}

43.301308°, -2.001086°