Difference between revisions of "Template:Trail Search"

From TEHCC Wiki
Jump to navigation Jump to search
(leanout template)
(units now come with distance parameter)
 
Line 3: Line 3:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#ask: [[Category:Trails]]  
 
{{#ask: [[Category:Trails]]  
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
+
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
 
  | format=count
 
  | format=count
 
}} trail(s) match this search:
 
}} trail(s) match this search:
  
 
{{#ask: [[Category:Trails]]  
 
{{#ask: [[Category:Trails]]  
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
+
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
 
  | mainlabel=Trails
 
  | mainlabel=Trails
 
  | ?Trail Distance#mi  
 
  | ?Trail Distance#mi  

Latest revision as of 13:17, 1 August 2020

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