Help:Infobox

From Wikipedia, the free encyclopedia

Jump to: navigation, search
For a list of infoboxes, see Category:Infobox templates.
For the style guide, see Wikipedia:Manual of Style (infoboxes).
For the project, see Wikipedia:WikiProject Infoboxes.
WikiProject Infoboxes
Style and help
List
Cleanup
Cleanup categories:

Talkpage templates:
{{Cleanup-infobox}}
{{Newinfobox}}
{{Reqinfobox}}
Article templates:
{{Missing-taxobox}}
{{Incompleteinfobox}}

Creation

Meta template:
{{Infobox}}
Proposals:
List of infoboxes/Proposed

An infobox on Wikipedia is a consistently-formatted table which is present in articles with a common subject to provide summary information consistently between articles or improve navigation to closely related articles in that subject. (An infobox is a generalization of a taxobox (from taxonomy) which summarizes information for an organism or group of organisms.)

Contents

[edit] Creating infoboxes

If you make an infobox for a new project, it should be placed on the Wikipedia:List of infoboxes/Proposed sub-page when it is proposed and added to the appropriate sub-category when it has been implemented.

If you want to redesign an Infobox, please take it up with the appropriate WikiProject.

An infobox may or may not use the template software feature. Infobox templates are an alternative to static infoboxes; they can be used to create a common look between subject items, with a minimum of coding within articles. See also Wikipedia:Manual of Style (infoboxes).

If your infobox is right-aligned, please consider having it no wider than 1/3 the width of the available page.

For a sample infobox, see either Template:Infobox or Template:Infobox Conditionals.

[edit] Using sortkeys

This section applies when adding an infobox to the category, nothing special needs to be done when adding an infobox to an article.

To add an infobox to the category, make sure to use a Sort key. For example, when adding Template:Infobox Officeholder, one would use the following code:

{| class="infobox"
|...table code...
|}<noinclude>
[[Category:Infobox templates|President]]
</noinclude>

Piping the category with the word "President" ensures the template is inserted into the category under "P".

A <noinclude> tag is required to ensure only the template appears in the category (as opposed to every article the infobox is part of appearing in the category).
Please include the first noinclude tag on the same line as the end of the table. For example
|}<noinclude>
Not doing this may break the formatting on articles using the template.

[edit] Basic infobox

{{{name}}}
[[Image:{{{image}}}|300px| ]]
{{{caption}}}
Data 1: {{{data1}}}
Data 2: this text displayed if data2 not defined
Data 3 (data hidden if data3 empty or not defined):


[edit] Taxobox example

This is an example of a taxobox. See Wikipedia:Taxobox usage for full instructions.

Domestic Dog
Labrador Retriever, a breed of domestic dog
Labrador Retriever, a breed of domestic dog
Conservation status
Domesticated
Scientific classification
Kingdom: Animalia
Phylum: Chordata
Subphylum: Vertabrata
Class: Mammalia
Order: Carnivora
Family: Canidae
Genus: Canis
Species: C. lupus
Subspecies: C. l. familiaris
Trinomial name
Canis lupus familiaris
(Carl Linnaeus, 1758)
Personal tools