Template:Infobox2
Jump to navigation
Jump to search
</onlyinclude>
}}} |
| style="text-align:center" | Source code:
|{{{sixth}}}
|-
}}}}
|- style="font-size:0; line-height:0;"
! style="width:50%; padding:0" |
! style="width:50%; padding:0" |
|}
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Infobox2/doc to edit this documentation. (How does this work?) |
Description
This template is a sample infobox, to aid in the creation of new infoboxes.
Recommended usage: copy the template code to a new template page, and edit it there.
Infobox and template background
See Help:Templates, Help:Infobox and Help:Tables for some background on how templates and infoboxes work.
Building blocks
The infobox is made of the following basic building blocks:
- Overall table class:
class="wikia-infobox"
- Table heading cell class:
class="wikia-infobox-header"
- Use row header marks ("
!
") for row title cells (and "|
" for normal cells) - Section separator line: give the header below it a wrapping
div
withclass="wikia-infobox-section-header"
- Image cell class:
class="wikia-infobox-image"
- Image caption cell class:
class="wikia-infobox-caption"
Other notes
- The Title, First, Second, and Third rows show "Unknown" if their values are not specified.
- The Image, Imagecaption, Fourth, Fifth, and Sixth rows won't show up if their values are not specified: they are each completely enclosed in an 'if' statement.
Syntax
{{infobox | title = | image = [e.g. "Example.png"] | imagewidth = [e.g. "150"] [default: 210 pixels] | imagecaption = | first = | second = | third = | fourth = | fifth = | sixth = }}
Samples
{{infobox | title = A pretty flower | image = Example.png | imagewidth = 100 | imagecaption = Floweris flowerum | first = Pink and green | second = Outdoors | fourth = Annual }}
Results in...
-Floweris flowerum 12312312 3123123123 | ||||||
Current version: Template:1x|- style="background:#f0f0f0;"
Pink and green 1231231321 32123132123123132 Template:1x|- style="" - |
Active: Template:1x|- style="background:#f0f0f0;"
Outdoors 1231232131231231 2313123123132123132 Template:1x|- style="" - |
OS: Template:1x|- style="background:#f0f0f0;"
Unknown Template:1x|- style="" - |
Authors: Template:1x|- style="background:#f0f0f0;"
Annual 12312312313213 212313213213132132 Template:1x|- style="" - |
Official website: Template:1x|- style="background:#f0f0f0;"
ASDF 1231231231 23123123123123 Template:1x|- style="" - |
Source code: | QWERTY 123123123123123 123123123123123 |
---|---|---|---|---|---|---|