Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m didn't work
Convert to GeoJson
Line 180: Line 180:
  ;?Has Marker Title
  ;?Has Marker Title
  ;?Has Marker Description
  ;?Has Marker Description
|format=googlemaps
|format=leaflet
|kmlrezoom={{#if: {{{Zoom|}}}|no|yes}}
|zoom={{{Zoom|}}}
|zoom={{#if: {{{Zoom|}}}|{{{Zoom|}}}}}
|layers=OpenTopoMap, OpenStreetMap
|types=satellite, hybrid, terrain
|width=auto
|width=auto
|height=600
|height=600
|showtitle=no
|template=Map Balloon Template
|template=Map Balloon Template
|kml={{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}
|geojson=GeoJson:{{#titleparts:{{#arrayprint:parkname}}}}
}}
}}
{{#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>
{{#if:{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} Download KML] / {{#ifexist:GeoJson:{{#titleparts:{{#arrayprint:parkname}}}}}}|[GeoJson:{{#titleparts:{{#arrayprint:parkname}}}}}} GeoJson Page] / [{{#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>

Revision as of 08:56, 20 September 2026

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.