Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
No edit summary
m (tweaks)
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask: [[Category:Trails]]  
{{#ask: [[Category:Trails]]  
{{#if: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
{{#if: {{{trail uses|}}}|[[Allowed activities::{{{trail uses|}}}]]}}
{{#if: {{{trail needs|}}}|[[Trail page needs::{{{trail needs}}}]]}}
{{#if: {{{features|}}}|[[Features::{{{features|}}}]]}}
{{#if: {{{allowed activities|}}}|[[Allowed activities::{{{allowed activities}}}]]}}
{{#if: {{{park|}}}|[[Park::{{{park}}}]]}}
{{#if: {{{state|}}}|[[State::{{{state}}}]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | format=count
  | format=count
}} trail(s) match this search:
}} trail(s) match this search:


{{#ask: [[Category:Trails]]  
{{#ask: [[Category:Trails]]  
{{#if: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}})]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
{{#if: {{{trail uses|}}}|[[Allowed activities::{{{trail uses}}}]]}}
{{#if: {{{allowed activities|}}}|[[Allowed activities::{{{allowed activities}}}]]}}
{{#if: {{{features|}}}|[[Features::{{{features}}}]]}}
{{#if: {{{park|}}}|[[Park::{{{park}}}]]}}
{{#if: {{{state|}}}|[[State::{{{state}}}]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | mainlabel=Trails
  | mainlabel=Trails
  | ?Trail distance round trip#mi  
  | ?Trail Distance#mi  
  | ?City
  | ?City
  | ?Hike Time
  | ?Hike Time
  | ?Difficulty
  | ?Difficulty
  | limit=10
  | ?Allowed activities
}}
  | ?Features
getting this?
  | limit=100
{{#ask: [[Category:Trails]]
  | format = leaflet
  | ?Trailhead location
}}
}}
</includeonly>
</includeonly>

Latest revision as of 13:25, 24 June 2023

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