Help:Infoboxes
![]() |
|
![]() |
Infoboxes are floating elements in wiki pages that can be used to display short numerical or categorical information about a subject.
Putting in an infobox
Infoboxes should generally be put at the very top of the page or section that the information in it is about. For the basic code, see the specific infobox's documentation page. It is typical but not required to have the first row be an image, followed by the content rows. For a list of infoboxes, see Category:Infobox templates. For the base infobox template, which is more customizable, see Module:Infobox. In addition, adding {{clear}} after an infobox at any point makes everything after the template appear below the infobox, which can create white space (see below) but also lets some objects (like tables) be full width.
Making a more specific infobox
For infoboxes that are more specific to something, you can make more specific infobox templates, such as {{Game infobox}} for games. These infoboxes can have either set values or parameters set to the parameters in the main infobox template, and the documentation uses the parameters used. For example,
{{#invoke:infobox|main|color=white|title={{{Infobox-title|Default title}}}| The title has a default value but can be changed // But the color and this row cannot be changed And this content doesn't have a default // {{{row2content}}} }}
produces the infobox on the right
and the documentation would mention that the Infobox-title
parameter is optional but row2content
is not. The PAGENAME magic word can also be helpful for titles. Specific infoboxes should be made in the Template: namespace and have <noinclude>[[Category:Infobox templates]]
and a basic explanation of how to use it at the bottom.