Difference between revisions of "Template:Infobox"
From WikiTemp, the GBAtemp wiki
m |
(Seems its redundant) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
|- | |- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
− | {{!}}colspan="2"{{!}}[[{{# | + | {{!}}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 | ||
Line 157: | Line 157: | ||
{{!}}class="infobox-label"{{!}}{{{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 |
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 |