Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (plural category)
m (didn't work)
 
(39 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.
</noinclude>
 
<includeonly>{{#compound_query: [[Category:Trails]] [[Park::{{PAGENAME}}]] [[Trailhead location::+]]
The template is too detailed to show an example. See [[Warriors' Path State Park]] map for an example.
  ; ?Trailhead location
 
  ; icon = MarkerT.png
[[Category:Park Class Items]]
|[[Category:Trails]] [[Park::{{PAGENAME}}]] [[Parking location::+]]
</noinclude><includeonly>{{#arraydefine:parkname|{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}{{#compound_query:[[Category:Parks]] [[{{#arrayprint:parkname}}]]
  ; ?Parking location
;icon=MarkerA.png
  ; icon = MarkerA.png
;?Main Location
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Parking]]
;?Park Type
; ?Has Marker Location
;?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}}]]
;icon=MarkerT.png
;?Trailhead location
  ;?Trail
;?Difficulty
;?Trail Distance #-n-p2
  ;?Trail Marking
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Parking]]
  ; icon = MarkerA.png
  ; icon = MarkerA.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Photo spot]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Photo spot]]
  ; icon = MarkerB.png
  ; icon = MarkerB.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Waterfall]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Waterfall]]
  ; icon = MarkerC.png
  ; icon = MarkerC.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Other photo spot]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Other photo spot]]
  ; icon = MarkerD.png
  ; icon = MarkerD.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Overlook]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Overlook]]
  ; icon = MarkerE.png
  ; icon = MarkerE.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Shelter]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Shelter]]
  ; icon = MarkerF.png
  ; icon = MarkerF.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Point of interest]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Point of interest]]
  ; icon = MarkerG.png
  ; icon = MarkerG.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Campground]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Campground]]
  ; icon = MarkerH.png
  ; icon = MarkerH.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Cave]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cave]]
  ; icon = MarkerI.png
  ; icon = MarkerI.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Water crossing]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Water crossing]]
  ; icon = MarkerJ.png
  ; icon = MarkerJ.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Bench]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Bench]]
  ; icon = MarkerK.png
  ; icon = MarkerK.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Trail bridge]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail bridge]]
  ; icon = MarkerL.png
  ; icon = MarkerL.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Comm tower]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Comm tower]]
  ; icon = MarkerM.png
  ; icon = MarkerM.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Cemetery]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cemetery]]
  ; icon = MarkerN.png
  ; icon = MarkerN.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Playground]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Playground]]
  ; icon = MarkerO.png
  ; icon = MarkerO.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Summit]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Summit]]
  ; icon = MarkerP.png
  ; icon = MarkerP.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Toilet]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Toilet]]
  ; icon = MarkerQ.png
  ; icon = MarkerQ.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Tunnel]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tunnel]]
  ; icon = MarkerR.png
  ; icon = MarkerR.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Picnic spot]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Picnic spot]]
  ; icon = MarkerS.png
  ; icon = MarkerS.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Trail sign]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail sign]]
  ; icon = MarkerT.png
  ; icon = MarkerT.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Road crossing]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Road crossing]]
  ; icon = MarkerU.png
  ; icon = MarkerU.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Old structure]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Old structure]]
  ; icon = MarkerV.png
  ; icon = MarkerV.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Horseback]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Horseback]]
  ; icon = MarkerW.png
  ; icon = MarkerW.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Alien landing]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Alien landing]]
  ; icon = MarkerX.png
  ; icon = MarkerX.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Rest]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Rest]]
  ; icon = MarkerY.png
  ; icon = MarkerY.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Skiing]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Skiing]]
  ; icon = Marker1.png
  ; icon = Marker1.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Tower]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tower]]
  ; icon = Marker2.png
  ; icon = Marker2.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Power line]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Power line]]
  ; icon = powerline.png
  ; icon = powerline.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Blowdown]]
;?Has Marker Location
; ?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Blowdown]]
  ; icon = treedown.png
  ; icon = treedown.png
  | format = googlemaps
  ;?Has Marker Location
| width = auto
;?Has Marker Title
| height = 550
;?Has Marker Description
| type = terrain
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Ranger Station]]
| kml={{filepath:{{#titleparts:{{PAGENAME}}}}.kml}}
; icon = Rangerstation.png
;?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|format=googlemaps
|kmlrezoom={{#if: {{{Zoom|}}}|no|yes}}
|zoom={{#if: {{{Zoom|}}}|{{{Zoom|}}}}}
|types=satellite, hybrid, terrain
|width=auto
|height=600
|showtitle=no
|template=Map Balloon Template
|kml={{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}
}}
}}
{{#if:{{filepath:{{#titleparts:{{PAGENAME}}}}.kml}}|[{{filepath:{{#titleparts:{{PAGENAME}}}}.kml}} Download KML]|[[File:{{#titleparts:{{PAGENAME}}}}.kml{{!}}Upload KML]]}}</includeonly>
{{#if:{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} Download KML] / [{{#replace:http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#arrayprint:parkname}}.kml&wpForReUpload=1|<nowiki> </nowiki>|_}} Upload new version] / [[:File:{{#titleparts:{{#arrayprint:parkname}}}}.kml|KML File Page]]|[[File:{{#titleparts:{{#arrayprint:parkname}}}}.kml{{!}}Upload KML]]}}</includeonly>

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.