Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(change retrieved property)
m (didn't work)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Park trail map|Park={{PAGENAME}}}}
{{Park trail map|Park={{PAGENAME}}|Zoom=<nothing will kmlrezoom, number will zoom to that level}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
Line 14: Line 14:
</noinclude><includeonly>{{#arraydefine:parkname|{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}{{#compound_query:[[Category:Parks]] [[{{#arrayprint:parkname}}]]
</noinclude><includeonly>{{#arraydefine:parkname|{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}{{#compound_query:[[Category:Parks]] [[{{#arrayprint:parkname}}]]
  ;icon=MarkerA.png
  ;icon=MarkerA.png
  ;?Parking location
  ;?Main Location
  ;?Park Type
  ;?Park Type
  ;?Park Website
  ;?Park Website
|[[Category:Trails]] [[Park::{{#arrayprint:parkname}}]]
;icon=MarkerT.png
;?Trailhead location
;?Difficulty
;?Trail Distance #-n-p2
;?Trail Marking
|[[Category:Trail Stubs]] [[-Has subobject::{{#arrayprint:parkname}}]]
|[[Category:Trail Stubs]] [[-Has subobject::{{#arrayprint:parkname}}]]
  ;icon=MarkerT.png
  ;icon=MarkerT.png
Line 175: Line 181:
  ;?Has Marker Description
  ;?Has Marker Description
|format=googlemaps
|format=googlemaps
|kmlrezoom=yes
|kmlrezoom={{#if: {{{Zoom|}}}|no|yes}}
|zoom={{#if: {{{Zoom|}}}|{{{Zoom|}}}}}
|types=satellite, hybrid, terrain
|types=satellite, hybrid, terrain
|width=auto
|width=auto

Latest revision as of 08:24, 9 May 2020

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}}|Zoom=<nothing will kmlrezoom, number will zoom to that level}}

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.