Template:InfoBoxTest: Difference between revisions

From Adventurelandians - Adventureland Iowa Encyclopedia (Unofficial)
Jump to navigation Jump to search
No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
== Usage ==
You will learn later...
<pre>{{InfoBox |
</noinclude>
| boxtype =    (Area, Character, Food and Drink, Game, Ride, Show, Shop)
<includeonly>
| name =      (optional, else PAGENAME is used)
{{InfoBoxStart |
| theme =      (AREA ONLY)
| name = {{{name|}}}
| category =  (NOT AREA)
| photo = {{{photo|}}}
| type =      (NOT AREA)
| area =      (NOT AREA)
| opened =
| replaced =  (optional)
| closed =    (optional)
| replacedby = (optional)
| riders =    (RIDE ONLY)
| dispatch =  (RIDE ONLY)
| duration =  (RIDE ONLY)
| 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]]}}
{{!}}-
}}
}}
{{InfoBoxGeneric |
! scope="row" {{!}} Year Opened
| area = {{{area|}}}
{{!}} {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}}
| category = {{{category|}}}
{{!}}-
| type = {{{type|}}}
<!-- Optional -->
| opened = {{{opened|}}}
{{#if: {{{replaced|}}} |
| replaced = {{{replaced|}}}
! scope="row" {{!}} Replaced
| closed = {{{closed|}}}
{{!}} [[{{{replaced}}}]]
| replacedby = {{{replacedby|}}}
{{!}}-
}}
}}
{{InfoBoxRide |
<!-- Optional -->
| riders = {{{riders|}}}
{{#if: {{{closed|}}} |
| dispatch = {{{dispatch|}}}
! scope="row" {{!}} Year Closed
| duration = {{{duration|}}}
{{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]]
{{!}}-
}}
}}
{{InfoBoxEnd |
<!-- Optional -->
| boxtype = Ride
{{#if: {{{replacedby|}}} |
| area = {{{area|}}}
! scope="row" {{!}} Replaced By
| category = {{{category|}}}
{{!}} [[{{{replacedby}}}]]
| type = {{{type|}}}
{{!}}-
| opened = {{{opened|}}}
| replaced = {{{replaced|}}}
| closed = {{{closed|}}}
| replacedby = {{{replacedby|}}}
| description = {{{description|}}}
| trivia = {{{trivia|}}}
| photos = {{{photos|}}}
| links = {{{links|}}}
}}
}}
</includeonly>
<!-- if RIDE -->
{{#ifeq: {{{boxtype}}} | Ride |
! 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" {{!}} Ride 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>
|}
</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 = 
}}