Template:Park trail list: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(fixes)
(changing to truly a list (and making a table template))
Line 1: Line 1:
<noinclude>This returns a table of the trails associated with the park page it is called on.
<noinclude>This returns a list of the trails associated with the park page it is called on.


More specifically, it lists the pages with [[:Category:Trail]] and the property [[Property:Park|Park]] set to the page name. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], and the [[Property:Trail blaze|Trail blaze]].
More specifically, it lists the pages with [[:Category:Trail]] and the property [[Property:Park|Park]] set to the page name.  


It should be called in the following format. Typically expected for the current page, but change as needed:
It should be called in the following format. Typically expected for the current page, but change as needed:
Line 10: Line 10:
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{{Park}}}]]  
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{{Park}}}]]  
| mainlabel=Park Trails
  | format=list
| ?Trail Distance#mi=Distance
| ?Difficulty=Difficulty
| ?Trail blaze=Blaze
|format=table
}}
And the following trails without dedicated pages
{{#ask: [[-Has subobject::Warriors Path State Park]]
| ?Trail=Park Trails
| ?Trail Distance#mi=Distance
| ?Difficulty=Difficulty
| ?Trail blaze=Blaze
| mainlabel=-
  | format=table
}}</includeonly>
}}</includeonly>

Revision as of 07:02, 26 April 2018

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

More specifically, it lists the pages with Category:Trail and the property Park set to the page name.

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

{{Park trail list|Park={{PAGENAME}}}}

Edit the page to see the template text.