Template:InfoBoxTest: Difference between revisions

From Adventurelandians - Adventureland Iowa Encyclopedia (Unofficial)
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template generates the various types of Info Boxes.
== Usage ==
== Usage ==
<pre>{{InfoBoxTest |
<pre>{{InfoBox |
| boxtype =    (Area, Character, Food and Drink, Game, Ride, Show, Shop)
| boxtype =    (Area, Character, Food and Drink, Game, Ride, Show, Shop)
| 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 26: Line 25:
! scope="row" {{!}} Name
! scope="row" {{!}} Name
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
|-
{{!}}-
<!-- if AREA -->
<!-- if AREA -->
{{#ifeq: {{{boxtype}}} | Area |
{{#ifeq: {{{boxtype}}} | Area |
! scope="row" {{!}} Theme
! scope="row" {{!}} Theme
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}}
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}}
{{!}}-
{{!}}-
| <!-- else NOT AREA -->
| <!-- else NOT AREA -->
! scope="row" {{!}} Park Area
! scope="row" {{!}} Category
{{!}} {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}}
{{!}}-
{{!}}-
}} <!-- end of NOT AREA -->
! scope="row" {{!}} Type
<!-- if AREA -->
{{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}}
{{!}}-
}} <!-- end NOT AREA -->
<!-- if CHARACTER -->
{{#ifeq: {{{boxtype}}} | Character |
<!-- nothing for CHARACTER -->
| <!-- else NOT CHARACTER -->
{{#ifeq: {{{boxtype}}} | Area |
{{#ifeq: {{{boxtype}}} | Area |
| <!-- NOT AREA -->
<!-- nothing for AREA -->
! scope="row" {{!}} Category
|
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}} {{!}}-
! scope="row" {{!}} Park Area
! scope="row" {{!}} Type
{{!}} {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
{{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}}
{{!}}-
{{!}}-
}}
<-- if CHARACTER -->
! scope="row" {{!}} Year Opened
{{#ifeq: {{{boxtype}}} | Character |
{{!}} {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
<!-- CHARACTER shows nothing -->
{{!}}-
| <!-- else NOT CHARACTER -->
<!-- Optional -->
<!-- Everything else -->
{{#if: {{{replaced|}}} |
! scope="row" {{!}} Year Opened
! scope="row" {{!}} Replaced
| {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
{{!}} [[{{{replaced}}}]]
|-
{{!}}-
<!-- Optional -->
}}
{{#if: {{{replaced|}}} |
<!-- Optional -->
! scope="row" {{!}} Replaced
{{#if: {{{closed|}}} |
{{!}} [[{{{replaced}}}]]
! scope="row" {{!}} Year Closed
{{!}}-
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
}}
{{!}}-
<!-- Optional -->
}}
{{#if: {{{closed|}}} |
<!-- Optional -->
! scope="row" {{!}} Year Closed
{{#if: {{{replacedby|}}} |
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
! scope="row" {{!}} Replaced By
{{!}}-
{{!}} [[{{{replacedby}}}]]
}}
{{!}}-
<!-- Optional -->
}}
{{#if: {{{replacedby|}}} |
<!-- if RIDE -->
! scope="row" {{!}} Replaced By
{{#ifeq: {{{boxtype}}} | Ride |
{{!}} [[{{{replacedby}}}]]
! scope="row" {{!}} Riders
{{!}}-
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
}}
{{!}}-
<!-- if RIDE -->
! scope="row" {{!}} Dispatch Rate
{{#ifeq: {{{boxtype}}} | Ride |
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
! scope="row" {{!}} Riders
{{!}}-
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
! scope="row" {{!}} Ride Duration
{{!}}-
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
! scope="row" {{!}} Dispatch Rate
{{!}}-
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
}} <!-- end of RIDE -->
{{!}}-
}} <!-- end of NOT CHARACTER -->
! scope="row" {{!}} Ride Duration
<!-- All -->
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
{{!}}-
}} <!-- end of RIDE -->
}} <!- end of NOT CHARACTER -->
}} <!-- end of NOT AREA -->
< !-- 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>

Latest revision as of 15:28, 10 August 2016

Usage

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