Difference between revisions of "Template:Coord"

From All About Ayrshire
Jump to: navigation, search
(now many ways are there to say inline or title? :P)
Line 1: Line 1:
<includeonly>{{#invoke:Coordinates|coord}}<!--
+
<noinclude>{{High use}}
-->{{#if:{{{nosave|}}}||{{#coordinates:{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}
+
<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
|{{#switch:{{{display|}}}
+
'''<big>Documentation: Coord</big>'''
|inline,title
+
 
|inline, title
+
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.
|it
+
 
|t
+
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.
|title,inline
+
 
|title, inline
+
To use this template, copy the code below, replacing anything within <tags> as appropriate.
|title={{#switch:{{SUBPAGENAME}}
+
<div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
  |doc
+
<nowiki>{{Coord| <lat> | <lon> | <label> }}</nowiki>
  |testcases=
+
</div>
  |#default={{talk other||primary}}
+
'''<lat>''' - The latitude of the point<br/>
  }}
+
'''<lon>''' - The longitude of the point<br/>
|#default=
+
'''<label>''' - The label of the point<br/>
}}
+
</div>
|name={{{name|}}}
+
 
}}
+
 
}}</includeonly><noinclude>
+
</noinclude><includeonly></includeonly>
{{Documentation}}
 
</noinclude>
 

Revision as of 02:39, 13 October 2015

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