Template:InfoBoxTest: Difference between revisions

From Adventurelandians - Adventureland Iowa Encyclopedia (Unofficial)
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
| name =      (optional, else PAGENAME is used)
| name =      (optional, else PAGENAME is used)
| theme =      (AREA ONLY)
| theme =      (AREA ONLY)
| area =      (NOT AREA)
| category =  (NOT AREA)
| category =  (NOT AREA)
| type =      (NOT AREA)
| type =      (NOT AREA)
| area =      (NOT AREA)
| opened =  
| opened =  
| replaced =  (optional)
| replaced =  (optional)
Line 27: Line 27:
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
|-
|-
<!-- CHARACTER only -->
<!-- if AREA -->
{{#ifeq: {{{boxtype}}} | Character |
{{#ifeq: {{{boxtype}}} | Area |
! scope="row" {{!}} Species
! scope="row" {{!}} Theme
{{!}} {{#if: {{{species|}}} | {{{species}}} | INFO NEEDED [[Category: Missing Species]]}}
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}}
{{!}}-
{{!}}-
|
| <!-- else NOT AREA -->
<!-- AREA only -->
! scope="row" {{!}} Park Area
{{!}} {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
{{!}}-
}} <!-- end of NOT AREA -->
<!-- if AREA -->
{{#ifeq: {{{boxtype}}} | Area |
{{#ifeq: {{{boxtype}}} | Area |
! scope="row" {{!}} Theme
| <!-- NOT AREA -->
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}}
! scope="row" {{!}} Category
{{!}}-
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}} {{!}}-
|
! scope="row" {{!}} Type
<!-- All -->
{{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}}
! scope="row" {{!}} Park Area
{{!}}-
{{!}} {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
<-- if CHARACTER -->
{{!}}-
{{#ifeq: {{{boxtype}}} | Character |
! scope="row" {{!}} Category
<!-- CHARACTER shows nothing -->
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}}
| <!-- else NOT CHARACTER -->
{{!}}-
<!-- Everything else -->
! scope="row" {{!}} Type
! scope="row" {{!}} Year Opened
{{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}}
| {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
{{!}}-
|-
}}
<!-- Optional -->
! scope="row" {{!}} Year Opened
{{#if: {{{replaced|}}} |
| {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
! scope="row" {{!}} Replaced
|-
{{!}} [[{{{replaced}}}]]
<!-- Optional -->
{{!}}-
{{#if: {{{replaced|}}} |
}}
! scope="row" {{!}} Replaced
<!-- Optional -->
{{!}} [[{{{replaced}}}]]
{{#if: {{{closed|}}} |
{{!}}-
! scope="row" {{!}} Year Closed
}}
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
<!-- Optional -->
{{!}}-
{{#if: {{{closed|}}} |
}}
! scope="row" {{!}} Year Closed
<!-- Optional -->
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
{{#if: {{{replacedby|}}} |
{{!}}-
! scope="row" {{!}} Replaced By
}}
{{!}} [[{{{replacedby}}}]]
<!-- Optional -->
{{!}}-
{{#if: {{{replacedby|}}} |
}}
! scope="row" {{!}} Replaced By
<!-- if RIDE -->
{{!}} [[{{{replacedby}}}]]
{{#ifeq: {{{boxtype}}} | Ride |
{{!}}-
! scope="row" {{!}} Riders
}}
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
<!-- RIDE only -->
{{!}}-
{{#ifeq: {{{boxtype}}} | Ride |
! scope="row" {{!}} Dispatch Rate
! scope="row" {{!}} Riders
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
{{!}}-
{{!}}-
! scope="row" {{!}} Ride Duration
! scope="row" {{!}} Dispatch Rate
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
{{!}}-
{{!}}-
}} <!-- end of RIDE -->
! scope="row" {{!}} Ride Duration
}} <!- end of NOT CHARACTER -->
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
}} <!-- end of NOT AREA -->
{{!}}-
< !-- All -->
}}
}} <!- end of MASCOT -->
<!-- All -->
| colspan="2" align="center" | <small>[[About the {{{boxtype}}} Info Box]]</small>
| colspan="2" align="center" | <small>[[About the {{{boxtype}}} Info Box]]</small>
|}
|}
</includeonly></onlyinclude>
</includeonly></onlyinclude>

Revision as of 02:10, 10 August 2016

This template generates the various types of Info Boxes.

Usage

{{InfoBoxTest |
| boxtype =    (Area, Character, Food and Drink, Game, Ride, Show, Shop)
| name =       (optional, else PAGENAME is used)
| theme =      (AREA ONLY)
| area =       (NOT AREA)
| category =   (NOT AREA)
| type =       (NOT AREA)
| opened = 
| replaced =   (optional)
| closed =     (optional)
| replacedby = (optional)
| riders =     (RIDE ONLY)
| dispatch =   (RIDE ONLY) 
| duration =   (RIDE ONLY)
| photo = 
}}