Template:Park trail table: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (fix intro outro)
(allow links and change stub category)
Line 31: Line 31:
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=row
  |userparam=row
  |named args=yes
  |named args=yes
}}
}}
{{#ask: [[Category:Trail||Trails]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]
  | mainlabel=-
  | mainlabel=-
  | ?Trail=trail
  | ?Trail=trail
Line 44: Line 43:
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=row
  |userparam=row

Revision as of 10:07, 12 December 2018

This returns a table of the trails associated with the park page it is called on.

More specifically, it makes a table of the pages with Category:Trails and the property Park set to the page name. It also displays the properties Trail Distance in miles, the Difficulty, and the Property:Trail Marking.

If selected, it will also show any trail stubs created on the park page.

It should be called in the following format. Typically expected for the current page, but change as needed:

{{Park trail list|Park={{PAGENAME}}|Show stubs=yes/blank}}

Edit the page to see the template text.

Note: Site is in a transition from "Trail Blaze" to "Trail Marking" - searches for "Blaze" for now, but at some tipping point I will change this to "Marking"

Example output for Warriors' Path State Park:

Park TrailsDistanceDifficultyBlaze
Boneyard2.329 mi3.748 km <br />Medium
Boneyard Connector0.0445 mi0.0716 km <br />Easy
Connector0.28 mi0.451 km <br />Easy
Darwin's Connector0.1 mi0.161 km <br />Easy
Darwin's Revenge2.06 mi3.315 km <br />Medium
Devil's Backbone1.2 mi1.931 km <br />Medium
Fall Creek Loop0.92 mi1.481 km <br />Medium
Fawn Loop0.61 mi0.982 km <br />Easy
Holston Bluffs0.384 mi0.618 km <br />Easy
Lake Hollow0.56 mi0.901 km <br />Easy
Lake Road (Warriors Path State Park)0.84 mi1.351 km <br />Easy
Lakeshore0.31 mi0.499 km <br />Easy
Magic Carpet Ride0.204 mi0.328 km <br />Medium
Overlook0.73 mi1.175 km <br />Easy
Pawpaw0.561 mi0.903 km <br />Medium
Pawpaw Connector0.1 mi0.161 km <br />Easy
Ridge Top (Warriors Path State Park)0.48 mi0.772 km <br />Hard
Riverbank0.24 mi0.386 km <br />Easy
Rock City0.5 mi0.805 km <br />Medium
Sinking Waters1.75 mi2.816 km <br />Easy
Whitetail Alternate0.2 mi0.322 km <br />Medium
Whitetail Loop2.306 mi3.711 km <br />Medium
Woodland Ridge0.78 mi1.255 km <br />Medium
Zipline0.353 mi0.568 km <br />Easy