Template:Infobox Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Trying auto park hide if empty)
(tweaking parks field)
Line 1: Line 1:
<noinclude>
<noinclude>This is the 'Infobox Trail' template. This template creates the 'sidebar' with info about each trail like the state, nearest city, nearest medical, coordinates of the tail head.
<!----
 
!
! This template creates the 'sidebar' with info about each trail like the  
! state, nearest city, nearest medical, coordinates of the tail head.
!
-->
This is the 'Infobox Trail' template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
Line 44: Line 38:
| width="130" | {{PAGENAME}}
| width="130" | {{PAGENAME}}
|-
|-
{{#if: {{{Park|}}}|{{!}}'''Park'''}}
{{#if: {{{Park|}}}|{{!}} Park}}
{{#if: {{{Park|}}}|{{!}}{{rel|Park|{{{Park|}}}}}}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}}}]]}}
|-
|-
! Nearest City
! Nearest City

Revision as of 20:02, 31 August 2015

This is the 'Infobox Trail' template. This template creates the 'sidebar' with info about each trail like the state, nearest city, nearest medical, coordinates of the tail head.

It should be called in the following format:

{{Infobox Trail
                     | Image Name = Placeholder.gif
                     | Park = Optional - should be name of a park without [[ ]] that has a page
                     | 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.