Template:Trail Map: Difference between revisions
Jump to navigation
Jump to search
m (It works! (for main trail - other trails and markers not tested). Cleanup) |
(adding upload new version link) |
||
Line 179: | Line 179: | ||
|kml={{#replace:{{#arrayprint:KMLlinks}}|<nowiki> </nowiki>|_}} | |kml={{#replace:{{#arrayprint:KMLlinks}}|<nowiki> </nowiki>|_}} | ||
}} | }} | ||
{{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}</includeonly> | {{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}<div style="float: right">[http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#replace:{{#arrayprint:KMLlinks}}|<nowiki> </nowiki>|_}}.kml&wpForReUpload=1 Upload new version]</div></includeonly> |
Revision as of 11:08, 19 December 2018
This returns a map of the trails associated with the trail page it is called on.
It should be called in the following format:
{{Trail Map|Main Trail={{PAGENAME}}|Other Trails= }}
Parameter Main Trail is optional and will default to the pagename. Optionally, additional trails can be requested to have the KML be shown.
Edit the page to see the template text.