Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(switch to searching for category:trails)
m (tweaks)
 
(19 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: {{{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)]]}}
  | mainlabel=Trails
  | mainlabel=Trails
  | ?Trail distance round trip#mi  
  | ?Trail Distance#mi  
  | ?City
  | ?City
  | ?Hike Time
  | ?Hike Time
  | ?Difficulty
  | ?Difficulty
  | ?Trail page needs
  | ?Allowed activities
| limit=10
  | ?Features
}}
  | limit=100
 
{{#ask: [[Category:Trails]]
{{#if: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
{{#if: {{{trail needs|}}}|[[Trail page needs::{{{trail needs}}}]]}}
{{#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)]]}}
  | ?Trailhead location
  | format=googlemaps
| width=80%
| height=500
}}
}}
</includeonly>
</includeonly>

Latest revision as of 14:25, 24 June 2023

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