Template:Park hike plan list: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (Tim moved page Park hike plan list to Template:Park hike plan list without leaving a redirect: whoops!)
m (add template category)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This returns a table of the hike plans associated with the park page it is called on.
<noinclude>This returns a table of the hike plans associated with the park page it is called on.


More specifically, it lists the pages with [[:Category:Hike Plan]] and the property [[Property:Park|Park]] set to the page name. It also displays the properties [[Property:Hike distance|Hike distance]] in miles and the [[Property:Hike description|Hike description]].
More specifically, it lists the pages with [[:Category:Hike Plan]] and the property [[Property:Park|Park]] set to the page name. It also displays the properties [[Property:Hike distance|Hike distance]] in miles, the [[Property:Hike description|Hike description]], and the [[Property:Trail|Trails]] used in the plan.


It should be called in the following format:
It should be called in the following format:
Line 8: Line 8:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
Example output for Bays Mountain Park:
{{#ask: [[Category:Hike Plan]] [[Park::Bays Mountain Park]]
| mainlabel=Hike plans
| ?Hike distance#mi
| ?Hike description
| ?Trail=Trails used
| intro=The following hike plans have been created within the park
}}
[[Category:Park Class Items]]
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Hike Plan]] [[Park::{{PAGENAME}}]]  
<includeonly>{{#ask: [[Category:Hike Plan]] [[Park::{{PAGENAME}}]]  
Line 13: Line 22:
  | ?Hike distance#mi  
  | ?Hike distance#mi  
  | ?Hike description
  | ?Hike description
| ?Trail=Trails used
| intro=The following hike plans have been created within the park
}}</includeonly>
}}</includeonly>

Latest revision as of 11:17, 20 November 2018

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

More specifically, it lists the pages with Category:Hike Plan and the property Park set to the page name. It also displays the properties Hike distance in miles, the Hike description, and the Trails used in the plan.

It should be called in the following format:

{{Park hike plan list}}

Edit the page to see the template text. Example output for Bays Mountain Park:

The following hike plans have been created within the park

Hike plansHike distanceHike descriptionTrails used
Bays 15 Miler14.8 mi23.818 km <br />The route used by Skelton Law Racing in September every yearAzalea
Lakeside Trail
River Mountain Road
Lake Road (Bays Mountain Park)
Pretty Ridge Trail
Back Hollow Road
Indian Pipes Trail
Kiner Hollow Trail
Barred Owl Trail
Bays Structure Tour11 mi17.703 km <br />A long hike to see all of the abandoned homes, cabins, and barns within the parkLakeside Trail
Lake Road (Bays Mountain Park)
Pretty Ridge Trail
Front Hollow Road
Back Hollow Road
Laurel Run Trail
Kiner Hollow Trail
Cherry Knobs