Template:Trail Search: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(specify google maps)
(Add table limit and add new fields to search on)
Line 5: Line 5:
{{#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: {{{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)]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | format=count
  | format=count
Line 13: Line 16:
{{#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: {{{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)]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | mainlabel=Trails
  | mainlabel=Trails
Line 20: Line 26:
  | ?Difficulty
  | ?Difficulty
  | ?Trail page needs
  | ?Trail page needs
| limit=10
}}
}}


Line 26: Line 33:
{{#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: {{{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)]]}}
{{#if: {{{distance max|}}}|[[Trailhead location::{{{location coordinates}}} ({{{distance max}}} mi)]]}}
  | ?Trailhead location
  | ?Trailhead location

Revision as of 11:06, 1 December 2016

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