Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 What infoboxes do  





2 What should an infobox contain?  





3 What should an infobox not contain?  





4 Adding an infobox to an article  



4.1  Finding the infobox  





4.2  Editing the target article  





4.3  Troubleshooting  







5 Adding an image to an infobox  





6 Combining multiple infoboxes  





7 Designing an infobox  





8 Deleting an infobox  





9 Infoboxes and user style  





10 See also  














Help:Infobox







تۆرکجه

Башҡортса
Català
Čeština
Cymraeg
Dansk
Deutsch
Dolnoserbski
Esperanto
فارسی
Français
ि
Hornjoserbsce
Ido
Bahasa Indonesia
Italiano
עברית
Jawa
Magyar
Македонски

Bahasa Melayu


Polski
Português
Русский

Simple English
سنڌي
Slovenščina
Srpskohrvatski / српскохрватски
Svenska


Türkçe
Українська
اردو
Tiếng Vit
ייִדיש

 

Edit links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 


















From Wikipedia, the free encyclopedia
 


Example of an infobox

Aninfobox is a fixed-format table usually added to the top right-hand corner of articles to consistently present a summary of some unifying aspect that the articles share and sometimes to improve navigation to other interrelated articles. Many infoboxes also emit structured metadata which is sourced by DBpedia and other third party re-users. The generalized infobox feature grew out of the original taxoboxes (taxonomy infoboxes) that editors developed to visually express the scientific classification of organisms.

The use of infoboxes is neither required nor prohibited for any article. Whether to include an infobox, which infobox to include, and which parts of the infobox to use, is determined through discussion and consensus among the editors at each individual article.

What infoboxes do[edit]

Infobox templates contain important facts and statistics of a type which are common to related articles. For instance, all animals have a scientific classification (species, family and so on), as well as a conservation status. Adding a {{taxobox}} to articles on animals therefore makes it easier to quickly find such information and to compare it with that of other articles.

Infobox templates are like fact sheets, or sidebars, in magazine articles. They quickly summarize important points in an easy-to-read format. However, they are not "statistics" tables in that they (generally) only summarize material from an article—the information should still be present in the main text, partly because it may not be possible for some readers to access the contents of the infobox. In particular, if infobox templates hide long columns of data inside collapsing tables, then readers using assistive technology may miss their presence entirely.

Many infoboxes also emit metadata such as microformats (see WP:WikiProject Microformats).

What should an infobox contain?[edit]

In general, data in infobox templates should be:

What should an infobox not contain?[edit]

In general, data in infobox templates should not have:

Adding an infobox to an article[edit]

There are two steps required to add an infobox to an article:

  1. Finding the infobox
  2. Editing the article

Finding the infobox[edit]

In order to use an infobox in an article, an editor must know its name, parameters, and how those parameters are intended to be used. Because infoboxes are kept in a namespace separate from articles, it takes some effort to identify an infobox by name. Once the editor has the name, however, it is straightforward to look up the infobox's documentation.

There are two ways in which an editor typically locates which infobox they want to use:

For example, the article D-Terminal contains an infobox. To determine which one, simply edit the article:

{{Infobox connector
...
}}

The "{{Infobox connector" identifies the markup between the enclosing braces as a use of the "connector" infobox. The editor can look up the documentation for the template, including a list of parameters, in the Template namespace under Template:Infobox connector.

Editing the target article[edit]

In accordance with Wikipedia's Manual of Style, infoboxes should be placed at the top of an article after any disambiguation links and maintenance tags.

The infobox documentation page usually contains a convenient "blank" template that can be copied directly into the target article. The template consists of opening ({{) and closing (}}) double braces that contain the name of the infobox and a list of parameters without values. An editor then fills in the value for each of the parameters to the right of the corresponding equals sign.

For example:

{{Infobox person
| name               = 
| image              = 
| caption            = 
...
| website            = 
}}

might be filled out like this:

{{Infobox person
| name               = Casanova
| image              = Casanova self portrait.jpg
| caption            = A self-portrait of Casanova
...
| website            = 
}}

In this example, the names of the parameters ("name", "image", "caption", "website") are fixed in the design of the infobox and described in its documentation. A parameter that is misspelled, falsely capitalized, or is not supported by the infobox implementation does not display at all. To find out exactly which parameters are functional, look at the infobox's template page. Anything not listed there will be ignored, even if it works in some other infobox. If you believe that another parameter needs to be added to a given infobox template, then suggest that on the infobox's talk page.

The infobox documentation describes which parameters are required and which are optional. Required parameters display between triple braces (for example, {{{requiredparametername}}}) when previewed or published. Optional parameters may be left empty or omitted entirely.

Troubleshooting[edit]

If you added an infobox and it didn't display correctly, here are the common errors:

Adding an image to an infobox[edit]

Images are generally specified using the image and caption parameters. However, the template may use a different name for this parameter. For example, {{Infobox album}} uses "Cover" instead of "image" and "Caption" instead of "caption".

The image parameter sometimes requires the Wikipedia:Extended image syntax; other times it requires only the image file name depending on the tastes of the editor who created the infobox. An editor can determine this either by experimenting (using the "preview" function) or by consulting the infobox template documentation.

Many images in infoboxes should have a special text alternative for people who cannot see the image.

Combining multiple infoboxes[edit]

If an article requires two or more infoboxes it is often possible to combine them into one, by including the others as a module (or child-, or sub-template) of the first. Alternately, it can be useful to use {{stack}} as a container for them to prevent layout problems with other images and floating elements in the article.

Designing an infobox[edit]

It is a good idea to seek the opinions of other editors before embarking on a design of a new infobox or redesign of an existing one. Most requirements are already met by an existing infobox and most of the remainder can be met with a tweak. Unnecessary duplication leads to clutter and article divergence. Prototype your new design in your own user space. Once prototyped, propose the infobox changes to the appropriate WikiProject and gain consensus before deploying your new design in the template namespace.

Deleting an infobox[edit]

Requests to delete an infobox should be brought to the attention of Wikipedia:Templates for discussion and any WikiProjects associated with the infobox. The WikiProject associated with the subject can usually be found at the top of the talk page of the article. A template may be merged with another rather than deleted outright.

Infoboxes and user style

Users can have user CSS that hides any infoboxes in their own browsers.

To hide all infoboxes, add the following to Special:MyPage/common.css (for all skins, or Special:MyPage/skin.css for just the current skin), on a line by itself:

div.mw-parser-output .infobox { display: none; }

Alternatively, you can add the following code to your common.js or into a browser user script that is executed by an extension like Greasemonkey:

$('.infobox').hide();

Be aware that although, per WP:Manual of Style/Infoboxes, all information in an infobox ideally should also be found in the main body of an article, there isn't perfect compliance with this guideline. For example, the full taxonomic hierarchy in {{Taxobox}}, and the OMIM and other medical database codes of {{Infobox disease}} are often not found in the main article content. The infobox is also often the location of the most significant, even only, image in an article. There is a userscript which removes infoboxes but moves the images contained to separate thumbnails: User:Maddy from Celeste/disinfobox.js.

See also[edit]



Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Infobox&oldid=1188109652"

Categories: 
Wikipedia how-to
Wikipedia glossary items
Wikipedia editor help
Wikipedia infoboxes
Wikipedia template help
Hidden category: 
Pages using sidebar with the child parameter
 



This page was last edited on 3 December 2023, at 11:19 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki