Template:Park trail miles: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Undo revision 6689 by Tim (talk))
m (tweak again)
Line 10: Line 10:
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
   | ?Trail Distance#mi-p2
   | ?Trail Distance#-n-p2
   | format=sum
   | format=sum
  }} miles</includeonly>
  }} miles</includeonly>

Revision as of 22:10, 25 April 2018

This returns the total mileage of trails assigned to the park page that this template is called on. Note: The template also returns the unit 'miles'.

More specifically, for pages with Category:Trail and the property Park set to the page name, it sums the values in property Trail Distance in miles and returns that value."

It should be called in the following format:

{{Park trail miles}}

Edit the page to see the template text.