Open main menu

BBW Wiki β

Template:Infobox

Revision as of 02:04, 28 March 2017 by Default (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<infobox> <title source="title"><default>Unknown</default></title> <image source="image"><caption source="imagecaption"/></image> <group> <header>Some attributes</header> <label>First</label><default>Unknown</default> <label>Second</label><default>Unknown</default> <label>Third</label><default>Unknown</default> </group> <group> <header>Other attributes</header> <label>Fourth</label> <label>Fifth</label> <label>Sixth</label> </group> <group layout="horizontal"> <header>Order</header> <label>Previous</label> <label>Next</label> </group> </infobox>

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 for some background on how templates and infoboxes work.

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.

SyntaxEdit

{{infobox
 | title         = 
 | image         = [e.g. "Example.jpg"]
 | imagecaption  = 
 | first         =
 | second        =
 | third         =
 | fourth        =
 | fifth         =
 | sixth         =
 | previous      =
 | next          =
}}

SamplesEdit

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

Results in...

<infobox> <title source="title"><default>Unknown</default></title> <image source="image"><caption source="imagecaption"/></image> <group> <header>Some attributes</header> <label>First</label><default>Unknown</default> <label>Second</label><default>Unknown</default> <label>Third</label><default>Unknown</default> </group> <group> <header>Other attributes</header> <label>Fourth</label> <label>Fifth</label> <label>Sixth</label> </group> <group layout="horizontal"> <header>Order</header> <label>Previous</label> <label>Next</label> </group>

</infobox>