Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add results map)
m (tweaks)
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This is the 'Trail Search' template. It should be called via the [[Special:RunQuery/Trail Search]] form.
<noinclude>This is the 'Trail Search' template. It should be called via the [[Special:RunQuery/Trail Search]] form.
[[Category:Search Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask: [[Category:Trail]]  
{{#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: {{{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:Trail]]  
{{#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: {{{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
}}
  | ?Features
 
  | limit=100
{{#ask: [[Category:Trail]]
{{#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: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | ?Trailhead location
| format=map
| width=80%
  | height=500
}}
}}
</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.