FANDOM


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.

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

{{InfoboxNew
 | Box Title     = 
 | supertitle    =
 | image         = [e.g. "Example.jpg"] resized to 128x128 in CSS
 | Row 1 title   =
 | Row 1 info    =
 | Row 2 title   =
 | Row 2 info    =
 | Row 3 title   =
 | Row 3 info    =
...
 | Row 32 title   =
 | Row 32 info    =
}}

Samples

{{InfoboxNew
 | Box title     = Sunfish
 | supertitle    = Special Item
 | image         = image:Sunfish.png‎
 | Row 1 title   = Location
 | Row 1 info    = Angler Island
 | GroupRow1012    = Sell Price
 | Row 10 title   = Min
 | Row 10 info    = 10 {{Coin}}
 | Row 11 title   = Def
 | Row 11 info    = 15 {{Coin}}
 | Row 12 title   = Max
 | Row 12 info    = 30 {{Coin}}
}}

Results in...

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