Template:Park trail map: Difference between revisions
Jump to navigation
Jump to search
(converting - mid save) |
(getting closer) |
||
Line 13: | Line 13: | ||
[[Category:Park Class Items]] | [[Category:Park Class Items]] | ||
</noinclude><includeonly><display_map center="36.514327,-82.478399" type="terrain" zoom="15" width="auto" height="500" gkml="{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}"> | </noinclude><includeonly><display_map center="36.514327,-82.478399" type="terrain" zoom="15" width="auto" height="500" gkml="{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}"> | ||
{{#show: {{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }} |?Parking location }}~Parking~Main location for parking~MarkerA.png | |||
{{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | {{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | ||
|mainlabel=title | |mainlabel=title | ||
Line 24: | Line 25: | ||
|userparam=trail | |userparam=trail | ||
|named args=yes | |named args=yes | ||
}}{{#ask: [[Category:Trail Stubs]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | }} | ||
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | |||
| mainlabel=- | | mainlabel=- | ||
| ?Trail=title | | ?Trail=title | ||
Line 35: | Line 37: | ||
|link=none | |link=none | ||
|template=Map Marker Template | |template=Map Marker Template | ||
|userparam=trail | |userparam=trail | ||
|named args=yes | |named args=yes | ||
}}{{#ask: [[Category:Map Markers]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | }} | ||
{{#ask: [[Category:Map Markers]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | |||
| mainlabel=- | | mainlabel=- | ||
| ?Has Marker Location=location | | ?Has Marker Location=location | ||
Line 51: | Line 54: | ||
}} | }} | ||
</display_map> | </display_map> | ||
{{#if:{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}|[{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}} Download KML]|[[File:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml{{!}}Upload KML]]}}</includeonly> | {{#if:{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}|[{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}} Download KML]|[[File:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml{{!}}Upload KML]]}}</includeonly> |
Revision as of 13:26, 13 December 2018
This returns a map of the trails associated with the park page it is called on.
More specifically, it maps the coordinates in Property:Trailhead location from the pages with Category:Trails and the property Park set to the page name or other passed page name.
It should be called in the following format:
{{Park trail map|Park={{PAGENAME}}}}
Edit the page to see the template text.
The template is too detailed to show an example. See Warriors' Path State Park map for an example.