Template:InfoBoxTest: Difference between revisions

From Adventurelandians - Adventureland Iowa Encyclopedia (Unofficial)
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
This template uses other templates to generate the Ride Info Box.
== Usage ==
== Usage ==
<pre>
<pre>{{InfoBox |
{{InfoBox |
| boxtype =    (Area, Character, Food and Drink, Game, Ride, Show, Shop)
| name =  
| name =       (optional, else PAGENAME is used)
| area =  
| theme =     (AREA ONLY)
| category =  
| category =   (NOT AREA)
| type =  
| type =       (NOT AREA)
| area =      (NOT AREA)
| opened =  
| opened =  
| replaced =  
| replaced =   (optional)
| closed =  
| closed =     (optional)
| replacedby =  
| replacedby = (optional)
| riders =  
| riders =     (RIDE ONLY)
| dispatch =  
| dispatch =   (RIDE ONLY)
| duration =  
| duration =   (RIDE ONLY)
| photo =  
| photo =  
}}</pre>
</noinclude><includeonly><onlyinclude><!-- START of InfoBox -->
{| class="wikitable" style="float:right;" width="300px"
|+ {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
|-
| colspan="2" align="center" |
{{#if: {{{photo|}}} | [[Image:{{{photo}}}|300px]] | MISSING PHOTO [[Category: Missing Photo]]}}
|-
! scope="row" {{!}} Name
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
{{!}}-
<!-- if AREA -->
{{#ifeq: {{{boxtype}}} | Area |
! scope="row" {{!}} Theme
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}}
{{!}}-
| <!-- else NOT AREA -->
!  scope="row" {{!}} Category
{{!}} {{#if: {{{category|}}} | {{{category}}} [[Category: {{{category}}}]] | INFO NEEDED [[Category: Missing Category]]}}
{{!}}-
! scope="row" {{!}} 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]]}}
{{!}}-
}}
}}
</pre>
! scope="row" {{!}} Year Opened
</noinclude>
{{!}} {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
<includeonly>
{{!}}-
<!-- START of the box. All types have this. -->
<!-- Optional -->
{{InfoBoxStart |
{{#if: {{{replaced|}}} |
| name = {{{name|}}}
! scope="row" {{!}} Replaced
| photo = {{{photo|}}}
{{!}} [[{{{replaced}}}]]
{{!}}-
}}
}}
<!-- GENERIC section (used for all but Areas) -->
<!-- Optional -->
{{InfoBoxGeneric |
{{#if: {{{closed|}}} |
| area = {{{area|}}}
! scope="row" {{!}} Year Closed
| category = {{{category|}}}
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
| type = {{{type|}}}
{{!}}-
| opened = {{{opened|}}}
| replaced = {{{replaced|}}}
| closed = {{{closed|}}}
| replacedby = {{{replacedby|}}}
}}
}}
<!-- RIDE specific section. -->
<!-- Optional -->
{{InfoBoxRide |
{{#if: {{{replacedby|}}} |
| riders = {{{riders|}}}
! scope="row" {{!}} Replaced By
| dispatch = {{{dispatch|}}}
{{!}} [[{{{replacedby}}}]]
| duration = {{{duration|}}}
{{!}}-
}}
}}
<!-- END of the box. All types have this. -->
<!-- if RIDE -->
{{InfoBoxEnd |
{{#ifeq: {{{boxtype}}} | Ride |
| boxtype = Ride
! scope="row" {{!}} Riders
| area = {{{area|}}}
{{!}} {{#if: {{{riders|}}} | {{{riders}}} | INFO NEEDED [[Category: Missing Riders]]}}
| category = {{{category|}}}
{{!}}-
| type = {{{type|}}}
! scope="row" {{!}} Dispatch Rate
| opened = {{{opened|}}}
{{!}} {{#if: {{{dispatch|}}} | {{{dispatch}}} | INFO NEEDED [[Category: Missing Dispatch]]}}
| replaced = {{{replaced|}}}
{{!}}-
| closed = {{{closed|}}}
! scope="row" {{!}} Ride Duration
| replacedby = {{{replacedby|}}}
{{!}} {{#if: {{{duration|}}} | {{{duration}}} | INFO NEEDED [[Category: Missing Duration]]}}
| description = {{{description|}}}
{{!}}-
| trivia = {{{trivia|}}}
}} <!-- end of RIDE -->
| photos = {{{photos|}}}
}} <!-- end of NOT CHARACTER -->
| links = {{{links|}}}
<!-- All -->
}}
| colspan="2" align="center" | <small>[[About the {{{boxtype}}} Info Box]]</small>
</includeonly>
|}
</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 = 
}}