Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(units now come with distance parameter)
(add search to counter)
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
{{#ask: [[Category:Trails]]  
{{#ask: [[Category:Trails]]  
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{trail uses|}}}|[[Allowed activities::{{{trail uses}}}]]}}
{{#if: {{{features|}}}|[[Features::{{{features}}}]]}}
  | format=count
  | format=count
}} trail(s) match this search:
}} trail(s) match this search:
Line 9: Line 11:
{{#ask: [[Category:Trails]]  
{{#ask: [[Category:Trails]]  
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{trail uses|}}}|[[Allowed activities::{{{trail uses}}}]]}}
{{#if: {{{features|}}}|[[Features::{{{features}}}]]}}
  | mainlabel=Trails
  | mainlabel=Trails
  | ?Trail Distance#mi  
  | ?Trail Distance#mi  
Line 14: Line 18:
  | ?Hike Time
  | ?Hike Time
  | ?Difficulty
  | ?Difficulty
| ?Allowed activities
| ?Features
  | limit=100
  | limit=100
}}
}}
</includeonly>
</includeonly>

Revision as of 14:20, 24 June 2023

This is the 'Trail Search' template. It should be called via the Special:RunQuery/Trail Search form.