Difference between revisions of "Template:Infobox"
From WikiTemp, the GBAtemp wiki
m (:P) |
(Seems its redundant) |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {|class="infobox" |
− | |colspan="2" | + | |colspan="2" class="infobox-title"|{{{title}}} |
|- | |- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
− | {{!}}colspan="2"{{!}}[[{{{image | + | {{!}}colspan="2" style="text-align:center;"{{!}}[[{{#if:{{#pos:{{{image}}}|:}}||File:}}{{{image}}}{{!}}{{{imagesize|200px}}}{{!}}center]] |
{{#if:{{{imagecaption|}}}| | {{#if:{{{imagecaption|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" style="text-align:center"{{!}}{{{imagecaption|}}}}}}} | + | {{!}}colspan="2" style="text-align:center"{{!}}''{{{imagecaption|}}}''}}}} |
|-<!-- | |-<!-- | ||
GROUP 1 | GROUP 1 | ||
-->{{#if:{{{header1|}}}| | -->{{#if:{{{header1|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header1|}}}}} |
{{#if:{{{data1|}}}| | {{#if:{{{data1|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label1|}}}| | {{#if:{{{label1|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label1|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 21: | Line 21: | ||
-->{{#if:{{{header2|}}}| | -->{{#if:{{{header2|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header2|}}}}} |
{{#if:{{{data2|}}}| | {{#if:{{{data2|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label2|}}}| | {{#if:{{{label2|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label2|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 35: | Line 35: | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label3|}}}| | {{#if:{{{label3|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label3|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 41: | Line 41: | ||
-->{{#if:{{{header4|}}}| | -->{{#if:{{{header4|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header4|}}}}} |
{{#if:{{{data4|}}}| | {{#if:{{{data4|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label4|}}}| | {{#if:{{{label4|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label4|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 51: | Line 51: | ||
-->{{#if:{{{header5|}}}| | -->{{#if:{{{header5|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header5|}}}}} |
{{#if:{{{data5|}}}| | {{#if:{{{data5|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label5|}}}| | {{#if:{{{label5|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label5|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 61: | Line 61: | ||
-->{{#if:{{{header6|}}}| | -->{{#if:{{{header6|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header6|}}}}} |
{{#if:{{{data6|}}}| | {{#if:{{{data6|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label6|}}}| | {{#if:{{{label6|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label6|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 71: | Line 71: | ||
-->{{#if:{{{header7|}}}| | -->{{#if:{{{header7|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header7|}}}}} |
{{#if:{{{data7|}}}| | {{#if:{{{data7|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label7|}}}| | {{#if:{{{label7|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label7|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 81: | Line 81: | ||
-->{{#if:{{{header8|}}}| | -->{{#if:{{{header8|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header8|}}}}} |
{{#if:{{{data8|}}}| | {{#if:{{{data8|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label8|}}}| | {{#if:{{{label8|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label8|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 91: | Line 91: | ||
-->{{#if:{{{header9|}}}| | -->{{#if:{{{header9|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header9|}}}}} |
{{#if:{{{data9|}}}| | {{#if:{{{data9|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label9|}}}| | {{#if:{{{label9|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label9|}}}}} |
{{!}}{{#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|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 101: | Line 101: | ||
-->{{#if:{{{header10|}}}| | -->{{#if:{{{header10|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header10|}}}}} |
{{#if:{{{data10|}}}| | {{#if:{{{data10|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label10|}}}| | {{#if:{{{label10|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label10|}}}}} |
{{!}}{{#if:{{{label10|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}} | {{!}}{{#if:{{{label10|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 111: | Line 111: | ||
-->{{#if:{{{header11|}}}| | -->{{#if:{{{header11|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header11|}}}}} |
{{#if:{{{data11|}}}| | {{#if:{{{data11|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label11|}}}| | {{#if:{{{label11|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label11|}}}}} |
{{!}}{{#if:{{{label11|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data11|}}}}} | {{!}}{{#if:{{{label11|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data11|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 121: | Line 121: | ||
-->{{#if:{{{header12|}}}| | -->{{#if:{{{header12|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header12|}}}}} |
{{#if:{{{data12|}}}| | {{#if:{{{data12|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label12|}}}| | {{#if:{{{label12|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label12|}}}}} |
{{!}}{{#if:{{{label12|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data12|}}}}} | {{!}}{{#if:{{{label12|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data12|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 131: | Line 131: | ||
-->{{#if:{{{header13|}}}| | -->{{#if:{{{header13|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header13|}}}}} |
{{#if:{{{data13|}}}| | {{#if:{{{data13|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label13|}}}| | {{#if:{{{label13|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label13|}}}}} |
{{!}}{{#if:{{{label13|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data13|}}}}} | {{!}}{{#if:{{{label13|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data13|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 141: | Line 141: | ||
-->{{#if:{{{header14|}}}| | -->{{#if:{{{header14|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header14|}}}}} |
{{#if:{{{data14|}}}| | {{#if:{{{data14|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label14|}}}| | {{#if:{{{label14|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label14|}}}}} |
{{!}}{{#if:{{{label14|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data14|}}}}} | {{!}}{{#if:{{{label14|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data14|}}}}} | ||
|-<!-- | |-<!-- | ||
Line 151: | Line 151: | ||
-->{{#if:{{{header15|}}}| | -->{{#if:{{{header15|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-header"{{!}}{{{header15|}}}}} |
{{#if:{{{data15|}}}| | {{#if:{{{data15|}}}| | ||
{{!}}- | {{!}}- | ||
{{#if:{{{label15|}}}| | {{#if:{{{label15|}}}| | ||
− | {{!}} | + | {{!}}class="infobox-label"{{!}}{{{label15|}}}}} |
{{!}}{{#if:{{{label15|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data15|}}}}} | {{!}}{{#if:{{{label15|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data15|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 16 | ||
+ | -->{{#if:{{{header16|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header16|}}}}} | ||
+ | {{#if:{{{data16|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label16|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label16|}}}}} | ||
+ | {{!}}{{#if:{{{label16|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data16|}}}}} | ||
|-<!-- | |-<!-- | ||
BELOW | BELOW | ||
-->{{#if:{{{below|}}}| | -->{{#if:{{{below|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-below"{{!}}{{{below|}}}}} |
|}<noinclude> | |}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude> | [[Category:Infobox Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 11:47, 18 January 2015
{{{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 |