Editing Template:Park trail list
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<noinclude>This returns a | <noinclude>This returns a table of the trails associated with the park page it is called on. | ||
More specifically, it lists the pages with [[:Category: | 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]]. | ||
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 8: | Line 8: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude> | |||
<includeonly>{{#compound_query: [[Category:Trail]] [[Park::{{{Park}}}]] | |||
{{# | ; mainlabel=- | ||
| format= | ; ?=Trail | ||
; ?Trail Distance#mi=Distance | |||
; ?Difficulty=Difficulty | |||
; ?Trail blaze=Blaze | |||
|[[-Has subobject::{{{Park}}}]] | |||
; mainlabel=- | |||
; ?Trail=Trail | |||
; ?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 | |||
| ?Trail Distance#mi | |||
| format= | | ?Difficulty | ||
| ?Trail blaze | |||
| mainlabel=- | |||
| format=table | |||
}}</includeonly> | }}</includeonly> |