Editing Template:Trail
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 38: | Line 38: | ||
-->{{#arraydefine:nearmiles|{{#number_format:{{#ask: [[Category:Trails]][[Trailhead location::!{{{Trailhead location|}}}]][[Trailhead location::{{{Trailhead location|}}} ({{#arrayprint:neardistance}})]]||?Trail Distance#mi|format=sum}}|1}}}}<!--Now on with the show | -->{{#arraydefine:nearmiles|{{#number_format:{{#ask: [[Category:Trails]][[Trailhead location::!{{{Trailhead location|}}}]][[Trailhead location::{{{Trailhead location|}}} ({{#arrayprint:neardistance}})]]||?Trail Distance#mi|format=sum}}|1}}}}<!--Now on with the show | ||
-->{{#arraydefine:reportcount|{{#ask: [[Category:Trip Reports]][[Trail::{{PAGENAME}}]]|format=count}}}}<!-- | -->{{#arraydefine:reportcount|{{#ask: [[Category:Trip Reports]][[Trail::{{PAGENAME}}]]|format=count}}}}<!-- | ||
-->{| class="Infobox_Trail" | -->{| class="Infobox_Trail" | ||
! style="text-align: center;" colspan="2" |<div style="float: left;">{{List It Button|Page={{PAGENAME}}|Text=List It|Exist Text=Edit List}}</div><span style="font-size: larger;">{{PAGENAME}}</span><div style="float: right;">{{Trip Report Button|Page={{PAGENAME}}|Text=Hiked It}}</div> | ! style="text-align: center;" colspan="2" |<div style="float: left;">{{List It Button|Page={{PAGENAME}}|Text=List It|Exist Text=Edit List}}</div><span style="font-size: larger;">{{PAGENAME}}</span><div style="float: right;">{{Trip Report Button|Page={{PAGENAME}}|Text=Hiked It}}</div> | ||
Line 94: | Line 93: | ||
| [[Elevation Gain::{{{Elevation Gain}}}]] / ([[Elevation Loss::{{{Elevation Loss}}}]]) – [[Elevation Change Direction::{{{Elevation Change Direction}}}]] | | [[Elevation Gain::{{{Elevation Gain}}}]] / ([[Elevation Loss::{{{Elevation Loss}}}]]) – [[Elevation Change Direction::{{{Elevation Change Direction}}}]] | ||
|- | |- | ||
! Trip Reports{{#info: From user "hiked it" submissions | ! Trip Reports{{#info: From user "hiked it" submissions | info }} | ||
| {{#ifeq | | {{#queryformlink:form=Trip Report Search|link text={{#ifeq={{#arrayprint:reportcount}}|0|No hikes logged yet|{{#arrayprint:reportcount}} logged hikes}}|query string=Trip_Report_Table[trail]={{PAGENAME}}&Trip_Report_Table[SortOrder]=desc&_run}}|- | ||
|- | ! Nearby{{#info: Within {{#arrayprint:neardistance}}<br/>Click link to view list | info }} | ||
! Nearby{{#info: Within {{#arrayprint:neardistance}}<br />Click link to view list | info }} | |||
| {{#ifeq:{{#arrayprint:nearcount}}|0|No other Trails within {{#arrayprint:neardistance}}|{{#queryformlink:form=Trail Search|link text={{#arrayprint:nearcount}} trails / {{#arrayprint:nearmiles}} mi of trail|query string=Trail Search[distance max]={{#arrayprint:neardistance}}&Trail Search[location coordinates]={{{Trailhead location|}}}&_run}}}} | | {{#ifeq:{{#arrayprint:nearcount}}|0|No other Trails within {{#arrayprint:neardistance}}|{{#queryformlink:form=Trail Search|link text={{#arrayprint:nearcount}} trails / {{#arrayprint:nearmiles}} mi of trail|query string=Trail Search[distance max]={{#arrayprint:neardistance}}&Trail Search[location coordinates]={{{Trailhead location|}}}&_run}}}} | ||
|- | |- | ||
! Parking | ! Parking | ||
| [[Parking location::{{{Parking location|}}}]] [ | | [[Parking location::{{{Parking location|}}}]] [http://maps.google.com/maps?q={{#replace:{{{Parking location|}}}}} Map] | ||
|- | |- | ||
! Trailhead | ! Trailhead | ||
| [[Trailhead location::{{{Trailhead location|}}}]] [ | | [[Trailhead location::{{{Trailhead location|}}}]] [http://maps.google.com/maps?q={{#replace:{{{Trailhead location|}}}}} Map] | ||
|- | |- | ||
| colspan=2 id="gmap" border=0 height="180" valign="top" style="margin-top: 20px;" | | | colspan=2 id="gmap" border=0 height="180" valign="top" style="margin-top: 20px;" | | ||
{{# | {{#display_map:{{{Parking location|}}}~{{#titleparts:{{PAGENAME}}}}~Main Parking Location|zoom=8|width=100%|height=180px|type=roadmap|controls=}} | ||
|- | |- | ||
! style="text-align: center;" colspan="2" | <span style="font-size: larger;">[ | ! style="text-align: center;" colspan="2" | <span style="font-size: larger;">[http://maps.google.com/maps?q={{#replace:{{{Parking location|}}}}} Show In Google Maps]</span> | ||
|}{{#if:{{filepath:{{#titleparts:{{PAGENAME}}}}.kml}}|{{#set:Has KML Link={{filepath:{{#titleparts:{{PAGENAME}}}}.kml}} }} }}[[Category:Trails]]</includeonly> | |}{{#if:{{filepath:{{#titleparts:{{PAGENAME}}}}.kml}}|{{#set:Has KML Link={{filepath:{{#titleparts:{{PAGENAME}}}}.kml}} }} }}[[Category:Trails]]</includeonly> |