Template:Park trail table: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (further text tweak)
(Add trail comment field)
Line 1: Line 1:
<noinclude>This returns a table of the trails associated with the park page it is called on along with any assigned Trail Stubs.
<noinclude>This returns a table of the trails associated with the park page it is called on along with any assigned Trail Stubs.


More specifically, it makes a table of the pages with either the [[:Category:Trail]] (legacy) or [[:Category:Trails]] (revised categorization) and the property [[Property:Park|Park]] set to the page name. It then combines it with a list of any Trail Stubs assigned to the Park for which the template was ran. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], and the [[Property:Trail Marking]]. To define the table format (and make it easily format in the desired manner) the queries use the Template [[Template:Park trail table template|Park trail table template]].
More specifically, it makes a table of the pages with either the [[:Category:Trail]] (legacy) or [[:Category:Trails]] (revised categorization) and the property [[Property:Park|Park]] set to the page name. It then combines it with a list of any Trail Stubs assigned to the Park for which the template was ran. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], the [[Property:Trail Marking]], and a brief [[Property:Trail Comment]]. To define the table format (and make it easily format in the desired manner) the queries use the Template [[Template:Park trail table template|Park trail table template]].


It will also show any trail stubs created on the park page.  
It will also show any trail stubs created on the park page.  
Line 18: Line 18:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Comment=comment
  | ?Allowed activities=use
  | ?Allowed activities=use
  |format=plainlist
  |format=plainlist
Line 31: Line 32:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Comment=comment
  | ?Park=park
  | ?Park=park
  |format=plainlist
  |format=plainlist
Line 48: Line 50:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Comment=comment
  | ?Allowed activities=use
  | ?Allowed activities=use
  |format=plainlist
  |format=plainlist
Line 61: Line 64:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Comment=comment
  | ?Park=park
  | ?Park=park
  |format=plainlist
  |format=plainlist

Revision as of 14:08, 24 November 2019

This returns a table of the trails associated with the park page it is called on along with any assigned Trail Stubs.

More specifically, it makes a table of the pages with either the Category:Trail (legacy) or Category:Trails (revised categorization) and the property Park set to the page name. It then combines it with a list of any Trail Stubs assigned to the Park for which the template was ran. It also displays the properties Trail Distance in miles, the Difficulty, the Property:Trail Marking, and a brief Property:Trail Comment. To define the table format (and make it easily format in the desired manner) the queries use the Template Park trail table template.

It will also show any trail stubs created on the park page.

It should be called in the following format with the optional Park parameter (it defaults to using the name of the page from which it is run). Typically expected for the current page, but change as needed:

{{Park trail table|Park={{PAGENAME}}}}

Edit the page to see the template text.

Example output for Warriors' Path State Park:

Park Trails Distance Difficulty Marking Usage Highlight
[[Boneyard|Boneyard]] 2.33 mi3.75 km <br /> Medium Black Triangle

HikingBiking

[[Boneyard Connector|Boneyard Connector]] 0.04 mi0.07 km <br /> Easy None

BikingHiking

[[Connector|Connector]] 0.28 mi0.45 km <br /> Easy None

HikingFishing

[[Darwin's Connector|Darwin's Connector]] 0.10 mi0.16 km <br /> Easy None

HikingBiking

[[Darwin's Revenge|Darwin's Revenge]] 2.06 mi3.32 km <br /> Medium Black Diamond

HikingBikingGeocaching

[[Devil's Backbone|Devil's Backbone]] 1.20 mi1.93 km <br /> Medium Red

HikingFishingGeocaching

[[Fall Creek Loop|Fall Creek Loop]] 0.92 mi1.48 km <br /> Medium Orange

HikingGeocaching

[[Fawn Loop|Fawn Loop]] 0.61 mi0.98 km <br /> Easy Yellow

HikingBiking

[[Holston Bluffs|Holston Bluffs]] 0.38 mi0.62 km <br /> Easy White

Hiking

[[Lake Hollow|Lake Hollow]] 0.56 mi0.90 km <br /> Easy None

HikingFishing

[[Lake Road (Warriors Path State Park)|Lake Road 0.84 mi1.35 km <br /> Easy None

BikingHiking

[[Lakeshore|Lakeshore]] 0.31 mi0.50 km <br /> Easy Black

HikingFishing

[[Magic Carpet Ride|Magic Carpet Ride]] 0.20 mi0.33 km <br /> Medium None

BikingHiking

[[Overlook|Overlook]] 0.73 mi1.17 km <br /> Easy None

Hiking

[[Pawpaw|Pawpaw]] 0.56 mi0.90 km <br /> Medium Blue

BikingHiking

[[Pawpaw Connector|Pawpaw Connector]] 0.10 mi0.16 km <br /> Easy None

HikingBiking

[[Ridge Top (Warriors Path State Park)|Ridge Top 0.48 mi0.77 km <br /> Hard None

BikingHiking

[[Riverbank|Riverbank]] 0.24 mi0.39 km <br /> Easy Blue

HikingFishing

[[Rock City|Rock City]] 0.50 mi0.80 km <br /> Medium Black

BikingHiking

[[Sinking Waters|Sinking Waters]] 1.75 mi2.82 km <br /> Easy Green, Yellow, Blue

Hiking

[[Whitetail Alternate|Whitetail Alternate]] 0.20 mi0.32 km <br /> Medium None

HikingBiking

[[Whitetail Loop|Whitetail Loop]] 2.31 mi3.71 km <br /> Medium Blue Triangle

HikingBiking

[[Woodland Ridge|Woodland Ridge]] 0.78 mi1.26 km <br /> Medium None

HikingHorses

[[Zipline|Zipline]] 0.35 mi0.57 km <br /> Easy None

BikingHiking