Difference between revisions of "Template:Infobox2"
Jump to navigation
Jump to search
m (Tag: Undo) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{| class=" | + | <includeonly>{| class="wikitable" style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3" |
− | |||
|- | |- | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!}} class="wikia-infobox-image" colspan="2" style="text-align:center" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]] | {{!}} class="wikia-infobox-image" colspan="2" style="text-align:center" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]] | ||
| }} | | }} | ||
− | |||
|- | |- | ||
{{#if: {{{imagecaption|}}} | | {{#if: {{{imagecaption|}}} | | ||
{{!}} style="text-align:center" colspan="2" {{!}} {{{imagecaption}}} | {{!}} style="text-align:center" colspan="2" {{!}} {{{imagecaption}}} | ||
| }} | | }} | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! Current version: | ! Current version: | ||
| {{{first|''Unknown''}}} | | {{{first|''Unknown''}}} | ||
− | |||
|- | |- | ||
! Active: | ! Active: | ||
| {{{second|''Unknown''}}} | | {{{second|''Unknown''}}} | ||
− | |||
|- | |- | ||
! OS: | ! OS: | ||
| {{{third|''Unknown''}}} | | {{{third|''Unknown''}}} | ||
− | |||
|- | |- | ||
! Authors: | ! Authors: | ||
| {{{fourth|''Unknown''}}} | | {{{fourth|''Unknown''}}} | ||
− | |||
|- | |- | ||
! Official website: | ! Official website: | ||
| {{{fifth|''Unknown''}}} | | {{{fifth|''Unknown''}}} | ||
− | |||
|- | |- | ||
{{#if:{{{sixth<includeonly>|</includeonly>}}} | | {{#if:{{{sixth<includeonly>|</includeonly>}}} | | ||
− | {{!}}'''Source code:''' | + | {{!}} style="text-align:center" {{!}} '''Source code:''' |
{{!}}{{{sixth}}} | {{!}}{{{sixth}}} | ||
{{!}}- | {{!}}- | ||
− | }} | + | }}}} |
− | |||
|- style="font-size:0; line-height:0;" | |- style="font-size:0; line-height:0;" | ||
! style="width:50%; padding:0" | | ! style="width:50%; padding:0" | | ||
! style="width:50%; padding:0" | | ! style="width:50%; padding:0" | | ||
− | + | |}</includeonly><noinclude><br style="clear:both;"/> | |
− | |}</ | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 22:45, 27 January 2024
}}} |
| style="text-align:center" | Source code:
|{{{sixth}}}
|-
}}}}
|- style="font-size:0; line-height:0;"
! style="width:50%; padding:0" |
! style="width:50%; padding:0" |
|}</includeonly>
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[edit]
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[edit]
See Help:Templates, Help:Infobox and Help:Tables for some background on how templates and infoboxes work.
Building blocks[edit]
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[edit]
- 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[edit]
{{infobox | title = | image = [e.g. "Example.png"] | imagewidth = [e.g. "150"] [default: 210 pixels] | imagecaption = | first = | second = | third = | fourth = | fifth = | sixth = }}
Samples[edit]
{{infobox | title = A pretty flower | image = Example.png | imagewidth = 100 | imagecaption = Floweris flowerum | first = Pink and green | second = Outdoors | fourth = Annual }}
Results in...