Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(make it taller)
(Convert to new format)
Line 12: Line 12:


[[Category:Park Class Items]]
[[Category:Park Class Items]]
</noinclude><includeonly>{{#display_map:  
</noinclude><includeonly>{{#compound_query:[[Category:Trails]] [[Park::{{PAGENAME}}]];icon=MarkerT.png;?Trailhead location;?Difficulty;?Trail Distance #-n-p2;?Trail Marking
{{Park Map Marker List|Park={{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}} }}
|[[Category:Trail Stubs]] [[-Has subobject::{{PAGENAME}}]];icon=MarkerT.png;?Trailhead location;?Trail;?Difficulty;?Trail Distance #-n-p2;?Trail Marking
|type=terrain
|[[Category:Map Markers]] [[-Has subobject::{{PAGENAME}}]];icon=Marker2.png;?Has Marker Location;?Has Marker Title;?Has Marker Description
|width=auto
|format=googlemaps
|height=600
|width=auto
|kml={{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}} }}
|height=600
|showtitle=no
|template=Map Balloon Template
|kml={{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}
}}
{{#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 15:52, 14 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.