Template:InfoBox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<!-- Conditional Generic Info Box table template --> {| class="wikitable" style="float:right;" |+ {{#if: {{{name|}}} | {{{name}}} | MISSING NAME }} {{!}}- ! scope="row" {{!}}...") |
No edit summary |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | <noinclude>This template generates the various types of Info Boxes. | ||
{| class="wikitable" style="float:right;" | == Usage == | ||
|+ {{#if: {{{name|}}} | {{{name}}} | | <pre>{{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 = | |||
}}</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 | ! scope="row" {{!}} Name | ||
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | |||
{{!}}- | {{!}}- | ||
! scope="row" {{!}} | <!-- if AREA --> | ||
{{!}} {{#if: {{{ | {{#ifeq: {{{boxtype}}} | Area | | ||
! scope="row" {{!}} Theme | |||
{{!}} {{#if: {{{theme|}}} | {{{theme}}} | INFO NEEDED [[Category: Missing Theme]]}} | |||
{{!}}- | {{!}}- | ||
| <!-- else NOT 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]]}} | ||
Line 15: | Line 39: | ||
{{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}} | {{!}} {{#if: {{{type|}}} | {{{type}}} [[Category: {{{type}}}]] | INFO NEEDED [[Category: Missing Type]]}} | ||
{{!}}- | {{!}}- | ||
! scope="row" {{!}} Year | }} <!-- end NOT AREA --> | ||
{{!}} {{#if: {{{opened|}}} | {{{opened}}} [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}} | <!-- 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" {{!}} First Year | |||
{{!}} {{#if: {{{opened|}}} | [[{{{opened}}}]] [[Category: {{{opened}}}]] | DATE NEEDED [[Category: Missing Date]]}} | |||
{{!}}- | {{!}}- | ||
<!-- Optional --> | <!-- Optional --> | ||
Line 26: | Line 62: | ||
<!-- Optional --> | <!-- Optional --> | ||
{{#if: {{{closed|}}} | | {{#if: {{{closed|}}} | | ||
! scope="row" {{!}} Year | ! scope="row" {{!}} Final Year | ||
{{!}} {{{closed}}} [[Category: {{{closed}}}]] | {{!}} [[History#{{{closed}}}|{{{closed}}}]] [[Category: {{{closed}}}]] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 36: | Line 72: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
<!-- 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 18:55, 11 August 2016
This template generates the various types of Info Boxes.
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 = }}