From WikiTemp, the GBAtemp wiki
(Added image and below)
m
Line 10: Line 10:
 
GROUP 1
 
GROUP 1
 
-->{{#if:{{{header1|}}}|
 
-->{{#if:{{{header1|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header1|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header1|}}}}}
 
{{#if:{{{data1|}}}|
 
{{#if:{{{data1|}}}|
Line 19: Line 20:
 
GROUP 2
 
GROUP 2
 
-->{{#if:{{{header2|}}}|
 
-->{{#if:{{{header2|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header2|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header2|}}}}}
 
{{#if:{{{data2|}}}|
 
{{#if:{{{data2|}}}|
Line 28: Line 30:
 
GROUP 3
 
GROUP 3
 
-->{{#if:{{{header3|}}}|
 
-->{{#if:{{{header3|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header3|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header3|}}}}}
 
{{#if:{{{data3|}}}|
 
{{#if:{{{data3|}}}|
Line 37: Line 40:
 
GROUP 4
 
GROUP 4
 
-->{{#if:{{{header4|}}}|
 
-->{{#if:{{{header4|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header4|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header4|}}}}}
 
{{#if:{{{data4|}}}|
 
{{#if:{{{data4|}}}|
Line 46: Line 50:
 
GROUP 5
 
GROUP 5
 
-->{{#if:{{{header5|}}}|
 
-->{{#if:{{{header5|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header5|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header5|}}}}}
 
{{#if:{{{data5|}}}|
 
{{#if:{{{data5|}}}|
Line 55: Line 60:
 
GROUP 6
 
GROUP 6
 
-->{{#if:{{{header6|}}}|
 
-->{{#if:{{{header6|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header6|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header6|}}}}}
 
{{#if:{{{data6|}}}|
 
{{#if:{{{data6|}}}|
Line 64: Line 70:
 
GROUP 7
 
GROUP 7
 
-->{{#if:{{{header7|}}}|
 
-->{{#if:{{{header7|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header7|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header7|}}}}}
 
{{#if:{{{data7|}}}|
 
{{#if:{{{data7|}}}|
Line 73: Line 80:
 
GROUP 8
 
GROUP 8
 
-->{{#if:{{{header8|}}}|
 
-->{{#if:{{{header8|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header8|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header8|}}}}}
 
{{#if:{{{data8|}}}|
 
{{#if:{{{data8|}}}|
Line 82: Line 90:
 
GROUP 9
 
GROUP 9
 
-->{{#if:{{{header9|}}}|
 
-->{{#if:{{{header9|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header9|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header9|}}}}}
 
{{#if:{{{data9|}}}|
 
{{#if:{{{data9|}}}|
Line 91: Line 100:
 
GROUP 10
 
GROUP 10
 
-->{{#if:{{{header10|}}}|
 
-->{{#if:{{{header10|}}}|
 +
{{!}}-
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header10|}}}}}
 
{{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header10|}}}}}
 
{{#if:{{{data10|}}}|
 
{{#if:{{{data10|}}}|

Revision as of 18:38, 21 December 2010

{{{title}}}
↑ Template Documentation ↓ [EditReload]

This template is used to create a basic information box on a specific page with the most important info.

In most cases, this Template will be used in other Templates, rather than being placed on a page directly.

Parameters

  • title - The title of the box.
  • image - An image that appears directly under the title.
  • imagesize - Width of the image (default 200px).
  • imagecaption - Optional caption that appears below the image
  • header1 - Header of the first group
  • label1 - Label of the first group
  • data1 - Data of the first group
  • header2 - Header of the second group
  • label2 - Label of the second group
  • data2 - Data of the second group
  • ...
  • header15 - Header of the fifteenth group
  • label15 - Label of the fifteenth group
  • data15 - Data of the fifteenth group
  • below - Text to appear on the bottom

Anything that's not included will simply not be displayed. (Except for the title)

Note that you can add data without a label, but not the other way around.

Example Usage

MyInfoBox
DSTWOtemp Cart.jpg
GBAtemp DSTWO!
first header
first label first data
second data without header and label
third header without data
bottom text
{{InfoBox
 |title=MyInfoBox
 |image=Image:DSTWOtemp_Cart.jpg <!-- Or just DSTWOtemp_Cart.jpg without the "Image:" -->
 |imagesize=150px
 |imagecaption=GBAtemp DSTWO!
 |header1 = first header
 |label1 = first label
 |data1 = first data
 |data2 = second data without header and label
 |label3 = third label without data
 |header3 = third header without data
 |below = bottom text
}}


The above documentation was Transcluded from the /doc subpage