FANDOM


m (1 revision: Sploder Series Wiki)
Line 1: Line 1:
<onlyinclude>{| class="wikia-infobox"
 
   
|-
+
{{{Row 1 info|No information}}}
! class="wikia-infobox-header" colspan="2" | {{{title|''Unknown''}}}
+
{{#if: {{{Row 2 title|}}}|
+
{{!}}-
|-
+
{{!}}
{{#if: {{{image|}}} |
+
'''{{{Row 2 title}}}'''
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
+
{{!}}
| }}
+
{{{Row 2 info|No information}}}
+
{{#if: {{{Row 3 title|}}}|
|-
+
{{!}}-
{{#if: {{{imagecaption|}}} |
+
{{!}}
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
+
'''{{{Row 3 title}}}'''
| }}
+
{{!}}
+
{{{Row 3 info|No information}}}
|-
+
{{#if: {{{Row 4 title|}}}|
! colspan="2" | <div class="wikia-infobox-section-header">Some attributes</div>
+
{{!}}-
+
{{!}}
|-
+
'''{{{Row 4 title}}}'''
! First
+
{{!}}
| {{{first|''Unknown''}}}
+
{{{Row 4 info|No information}}}
+
{{#if: {{{Row 5 title|}}}|
|-
+
{{!}}-
! Second
+
{{!}}
| {{{second|''Unknown''}}}
+
'''{{{Row 5 title}}}'''
+
{{!}}
|-
+
{{{Row 5 info|No information}}}
! Third
+
{{#if: {{{Row 6 title|}}}|
| {{{third|''Unknown''}}}
+
{{!}}-
+
{{!}}
|-
+
'''{{{Row 6 title}}}'''
! colspan="2" | <div class="wikia-infobox-section-header">Other attributes</div>
+
{{!}}
+
{{{Row 6 info|No information}}}
|-
+
{{#if: {{{Row 7 title|}}}|
{{#if: {{{fourth|}}} |
+
{{!}}-
! Fourth
+
{{!}}
{{!}} {{{fourth}}}
+
'''{{{Row 7 title}}}'''
| }}
+
{{!}}
+
{{{Row 7 info|No information}}}
|-
+
{{#if: {{{Row 8 title|}}}|
{{#if: {{{fifth|}}} |
+
{{!}}-
! Fifth
+
{{!}}
{{!}} {{{fifth}}}
+
'''{{{Row 8 title}}}'''
| }}
+
{{!}}
+
{{{Row 8 info|No information}}}
|-
+
{{#if: {{{Row 9 title|}}}|
{{#if: {{{sixth|}}} |
+
{{!}}-
! Sixth
+
{{!}}
{{!}} {{{sixth}}}
+
'''{{{Row 9 title}}}'''
| }}
+
{{!}}
+
{{{Row 9 info|No information}}}
|- style="font-size:0; line-height:0;"
+
{{#if: {{{Row 10 title|}}}|
! style="width:50%; padding:0" |
+
{{!}}-
! style="width:50%; padding:0" |
+
{{!}}
+
'''{{{Row 10 title}}}'''
|}</onlyinclude><noinclude><br style="clear:both;"/>
+
{{!}}
  +
{{{Row 10 info|No information}}}
  +
{{#if: {{{Row 11 title|}}}|
  +
{{!}}-
  +
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
  +
'''Too many parameters'''
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|
  +
}}
  +
|}
  +
<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 18:48, June 5, 2014

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?)

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 with class="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.jpg"]
 | imagewidth    = [e.g. "150"] [default: 210 pixels]
 | imagecaption  = 
 | first         =
 | second        =
 | third         =
 | fourth        =
 | fifth         =
 | sixth         =
}}

Samples

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