From WikiTemp, the GBAtemp wiki
(Initial Version)
 
(Added image and below)
Line 2: Line 2:
 
|colspan="2" style="font-size:16px; text-align:center; background: #CCF; font-weight:bold;"|{{{title}}}
 
|colspan="2" style="font-size:16px; text-align:center; background: #CCF; font-weight:bold;"|{{{title}}}
 
|-
 
|-
{{#if:{{{header1|}}}|
+
{{#if:{{{image|}}}|
 +
{{!}}colspan="2"{{!}}[[{{{image|}}}|{{{imagesize|200px}}}|center]]
 +
{{#if:{{{imagecaption|}}}|
 
{{!}}-
 
{{!}}-
 +
{{!}}colspan="2" style="text-align:center"{{!}}{{{imagecaption|}}}}}}}
 +
|-<!--
 +
GROUP 1
 +
-->{{#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 11: Line 17:
 
{{!}}{{#if:{{{label1|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data1|}}}}}
 
{{!}}{{#if:{{{label1|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data1|}}}}}
 
|-<!--
 
|-<!--
 
+
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 21: Line 26:
 
{{!}}{{#if:{{{label2|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data2|}}}}}
 
{{!}}{{#if:{{{label2|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data2|}}}}}
 
|-<!--
 
|-<!--
 
+
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 31: Line 35:
 
{{!}}{{#if:{{{label3|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data3|}}}}}
 
{{!}}{{#if:{{{label3|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data3|}}}}}
 
|-<!--
 
|-<!--
 
+
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 41: Line 44:
 
{{!}}{{#if:{{{label4|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data4|}}}}}
 
{{!}}{{#if:{{{label4|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data4|}}}}}
 
|-<!--
 
|-<!--
 
+
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 51: Line 53:
 
{{!}}{{#if:{{{label5|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data5|}}}}}
 
{{!}}{{#if:{{{label5|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data5|}}}}}
 
|-<!--
 
|-<!--
 
+
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 61: Line 62:
 
{{!}}{{#if:{{{label6|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data6|}}}}}
 
{{!}}{{#if:{{{label6|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data6|}}}}}
 
|-<!--
 
|-<!--
 
+
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 71: Line 71:
 
{{!}}{{#if:{{{label7|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data7|}}}}}
 
{{!}}{{#if:{{{label7|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data7|}}}}}
 
|-<!--
 
|-<!--
 
+
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 81: Line 80:
 
{{!}}{{#if:{{{label8|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data8|}}}}}
 
{{!}}{{#if:{{{label8|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data8|}}}}}
 
|-<!--
 
|-<!--
 
+
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 89:
 
{{!}}{{#if:{{{label9|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data9|}}}}}
 
{{!}}{{#if:{{{label9|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data9|}}}}}
 
|-<!--
 
|-<!--
 
+
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|}}}|
Line 99: Line 96:
 
{{#if:{{{label10|}}}|
 
{{#if:{{{label10|}}}|
 
{{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label10|}}}}}
 
{{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label10|}}}}}
{{!}}{{#if:{{{label10|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}}
+
{{!}}{{#if:{{{label10|ds}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}}
 +
|-<!--
 +
BELOW
 +
-->{{#if:{{{below|}}}|
 +
{{!}}-
 +
{{!}}colspan="2" style="text-align:center; background: #DDF; padding-top:4px; padding-bottom:4px;"{{!}}{{{below|}}}}}
 
|}<noinclude>
 
|}<noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
[[Category:Infobox Templates]]</noinclude>
 
[[Category:Infobox Templates]]</noinclude>

Revision as of 17:16, 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