Infobox
Talk0
390pages on
this wiki
this wiki
Template page
Template documentation (for the template shown above, sometimes hidden or invisible)
Meta-template used for constructing infobox templates. Infoboxes are fixed-format tables designed to be added to the top right-hand corner of articles to consistently present a summary of the article content.
Usage
Edit
{{Infobox
|title ={{{title|empty}}}
|titlehead =example
|titleheadlink =examples
|image ={{{image|empty}}}
|image_px ={{{image_px|}}}
|data =
{{Datarow|Example label|Example content}}
|extra =Example footnote
}}
Most of the parameters should usually be passed down from the "end" infobox (i.e. the ones directly used in articles). The exceptions are "technical" parameters which determine the look of the infobox itself (columns, data, titlehead, titleheadlink, width).
Parameters
Edit
S
(default: "2")
columnsAmount of columns the infobox has. This may need to be changed when using certain "components".
R
dataThe content rows of the infobox, specified by using the templates listed in "Components" below.
N
desc, desc2Description for the corresponding
image, displayed below the image.N
extra, extra2Content of row(s) below main infobox content, i.e. below the
data rows.N
game up to game5Game abbreviation(s); for accepted abbreviations please see {{abb}}. These are used to create dynamic links for
titlehead. For usage details, please see titleheadlink below.N
iconSmall image in the main infobox header, to the right of
title, titlehead and subtitle.N
(default: "55x55px")
icon_pxDimensions (height and width) of
icon.N
image, image2Name of full-width image(s) (without "File:") displayed below main header and above components specified in
data.N
(default: "(
image_px, image2_pxwidth-25)x(width-25)px")Width of the corresponding
image, e.g. "250px". If set to "noresize", the image will be displayed at its original size. Be careful not to make this wider than the infobox itself (see width below).N
subtitleText in small font below
title.R
titleMain title/"headline" of the infobox.
N
titleheadText in small font above
title. Titleheads can be created dynamically by using the parameters game, game2 etc (up to game5). For details, see titleheadlink below.N
titleheadlinkThis parameter links
titlehead to an overview page (like Weapon). When used in conjunction with game parameters, it can be used to dynamically create links to game-specific overview pages (like Fallout 3 weapons. For the exact behaviour please see {{abblink}}.
This is useful if an infobox template is used for multiple games and you want it to link to the correct overview pages depending on which game it is used for. For example, setting titlehead to "weapon" and titleheadlink to "weapons", you can then let the editor in the respective article specify the game parameters and it will link to the correct overview page (e.g. "Fallout 3 weapons" if the editor enters "FO3").N
(default: "275")
widthWidth of the infobox in pixels. Infoboxes should only be resized if really necessary in order to achieve a standardized look across all infoboxes.
Components
Edit
For details on how to use the components see their respective pages.
- {{Datarow}}
- {{Datarow double}}
- {{Datarow optional}}
- {{Data2row}}
- {{Data3row}}
- {{Dataheader}}
- {{Dataheader optional}}
See also: Category:Infobox components.
Example
Edit
| |||||||||
{{infobox
|title =Example title
|titlehead =item
|titleheadlink =Items - Small Guns
|image =Wiki.png
|image_px =100px
|data =
{{Datarow|Example label|Example content}}
|extra =Example footnote
}}
Technical
Edit
- Auxiliary templates: {{Abb}}, {{Abblink}}
- Standardized documentation for templates based on this one: {{Infobox/doc/standard}}
Documentation transcluded from Template:Infobox/doc.