Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox: Difference between revisions

Template page
imported>Default
m 1 revision
 
Ezoiar (talk | contribs)
m Reverted edits by Ezoiar (talk) to last revision by M88youngling
Tag: Rollback
 
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:


|-  
|-  
! colspan="2" | <div class="wikia-infobox-section-header">Some attributes</div>
! colspan="2" | <div class="wikia-infobox-section-header">Clan information</div>


|-
|-
! First
! Name
| {{{first|''Unknown''}}}
| {{{name|''Unknown''}}}


|-
|-
! Second
! Position
| {{{second|''Unknown''}}}
| {{{position|''Unknown''}}}


|-
|-
! Third
! Age
| {{{third|''Unknown''}}}
| {{{age|''Unknown''}}}
 
|-
! Status
| {{{status|''Unknown''}}}
 
|-
! Home Country
| {{{home country|''Unknown''}}}


|-
|-

Latest revision as of 11:34, 6 March 2024

Unknown
Clan information
Name Unknown
Position Unknown
Age Unknown
Status Unknown
Home Country Unknown
Other attributes


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

A pretty flower
Floweris flowerum
Floweris flowerum
Clan information
Name Unknown
Position Unknown
Age Unknown
Status Unknown
Home Country Unknown
Other attributes
Fourth Annual