Template:Park trail miles: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This returns the total mileage of trails assigned to the park page that this template is called on. More specifically, for pages with Category:Trail and the...")
 
(lazy copy and paste!)
Line 11: Line 11:
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
  | ?Trail distance round trip#mi
  | ?Trail distance round trip#mi
  | format=count
  | format=sum
}}</includeonly>
}}</includeonly>

Revision as of 08:34, 11 September 2015

This returns the total mileage of trails assigned to the park page that this template is called on.

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

It should be called in the following format:

{{Park trail sum}}

Edit the page to see the template text.