Difference between revisions of "Template:Coord"

From All About Ayrshire
Jump to: navigation, search
(Created page with "<noinclude>{{High use}} <div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;"> '''<big>Documentation: Coord</big>''' The coord template embeds...")
 
m (1 revision imported)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<includeonly>{{#invoke:Coordinates|coord}}</includeonly><noinclude>
 
<noinclude>{{High use}}
 
<noinclude>{{High use}}
 
<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
 
<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
Line 7: Line 8:
 
This allows a road's special features to be plotted in a KML file and exported into a map that supports KML files, including embedded maps in the Wiki.
 
This allows a road's special features to be plotted in a KML file and exported into a map that supports KML files, including embedded maps in the Wiki.
  
For example, to get a KML file for the M50, the following link would provide this:
 
[http://www.sabre-roads.org.uk/wiki/index.php?title=Special:KMLExport/M50 http://www.sabre-roads.org.uk/wiki/index.php?title=Special:KMLExport/M50]
 
 
 
To use this template, copy the code below, replacing anything within <tags> as appropriate.
 
To use this template, copy the code below, replacing anything within <tags> as appropriate.
 
<div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
 
<div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
Line 19: Line 17:
 
</div>
 
</div>
  
[[Category:Templates needing more information]]
 
  
 
+
</noinclude><includeonly></includeonly>
</noinclude><includeonly>{{#kml.placemark:Point({{{1|0}}},{{{2|0}}})|{{{3|}}}}}
 
[[Category:Articles with geographic coordinates]]</includeonly>
 

Latest revision as of 01:04, 28 December 2020

Documentation: Coord

The coord template embeds Google Maps KML placemark data into the page. In most cases this is already included in the infobox template so there is no need to use it on its own.

This allows a road's special features to be plotted in a KML file and exported into a map that supports KML files, including embedded maps in the Wiki.

To use this template, copy the code below, replacing anything within <tags> as appropriate.

{{Coord| <lat> | <lon> | <label> }}

<lat> - The latitude of the point
<lon> - The longitude of the point
<label> - The label of the point