FANDOM


 
Line 1: Line 1:
+
{| class="infobox" style="font-size:89%; width:300px;"
  +
|-
  +
! class="color1" colspan="2" style="font-size:120%; padding:1em;" | {{{Box title|No Title}}}
  +
{{#if: {{{image|}}}|
  +
{{!}}-
  +
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{PAGENAME:{{{image}}}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
  +
|
  +
}}
  +
|-
  +
| style="width:30%;" |
  +
'''{{{Row 1 title|No Title}}}'''
  +
| style="width:70%;" |
 
{{{Row 1 info|No information}}}
 
{{{Row 1 info|No information}}}
 
{{#if: {{{Row 2 title|}}}|
 
{{#if: {{{Row 2 title|}}}|

Latest revision as of 18:49, June 5, 2014

No Title

No Title

No information

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox/doc to edit this documentation. (How does this work?)

DescriptionEdit

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 backgroundEdit

See Help:Templates, Help:Infobox and Help:Tables for some background on how templates and infoboxes work.

Building blocksEdit

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 with class="wikia-infobox-section-header"
  • Image cell class: class="wikia-infobox-image"
  • Image caption cell class: class="wikia-infobox-caption"

Other notesEdit

  • 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.

SyntaxEdit

{{infobox
 | title         = 
 | image         = [e.g. "Example.jpg"]
 | imagewidth    = [e.g. "150"] [default: 210 pixels]
 | imagecaption  = 
 | first         =
 | second        =
 | third         =
 | fourth        =
 | fifth         =
 | sixth         =
}}

SamplesEdit

{{infobox
 | title         = A pretty flower
 | image         = Example.jpg
 | imagewidth    = 100
 | imagecaption  = Floweris flowerum
 | first         = Pink and green
 | second        = Outdoors
 | fourth        = Annual
}}

Results in...

No Title
Example

No Title

No information

Community content is available under CC-BY-SA unless otherwise noted.