Editing Template:Park trail table

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 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]], the [[Property:Trail Marking|Trail Marking]], and a brief [[Property:Trail Highlight|Trail Highlight]]. 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 11: Line 11:
Edit the page to see the template text.
Edit the page to see the template text.


Example output for [[Rocky Fork State Park]]:  
Example output for Warriors' Path State Park:  
{{Park trail table template|#userparam=intro}}
{{Park trail table template|#userparam=intro}}
{{#ask:[[Category:Trail||Trails]] [[Park::Rocky Fork State Park]]
{{#ask:[[Category:Trail||Trails]] [[Park::Warriors' Path State Park]]
  |mainlabel=trail
  |mainlabel=trail
  | ?Trail Distance#mi-p2=distance
  | ?Trail Distance#mi-p2=distance
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
  | ?Trail Highlight=highlight
  | ?Trail Comment=comment
  | ?Allowed activities=use
  | ?Allowed activities=use
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=row
  |userparam=row
  |named args=yes
  |named args=yes
}}
}}
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::Rocky Fork State Park]]
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::Warriors' Path State Park]]
  | mainlabel=-
  | mainlabel=-
  | ?Trail=trail
  | ?Trail=trail
Line 33: Line 32:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
  | ?Trail Highlight=highlight
  | ?Trail Comment=comment
  | ?Park=park
  | ?Park=park
  |format=plainlist
  |format=plainlist
Line 51: Line 50:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
  | ?Trail Highlight=highlight
  | ?Trail Comment=comment
  | ?Allowed activities=use
  | ?Allowed activities=use
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=row
  |userparam=row
Line 66: Line 64:
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
  | ?Trail Highlight=highlight
  | ?Trail Comment=comment
  | ?Park=park
  | ?Park=park
  |format=plainlist
  |format=plainlist
Please note that all contributions to TEHCC Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see TEHCC Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)