Difference between revisions of "Template:Infobox"
From WikiTemp, the GBAtemp wiki
m (Template:InfoBox moved to Template:Infobox: B lowercased.) |
m (Adding 5 more groups.) |
||
Line 106: | Line 106: | ||
{{#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| | + | {{!}}{{#if:{{{label10|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}} |
+ | |-<!-- | ||
+ | GROUP 11 | ||
+ | -->{{#if:{{{header11|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header11|}}}}} | ||
+ | {{#if:{{{data11|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label11|}}}| | ||
+ | {{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label11|}}}}} | ||
+ | {{!}}{{#if:{{{label11|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data11|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 12 | ||
+ | -->{{#if:{{{header12|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header12|}}}}} | ||
+ | {{#if:{{{data12|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label12|}}}| | ||
+ | {{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label12|}}}}} | ||
+ | {{!}}{{#if:{{{label12|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data12|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 13 | ||
+ | -->{{#if:{{{header13|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header13|}}}}} | ||
+ | {{#if:{{{data13|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label13|}}}| | ||
+ | {{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label13|}}}}} | ||
+ | {{!}}{{#if:{{{label13|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data13|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 14 | ||
+ | -->{{#if:{{{header14|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header14|}}}}} | ||
+ | {{#if:{{{data14|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label14|}}}| | ||
+ | {{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label14|}}}}} | ||
+ | {{!}}{{#if:{{{label14|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data14|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 15 | ||
+ | -->{{#if:{{{header15|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header15|}}}}} | ||
+ | {{#if:{{{data15|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label15|}}}| | ||
+ | {{!}}style="background: #DDF; font-weight:bold; padding:4px; width:50%;"{{!}}{{{label15|}}}}} | ||
+ | {{!}}{{#if:{{{label15|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data15|}}}}} | ||
|-<!-- | |-<!-- | ||
BELOW | BELOW |
Revision as of 17:08, 9 April 2011
{{{title}}} |
↑ Template Documentation ↓ [Edit • Reload] | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
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
{{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 |