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

{{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

Sometimes required or at least one required
(default: "2")
columns
Amount of columns the infobox has. This may need to be changed when using certain "components".
Required
data
The content rows of the infobox, specified by using the templates listed in "Components" below.
Optional
desc, desc2
Description for the corresponding image, displayed below the image.
Optional
extra, extra2
Content of row(s) below main infobox content, i.e. below the data rows.
Optional
game up to game5
Game abbreviation(s); for accepted abbreviations please see {{abb}}. These are used to create dynamic links for titlehead. For usage details, please see titleheadlink below.
Optional
icon
Small image in the main infobox header, to the right of title, titlehead and subtitle.
Optional
(default: "55x55px")
icon_px
Dimensions (height and width) of icon.
Optional
image, image2
Name of full-width image(s) (without "File:") displayed below main header and above components specified in data.
Optional
(default: "(width-10)x(width-10)px")
image_px, image2_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).
Optional
subtitle
Text in small font below title.
Required
title
Main title/"headline" of the infobox.
Optional
titlehead
Text 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.
Optional
titleheadlink
This 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").
Optional
(default: "275")
width
Width of the infobox in pixels. Infoboxes should only be resized if really necessary in order to achieve a standardized look across all infoboxes.

Components

For details on how to use the components see their respective pages.

See also: Category:Infobox components.

Example

Example title
Wiki.png
Example label Example content
Example footnote
{{infobox old
|title         =Example title
|titlehead     =weapon
|titleheadlink =weapons
|image         =Wiki.png
|image_px      =100px
|data          =
{{Datarow|Example label|Example content}}
|extra         =Example footnote
}}

Technical

Documentation transcluded from Template:Infobox old/doc.
社区内容除另有注明外,均在CC-BY-SA许可协议下提供。