Template:InfoBoxTest: Difference between revisions

From Adventurelandians - Adventureland Iowa Encyclopedia (Unofficial)
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 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>
<pre>{{InfoBox |
{{InfoBoxTest |
| boxtype =   (Area, Character, Food and Drink, Game, Ride, Show, Shop)
| boxtype = (Area, Food and Drink, Game, Show, Shop)
| name =       (optional, else PAGENAME is used)
| name =  
| theme =     (AREA ONLY)
| theme = (AREA ONLY)
| category =   (NOT AREA)
| area = (NOT AREA)
| type =       (NOT AREA)
| category = (NOT AREA)
| area =       (NOT AREA)
| type = (NOT AREA)
| opened =  
| opened =  
| replaced =  
| replaced =   (optional)
| closed =  
| closed =     (optional)
| replacedby =  
| replacedby = (optional)
| riders = (RIDE ONLY)
| riders =     (RIDE ONLY)
| dispatch = (RIDE ONLY)  
| dispatch =   (RIDE ONLY)  
| duration = (RIDE ONLY)
| duration =   (RIDE ONLY)
| photo =  
| photo =  
}}
}}</pre>
</pre>
</noinclude><includeonly><onlyinclude><!-- START of InfoBox -->
</noinclude><includeonly -->
<!-- START of InfoBox -->
{| class="wikitable" style="float:right;" width="300px"
{| class="wikitable" style="float:right;" width="300px"
|+ {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
|+ {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
Line 29: Line 25:
! scope="row" {{!}} Name
! scope="row" {{!}} Name
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
|-
{{!}}-
<!-- AREA only -->
<!-- if 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]]}}
|-
{{!}}-
<!-- All -->
| <!-- else NOT AREA -->
! scope="row" {{!}} Park Area
| {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
|-
!  scope="row" {{!}} Category
!  scope="row" {{!}} Category
| {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}}
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}}
|-
{{!}}-
! scope="row" {{!}} Type
! scope="row" {{!}} Type
| {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}}
{{!}} {{#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 |
<!-- nothing for AREA -->
|
! scope="row" {{!}} Park Area
{{!}} {{#if: {{{area|}}} | [[{{{area}}}]] [[Category: {{{area}}}]] | INFO NEEDED [[Category: Missing Area]]}}
{{!}}-
}}
! scope="row" {{!}} Year Opened
! scope="row" {{!}} Year Opened
| {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
{{!}} {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
|-
{{!}}-
<!-- Optional -->
<!-- Optional -->
{{#if: {{{replaced|}}} |
{{#if: {{{replaced|}}} |
Line 65: Line 71:
{{!}}-
{{!}}-
}}
}}
<!-- RIDE only -->
<!-- if RIDE -->
! scope="row" | Riders
{{#ifeq: {{{boxtype}}} | Ride |
| {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
! scope="row" {{!}} Riders
|-
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
! scope="row" | Dispatch Rate
{{!}}-
| {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
! scope="row" {{!}} Dispatch Rate
|-
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
! scope="row" | Ride Duration
{{!}}-
! scope="row" {{!}} Ride Duration
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
|-
{{!}}-
}} <!-- end of RIDE -->
}} <!-- end of NOT CHARACTER -->
<!-- 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>

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