Template:Park trail list: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
No edit summary
(giving up on combined table of pages and subs)
Line 9: Line 9:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude>
</noinclude>
<includeonly>{{#compound_query: [[Category:Trail]] [[Park::{{{Park}}}]]  
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{{Park}}}]]  
  ; mainlabel=-
  | mainlabel=Park Trails
  ; ?Trail Distance#mi=Distance
  | ?Trail Distance#mi=Distance
  ; ?=Trail
  | ?Difficulty=Difficulty
; ?Difficulty=Difficulty
  | ?Trail blaze=Blaze
; ?Trail blaze=Blaze
  |[[-Has subobject::{{{Park}}}]]
; ?Trail Distance#mi=Distance
; ?Trail
; ?Difficulty=Difficulty
; ?Trail blaze=Blaze
; mainlabel=-
  |format=table
  |format=table
}}
}}

Revision as of 00:18, 26 April 2018

This returns a table 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 also displays the properties Trail Distance in miles, the Difficulty, and the Trail blaze.

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.