Template:Park trail map: Difference between revisions

From TEHCC Wiki
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 stub
  |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>
{{#compound_query: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] [[Trailhead location::+]]
; ?Trailhead location
; icon = MarkerT.png
|[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] [[Parking location::+]]
; ?Parking location
; icon = MarkerA.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Parking]]
; ?Has Marker Location
; icon = MarkerA.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Photo spot]]
; ?Has Marker Location
; icon = MarkerB.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Waterfall]]
; ?Has Marker Location
; icon = MarkerC.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Other photo spot]]
; ?Has Marker Location
; icon = MarkerD.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Overlook]]
; ?Has Marker Location
; icon = MarkerE.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Shelter]]
; ?Has Marker Location
; icon = MarkerF.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Point of interest]]
; ?Has Marker Location
; icon = MarkerG.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Campground]]
; ?Has Marker Location
; icon = MarkerH.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Cave]]
; ?Has Marker Location
; icon = MarkerI.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Water crossing]]
; ?Has Marker Location
; icon = MarkerJ.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Bench]]
; ?Has Marker Location
; icon = MarkerK.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Trail bridge]]
; ?Has Marker Location
; icon = MarkerL.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Comm tower]]
; ?Has Marker Location
; icon = MarkerM.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Cemetery]]
; ?Has Marker Location
; icon = MarkerN.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Playground]]
; ?Has Marker Location
; icon = MarkerO.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Summit]]
; ?Has Marker Location
; icon = MarkerP.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Toilet]]
; ?Has Marker Location
; icon = MarkerQ.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Tunnel]]
; ?Has Marker Location
; icon = MarkerR.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Picnic spot]]
; ?Has Marker Location
; icon = MarkerS.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Trail sign]]
; ?Has Marker Location
; icon = MarkerT.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Road crossing]]
; ?Has Marker Location
; icon = MarkerU.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Old structure]]
; ?Has Marker Location
; icon = MarkerV.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Horseback]]
; ?Has Marker Location
; icon = MarkerW.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Alien landing]]
; ?Has Marker Location
; icon = MarkerX.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Rest]]
; ?Has Marker Location
; icon = MarkerY.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Skiing]]
; ?Has Marker Location
; icon = Marker1.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Tower]]
; ?Has Marker Location
; icon = Marker2.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Power line]]
; ?Has Marker Location
; icon = powerline.png
|[[-Has subobject::{{PAGENAME}}]] [[Subobject Type::Marker]] [[Is Marker Type::Blowdown]]
; ?Has Marker Location
; icon = treedown.png
| format = googlemaps
| width = auto
| height = 550
| type = terrain
| 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 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.