Template:Infobox Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(trying to get coordinates to work)
(Merging today's work with yesterday's finish - somehow the property sets were lost)
Line 47: Line 47:
|-
|-
! Nearest City
! Nearest City
| {{{City}}}
| [[City::{{{City|}}}]]
|-
|-
! State
! [[Property:State | State]]
| {{{State}}}
| [[State::{{{State}}}]]
|-
|-
! Trail Marking
! Trail Marking
Line 59: Line 59:
|-
|-
! [[ClubWIKI:Difficulty Rating| Difficulty Rating]]
! [[ClubWIKI:Difficulty Rating| Difficulty Rating]]
| {{{Difficulty Rating}}}
| [[Difficulty::{{{Difficulty Rating}}}]]
|-
|-
! Hiking Time
! Hiking Time
| {{{Hike Time}}} Hours
| [[Hike Time::{{{Hike Time}}} Hours]]
|-
|-
! Distance, round-trip
! Distance, round-trip
| {{{Distance}}} Miles
| [[Trail distance round trip::{{{Distance}}} Miles]]
|-
|-
! Elevation Gain
! Elevation Gain
| {{{Elevation Gain}}} Feet
| [[Elevation Gain::{{{Elevation Gain}}} Feet]]
|-
|-
! High Point
! High Point
| {{{High Point}}} Feet
| [[Trail High Point::{{{High Point}}} Feet]]
|-
|-
! Latitude
! Latitude
Line 91: Line 91:
|-
|-
| 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:{{{Latitude}}}, {{{Longitude}}}~{{PAGENAME}}
{{#display_map:{{{Latitude}}}, {{{Longitude}}}
|zoom=8
|zoom=8
|width=270px
|width=270px
Line 106: Line 106:
<!-- close outer table -->
<!-- close outer table -->
<!-- |} -->
<!-- |} -->
<!-- Set coordinates as SMW property -->
{{#set:
Trail head coordinates={{#lat_deg2dms: {{{Latitude}}}}},{{#long_deg2dms: {{{Longitude}}}}}
}}
</div>
</div>
</div>
</div>
</includeonly>
</includeonly>

Revision as of 07:47, 23 August 2015


This is the 'Infobox Trail' template. It should be called in the following format:

{{Infobox Trail
                     | Image Name = Placeholder.gif
                     | City = *
                     | State = *
                     | Marking = *
                     | Trail Use = <list names of other templates>
                     | Difficulty Rating = *
                     | Hike Time = *
                     | Distance = * 
                     | Elevation Gain = *
                     | High Point = *
                     | Latitude = *
                     | Longitude = *
                     | Medical = *
}}

Edit the page to see the template text.