Editing Template:Trail Map
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{Trail Map|Main Trail={{PAGENAME}}|Other Trails= | {{Trail Map|Main Trail={{PAGENAME}}|Other Trails= }} | ||
</pre> | </pre> | ||
Parameter Main Trail is optional and will default to the pagename. Optionally, additional trails can be requested to have the KML be shown by listing Trail page names separated by commas | Parameter Main Trail is optional and will default to the pagename. Optionally, additional trails can be requested to have the KML be shown by listing Trail page names separated by commas. | ||
Future features could allow specifying map settings. | Future features could allow specifying map settings. | ||
Line 15: | Line 15: | ||
-->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!-- | -->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!-- | ||
-->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!-- | -->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!-- | ||
-->{{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{! | -->{{#ask: [[{{#arrayprint:alltrailnames |{{!}}{{!}}|@@@@ |~@@@@ }}]] | ||
| ?Has KML Link | | ?Has KML Link | ||
| pagetitle = hide | | pagetitle = hide | ||
Line 169: | Line 169: | ||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[Is Marker Type::Blowdown]] | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[Is Marker Type::Blowdown]] | ||
; icon = treedown.png | ; icon = treedown.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|format=googlemaps | |format=googlemaps | ||
|kmlrezoom= | |kmlrezoom=yes | ||
|type=terrain | |type=terrain | ||
|types=satellite, hybrid, terrain | |types=satellite, hybrid, terrain | ||
Line 186: | Line 181: | ||
|showtitle=no | |showtitle=no | ||
|template=Map Balloon Template | |template=Map Balloon Template | ||
| | |kml={{#arraymap:{{#arrayprint:KMLlinks}}|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}|,}} | ||
}} | }} | ||
{{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [{{#replace: | {{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [{{#replace:http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#arrayprint:maintrail}}.kml&wpForReUpload=1|<nowiki> </nowiki>|_}} Upload new version] / [[:File:{{#arrayprint:maintrail}}.kml|KML File Page]] / [{{Create Profile Link|KML={{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|Title={{#arrayprint:maintrail}}}} Create Profile Chart] / [{{Create Map Link|KML={{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}}} gpsvisualizer Map]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}<br /></includeonly> |