Template:Park: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(make camping amenities disappear when not used)
(Make it say 'none' if no lodging types)
Line 62: Line 62:
|-
|-
! style="text-align: left; background-color:#ccccff;" | Lodging Types
! style="text-align: left; background-color:#ccccff;" | Lodging Types
| {{Auto List to Icons|List={{{Lodging Types|}}}}}{{#set:Lodging Types={{{Lodging Types|}}}|+sep=,}}
| {{#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;" {{!}} Camping Amenities}}
{{#if: {{{Camping Amenities|}}}|! style="text-align: left; background-color:#ccccff;" {{!}} Camping Amenities}}

Revision as of 21:39, 30 November 2019

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=
 |Parking=
}}

Edit the page to see the template text.