Difference between revisions of "Template:Infobox"
From WikiTemp, the GBAtemp wiki
(mAiQfTOkKtZJWnwrv) |
(Seems its redundant) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {|class="infobox" | |
+ | |colspan="2" class="infobox-title"|{{{title}}} | ||
+ | |- | ||
+ | {{#if:{{{image|}}}| | ||
+ | {{!}}colspan="2" style="text-align:center;"{{!}}[[{{#if:{{#pos:{{{image}}}|:}}||File:}}{{{image}}}{{!}}{{{imagesize|200px}}}{{!}}center]] | ||
+ | {{#if:{{{imagecaption|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="text-align:center"{{!}}''{{{imagecaption|}}}''}}}} | ||
+ | |-<!-- | ||
+ | GROUP 1 | ||
+ | -->{{#if:{{{header1|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header1|}}}}} | ||
+ | {{#if:{{{data1|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label1|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label1|}}}}} | ||
+ | {{!}}{{#if:{{{label1|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data1|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 2 | ||
+ | -->{{#if:{{{header2|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header2|}}}}} | ||
+ | {{#if:{{{data2|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label2|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label2|}}}}} | ||
+ | {{!}}{{#if:{{{label2|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data2|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 3 | ||
+ | -->{{#if:{{{header3|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" style="font-weight:bold; text-align:center; background: #CCF; padding-top:4px; padding-bottom:4px;"{{!}}{{{header3|}}}}} | ||
+ | {{#if:{{{data3|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label3|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label3|}}}}} | ||
+ | {{!}}{{#if:{{{label3|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data3|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 4 | ||
+ | -->{{#if:{{{header4|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header4|}}}}} | ||
+ | {{#if:{{{data4|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label4|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label4|}}}}} | ||
+ | {{!}}{{#if:{{{label4|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data4|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 5 | ||
+ | -->{{#if:{{{header5|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header5|}}}}} | ||
+ | {{#if:{{{data5|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label5|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label5|}}}}} | ||
+ | {{!}}{{#if:{{{label5|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data5|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 6 | ||
+ | -->{{#if:{{{header6|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header6|}}}}} | ||
+ | {{#if:{{{data6|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label6|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label6|}}}}} | ||
+ | {{!}}{{#if:{{{label6|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data6|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 7 | ||
+ | -->{{#if:{{{header7|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header7|}}}}} | ||
+ | {{#if:{{{data7|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label7|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label7|}}}}} | ||
+ | {{!}}{{#if:{{{label7|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data7|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 8 | ||
+ | -->{{#if:{{{header8|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header8|}}}}} | ||
+ | {{#if:{{{data8|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label8|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label8|}}}}} | ||
+ | {{!}}{{#if:{{{label8|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data8|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 9 | ||
+ | -->{{#if:{{{header9|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header9|}}}}} | ||
+ | {{#if:{{{data9|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label9|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label9|}}}}} | ||
+ | {{!}}{{#if:{{{label9|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data9|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 10 | ||
+ | -->{{#if:{{{header10|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header10|}}}}} | ||
+ | {{#if:{{{data10|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label10|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label10|}}}}} | ||
+ | {{!}}{{#if:{{{label10|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data10|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 11 | ||
+ | -->{{#if:{{{header11|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header11|}}}}} | ||
+ | {{#if:{{{data11|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label11|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label11|}}}}} | ||
+ | {{!}}{{#if:{{{label11|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data11|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 12 | ||
+ | -->{{#if:{{{header12|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header12|}}}}} | ||
+ | {{#if:{{{data12|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label12|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label12|}}}}} | ||
+ | {{!}}{{#if:{{{label12|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data12|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 13 | ||
+ | -->{{#if:{{{header13|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header13|}}}}} | ||
+ | {{#if:{{{data13|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label13|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label13|}}}}} | ||
+ | {{!}}{{#if:{{{label13|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data13|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 14 | ||
+ | -->{{#if:{{{header14|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header14|}}}}} | ||
+ | {{#if:{{{data14|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label14|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label14|}}}}} | ||
+ | {{!}}{{#if:{{{label14|}}}|style="padding:4px;"|colspan="2" style="padding:4px; text-align:center;"}}{{!}}{{{data14|}}}}} | ||
+ | |-<!-- | ||
+ | GROUP 15 | ||
+ | -->{{#if:{{{header15|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-header"{{!}}{{{header15|}}}}} | ||
+ | {{#if:{{{data15|}}}| | ||
+ | {{!}}- | ||
+ | {{#if:{{{label15|}}}| | ||
+ | {{!}}class="infobox-label"{{!}}{{{label15|}}}}} | ||
+ | {{!}}{{#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 | ||
+ | -->{{#if:{{{below|}}}| | ||
+ | {{!}}- | ||
+ | {{!}}colspan="2" class="infobox-below"{{!}}{{{below|}}}}} | ||
+ | |}<noinclude> | ||
+ | |||
+ | {{documentation}} | ||
+ | [[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 |