|
|
| Line 1: |
Line 1: |
| − | <noinclude>{{High use}} | + | <includeonly>{{#invoke:Coordinates|coord}}<!-- |
| − | <div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;"> | + | -->{{#if:{{{nosave|}}}||{{#coordinates:{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}} |
| − | '''<big>Documentation: Coord</big>'''
| + | |{{#switch:{{{display|}}} |
| − | | + | |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.
| + | |inline, title |
| − | | + | |it |
| − | 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.
| + | |t |
| − | | + | |title,inline |
| − | For example, to get a KML file for the M50, the following link would provide this:
| + | |title, inline |
| − | [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]
| + | |title={{#switch:{{SUBPAGENAME}} |
| − |
| + | |doc |
| − | To use this template, copy the code below, replacing anything within <tags> as appropriate.
| + | |testcases= |
| − | <div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
| + | |#default={{talk other||primary}} |
| − | <nowiki>{{Coord| <lat> | <lon> | <label> }}</nowiki>
| + | }} |
| − | </div>
| + | |#default= |
| − | '''<lat>''' - The latitude of the point<br/>
| + | }} |
| − | '''<lon>''' - The longitude of the point<br/>
| + | |name={{{name|}}} |
| − | '''<label>''' - The label of the point<br/>
| + | }} |
| − | </div>
| + | }}</includeonly><noinclude> |
| − | | + | {{Documentation}} |
| − | [[Category:Templates needing more information]]
| + | </noinclude> |
| − | | |
| − | | |
| − | </noinclude><includeonly>{{#kml.placemark:Point({{{1|0}}},{{{2|0}}})|{{{3|}}}}}
| |
| − | [[Category:Articles with geographic coordinates]]</includeonly>
| |