Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (add template category)
(maps will not show on run queries)
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:
[[Category:Search Templates]]
[[Category:Search Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask: [[Category:Trail]]  
{{#ask: [[Category:Trails]]  
{{#if: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
Line 13: Line 13:
}} 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: {{{length min|}}}|[[Trail distance round trip::>{{{length min}}}]]}}
{{#if: {{{length max|}}}|[[Trail distance round trip::<{{{length max}}}]]}}
{{#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: {{{allowed activities|}}}|[[Allowed activities::{{{allowed activities}}}]]}}
{{#if: {{{park|}}}|[[Park::{{{park}}}]]}}
{{#if: {{{park|}}}|[[Park::{{{park}}}]]}}
Line 26: Line 25:
  | ?Hike Time
  | ?Hike Time
  | ?Difficulty
  | ?Difficulty
| ?Trail page needs
  | limit=10
  | limit=10
}}
{{#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: {{{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>

Revision as of 10:39, 1 August 2020

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