Template:Park: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Let's try it on features now)
(change to https)
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Park" template. It is typically populated from the [[Form:Park]].
This is the "Park" template. It is typically populated from the [[Form:Park]].
<p>It should be called in the following format:
<p>It should be called in the following format ('''remember to delete unused fields after the '=' or delete the entire row'''):
<pre>
<pre>
{{Park
{{Park
|Park Type=
|Banner Image = pick a trail tagged photo, if left blank will search for pagename Banner.jpg
|Activities=
|Park Type=
|Features=
|City=
|Lodging Types=
|Park Website=
|Camping Amenities=
|Trail Map Link=
|City=
|Entrance Fee=
|State=
|Entrance Fee Type=
|Area=
|Activities=
|Operated By=
|Features=
|Parking=
|Amenities=
|Park Trail Count=
|Park Trail Miles=
|Lodging Types=
|Camping Amenities=
|Area=
|Operated By=
|Main Location=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
[[Category:Park Class Items]]
</noinclude><includeonly>{| style="width: 350px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
</noinclude><includeonly>{| style="width: 350px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
! style="text-align: center; background-color:#ccccff;" 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>
|-
|-
| colspan=2 border=0 height="200" align="center" valign="top" | {{#ifexist: Media:{{PAGENAME}} Banner.jpg|[[File:{{PAGENAME}} Banner.jpg|350px]]|<div style="width:250px"><div class="pops" style="width:200px;height:200px;line-height:250px;text-align:center;border: 1px solid #404040">''[[media:{{PAGENAME}} Banner.jpg|Click here to upload a picture]]''</div></div>}}
| colspan=2 border=0 height="200" align="center" valign="top" | {{#if: {{{Banner Image|}}}|[[{{{Banner Image|}}}|350px]]|{{#ifexist: Media:{{PAGENAME}} Banner.jpg|[[File:{{PAGENAME}} Banner.jpg|350px]]|<div style="width:250px"><div class="pops" style="width:200px;height:200px;line-height:250px;text-align:center;border: 1px solid #404040">''[[media:{{PAGENAME}} Banner.jpg|Click here to upload a picture]]''</div></div>}}}}
|-
|-
! style="text-align: center; background-color:#ccccff; height: 1em;" colspan="2" |  
! style="text-align: center; background-color:#ccccff; height: 1em;" colspan="2" |  
|-
|-
! style="text-align: left; background-color:#ccccff;" | Park Type
! style="text-align: left; width: 125px; background-color:#ccccff;" | Park Type
| [[Park Type::{{{Park Type|}}}]]  
| [[Park Type::{{{Park Type|}}}]]  
|-
|-
! style="text-align: left; background-color:#ccccff;" | City
! style="text-align: left; background-color:#ccccff;" | Located
| [[City::{{{City|}}}]]  
| {{#ifexist:{{{City|}}}|[[City::{{{City|}}}]], [[State::{{#show: {{{City|}}}|?Located In|link=none}}]]|{{#formredlink:target={{{City|}}}|form=Region}}{{#set:City={{{City|}}}}}}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | State
! style="text-align: left; background-color:#ccccff;" | External Links
| [[State::{{{State|}}}]]
|{{#if: {{{Park Website|}}}|[{{{Park Website|}}} Official Website]{{#set:Park Website={{{Park Website|}}}}}}}
{{#if: {{{Trail Map Link|}}}|[{{{Trail Map Link|}}} Official Trail Map]{{#set:Trail Map Link={{{Trail Map Link|}}}}}}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | Activities
! style="text-align: left; background-color:#ccccff;" | Entrance Fee
| {{Activity Icons|Activities={{{Activities|}}}}}{{#set:Allowed activities={{{Activities|}}}|+sep=,}}
|{{#switch: {{{Entrance Fee Type|}}}
| None = None{{#set:Entrance Fee=0}}{{#set:Entrance Fee Type=None}}
| per vehicle|per person = ${{{Entrance Fee|}}} {{{Entrance Fee Type|}}}{{#set:Entrance Fee={{{Entrance Fee|}}}}}{{#set:Entrance Fee Type={{{Entrance Fee Type|}}}}}
| #default = Unknown
}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | Features
! style="text-align: left; background-color:#ccccff;" | [[Template:Auto List to Icons#activities|Activities]]{{#info: Things to do at the park | info }}
| {{Activity Icons|Activities={{{Features|}}}}}{{#set:Allowed activities={{{Features|}}}|+sep=,}}
| {{#if: {{{Activities|}}}|{{Auto List to Icons|List={{{Activities|}}}}}{{#set:Allowed activities={{{Activities|}}}|+sep=,}}}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | Lodging Types
! style="text-align: left; background-color:#ccccff;" | [[Template:Auto List to Icons#amenities|Park Amenities]]{{#info: Things built to enjoy or use at the park | info }}
| {{#arraymap:{{{Lodging Types|}}}|,|x|[[Lodging Types::x]]}}
| {{#if: {{{Park Amenities|}}}|{{Auto List to Icons|List={{{Park Amenities|}}}}}{{#set:Park Amenities={{{Park Amenities|}}}|+sep=,}}}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | Camping Amenities
! style="text-align: left; background-color:#ccccff;" | [[Template:Auto List to Icons#features|Features]]{{#info: Natural things to see at the park | info }}
| {{#arraymap:{{{Camping Amenities|}}}|,|x|[[Camping Amenities::x]]}}
| {{#if: {{{Features|}}}|{{Auto List to Icons|List={{{Features|}}}}}{{#set:Features={{{Features|}}}|+sep=,}}}}
|-
! style="text-align: left; background-color:#ccccff;" | Park Trails
| {{#if: {{{Park Trail Count|}}}|[[Park Trail Count::{{{Park Trail Count|}}}]]|[[Park Trail Count::{{Park trail count|Park={{PAGENAME}}}}]]}} Trails / Total of {{#if: {{{Park Trail Miles|}}}|[[Park Trail Miles::{{{Park Trail Miles|}}}]]|[[Park Trail Miles::{{Park trail miles|Park={{PAGENAME}}}}]]}}
|-
! style="text-align: left; background-color:#ccccff;" | [[Template:Auto List to Icons#lodging|Lodging Types]]
| {{#if: {{{Lodging Types|}}}|{{Auto List to Icons|List={{{Lodging Types|}}}}}{{#set:Lodging Types={{{Lodging Types|}}}|+sep=,}}|None}}
|-
{{#if: {{{Camping Amenities|}}}|! style="text-align: left; background-color:#ccccff;" {{!}} [[Template:Auto List to Icons#campground{{!}}Camping Amenities]]}}
{{#if: {{{Camping Amenities|}}}|{{!}} {{Auto List to Icons|List={{{Camping Amenities|}}}}}{{#set:Camping Amenities={{{Camping Amenities|}}}|+sep=,}}}}
|-
|-
! style="text-align: left; background-color:#ccccff;" | Park Area
! style="text-align: left; background-color:#ccccff;" | Park Area
Line 52: Line 74:
|-
|-
! style="text-align: left; background-color:#ccccff;" | Main Location
! style="text-align: left; background-color:#ccccff;" | Main Location
| [[Parking location::{{{Parking}}}]]
| [[Main Location::{{{Main Location|}}}]] [https://maps.google.com/maps?q={{#replace:{{{Main 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}}}~{{PAGENAME}}
{{#display_map:{{{Main Location}}}~{{#titleparts:{{PAGENAME}}}}~Main Parking Location|zoom=8|width=100%|height=180px|type=roadmap|controls=}}
|zoom=8
|width=100%
|height=180px
|type=roadmap
|controls=type
}}
|-
|-
! style="text-align: center; background-color:#ccccff;" colspan="2" | <span style="font-size: larger;">[http://maps.google.com/maps?q={{#replace:{{{Parking}}}}} Show In Google Maps]</span>
! style="text-align: center; background-color:#ccccff;" colspan="2" | <span style="font-size: larger;">[https://maps.google.com/maps?q={{#replace:{{{Main Location}}}}} Show In Google Maps]</span>
|}[[Category:Park]]</includeonly>
|}[[Category:Parks]]</includeonly>

Latest revision as of 00:53, 3 January 2023

This is the "Park" template. It is typically populated from the Form:Park.

It should be called in the following format (remember to delete unused fields after the '=' or delete the entire row):

{{Park
 |Banner Image = pick a trail tagged photo, if left blank will search for pagename Banner.jpg
 |Park Type=
 |City=
 |Park Website=
 |Trail Map Link=
 |Entrance Fee=
 |Entrance Fee Type=
 |Activities=
 |Features=
 |Amenities=
 |Park Trail Count=
 |Park Trail Miles=
 |Lodging Types=
 |Camping Amenities=
 |Area=
 |Operated By=
 |Main Location=
}}

Edit the page to see the template text.