Template:Infobox video game/doc
Template:Documentation subpage Template:High-use Template:Auto italic title Template:Auto short description Template:Lua Template:Uses TemplateStyles Template:Uses Wikidata
This is an infobox for video games. It is capable of pulling reliably sourced values from Wikidata when fields are omitted. (See WP:VG/WD for a guide to editing Wikidata.) To prevent Wikidata from pulling data for a field, use the parameter in the template but leave its contents blank.
Usage
Template:Generic template demo <syntaxhighlight lang="wikitext" style="overflow: auto;"> Template:Main other{{#invoke:infobox|infoboxTemplate | child = | subbox = | bodyclass = ib-video-game hproduct {{#ifeq:|yes|collapsible {{#if:||autocollapse}}}} | templatestyles = Infobox video game/styles.css | aboveclass = fn | italic title =
| above =
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid= |suppressfields= |fetchwikidata=ALL |onlysourced=no |noicon=yes|}}|size=|sizedefault=frameless|upright=1|alt=|border=|suppressplaceholder=yes}}
| caption = {{#if:||}}
| label2 = Developer(s) | data2 =
| label3 = Publisher(s) | data3 =
| label4 = Director(s) | data4 = Template:If first display both
| label5 = Producer(s) | data5 = Template:If first display both
| label6 = Designer(s) | data6 = Template:If first display both
| label7 = Programmer(s) | data7 = Template:If first display both
| label8 = Artist(s) | data8 = Template:If first display both
| label9 = Writer(s) | data9 = Template:If first display both
| label10 = Composer(s) | data10 = Template:If first display both
| label11 = Series | data11 =
| label12 = Engine | data12 =
| label13 = Platform(s) | data13 =
| label14 = Release | data14 =
| label15 = Genre(s) | data15 =
| label16 = Mode(s) | data16 =
| label17 = Arcade system | data17 =
| data30 =
| below = Template:EditOnWikidata
}}Template:Main other{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|ignoreblank=1|preview=Page using Template:Infobox video game with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | state | subbox | suppressfields | title | writer }}Template:Main other{{#if:|}}
</syntaxhighlight> Add the following credit fields for lead developers who worked on the game (please read inclusion notes below):
<syntaxhighlight lang="wikitext" style="overflow: auto;"> Template:Infobox video games </syntaxhighlight>
All fields are optional. See talk page for examples and standards.
Full syntax
<syntaxhighlight lang="wikitext" style="overflow: auto;"> Template:Main other{{#invoke:infobox|infoboxTemplate | child = | subbox = | bodyclass = ib-video-game hproduct {{#ifeq:|yes|collapsible {{#if:||autocollapse}}}} | templatestyles = Infobox video game/styles.css | aboveclass = fn | italic title =
| above =
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid= |suppressfields= |fetchwikidata=ALL |onlysourced=no |noicon=yes|}}|size=|sizedefault=frameless|upright=1|alt=|border=|suppressplaceholder=yes}}
| caption = {{#if:||}}
| label2 = Developer(s) | data2 =
| label3 = Publisher(s) | data3 =
| label4 = Director(s) | data4 =
| label5 = Producer(s) | data5 =
| label6 = Designer(s) | data6 =
| label7 = Programmer(s) | data7 =
| label8 = Artist(s) | data8 =
| label9 = Writer(s) | data9 =
| label10 = Composer(s) | data10 =
| label11 = Series | data11 =
| label12 = Engine | data12 =
| label13 = Platform(s) | data13 =
| label14 = Release | data14 =
| label15 = Genre(s) | data15 =
| label16 = Mode(s) | data16 =
| label17 = Arcade system | data17 =
| data30 =
| below = Template:EditOnWikidata
}}Template:Main other{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|ignoreblank=1|preview=Page using Template:Infobox video game with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | state | subbox | suppressfields | title | writer }}Template:Main other{{#if:|}} </syntaxhighlight>
Parameters
Note: In the following, plurals such as "developers", "publishers", "artists", etc., do not exclude the singular (i.e. "artists", for example, implies "artist or artists"). Similarly, with the credit fields, individual development tasks for one field (e.g. which artists designed characters and which designed concept art; or which writers created story lines and which wrote scripts) should not be mentioned in the infobox but in the article text instead. Individual tasks should be generally kept to prose and the field should only list key people.<ref>August 2010 discussion</ref><ref>February 2013 discussion</ref> For example, the distinction between story and script writers of The Legend of Zelda: Twilight Princess is mentioned in the article's development section.
Parameter | Default | Description |
---|---|---|
collapsible |
no | Set =yes to make the box collapsible.
|
fetchwikidata |
ALL | If you don't want all values to be fetched from wikidata, specify their property names here (see Module:WikidataIB for more details) |
suppressfields |
If you want to exclude some Wikidata values, specify their property names here (see Module:WikidataIB for more details) | |
onlysourced |
yes | Set to no if you only want to fetch values from Wikidata that do not have references (see Module:WikidataIB for more details, and see this RFC, which requires reliable sources for imported Wikidata fields in infoboxes, before doing so) |
qid |
Set to the Wikidata QID of the entry that you want to retrieve info from, if it is not the page that the template is being used on | |
refs |
no | set to yes if you want to fetch references from Wikidata (displayed inline and in the refs section) |
noicon |
no | when set to no, a small pen icon will be shown next to items populated from Wikidata, which can be used to edit the value. If set to yes, the pen icons will be hidden, and instead a single link stating "Edit on Wikidata" will display at the bottom of the Infobox. |
state |
Determines the initial collapsed state of the infobox. Set =collapsed to put the box in collapsed state initially. Set =expanded to put the box in expanded state initially. Set =autocollapse to have the box's initial collapsed state be determined automatically based on the number of other templates in the article that also have the "collapsible" attribute. (Has no effect if collapsible is not used.)
| |
title |
The full name of the game including punctuation and style (e.g., "Super Mario RPG: Legend of the Seven Stars" instead of "Super Mario RPG" or "Legend of the Seven Stars"). Do not wikilink the name of the game. | |
Template:Vanchor |
Template:Wikidata entity link | The ideal image is an English-language cover or, in the case of an arcade game, a promotional flier. Secondarily, use a logo or foreign-language cover. When cover designs differ between regions, use the cover from the region associated with the game's first English language release, though do not change another English-language version that has been uploaded first. Use art without platform decals, such as PC cover art, where possible. Avoid screenshots (per consensus), and multiple images (per WP:FUC #3). Also see the WPVG image guideline.
|
alt |
Alternative text – A short descriptive text associated with an image that serves the same purpose and conveys the same essential information as the image. Useful in situations where the image is not available to the reader, e.g If they are using a screen reader due to a visual impairment. See WP:ALT for information about how to write good Alternative text. | |
caption |
Template:Wikidata entity link | A short description of the image. Is it a flyer, a game cover, or something else? (See above for what an image should consist of.) This is used as the alternate text that will be displayed below the image. (Does not show if image is not used.)
|
Template:Vanchor |
Template:Wikidata entity link | The popular name or names of the video game developers. This field is for the game development company (e.g., Nintendo) or, if confirmed by primary sources, the name of the team that developed the game (e.g., Nintendo EAD). The names can be wikilinked. Individual development tasks handled by different companies (e.g., scenario, programming) and ports should not be mentioned in the infobox but in the article text instead. |
Template:Vanchor |
Template:Wikidata entity link | The popular name or names of the video game publishers. Add publishers for English-language regions and, if different, the region of first release (typically that of the developer's region). The names can be wikilinked. Use the Template:Tl template for regional publishers. If there are many publishers or if the list grows too long, use the Template:Tl template, fill the field title= with the primary publisher and wrap this entry with Template:Tl.
|
series |
Template:Wikidata entity link | The video game series the game is associated with. Only use this field if there is an article for the series. Wikilink and italicize the names (such as ''[[Halo (series)|Halo]]'' ).
|
Template:Vanchor |
Template:Wikidata entity link | The game's engine. Only use this field for those engines listed in Category:Video game engines, either engines with an established, independent article (such as Unreal Engine), or those that have a redirect to their own section on an appropriate developer or series page (such as Dunia Engine). Wikilink its name (such as [[id Tech 3]] ).<ref>November 2010 discussion</ref> Do not list common middleware engines such as Havok, SpeedTree or Euphoria.
|
Template:Vanchor |
Template:Wikidata entity link | The unabbreviated console or operating system family for which the game was specifically developed. With multi-platform games, order by chronology; if the game was released on multiple platforms on the same day, list that subset in alphabetical order. This field includes dedicated ports, but not games in emulation or services. E.g., we would include the platforms listed in green, but not include those red below:
Template:AnchorAlways use Template:Xt instead of Template:!xt. Template:AnchorGames that were developed for macOS should cover the operating system's name as it was at the time of the game's release:
For short platform lists, consider using Template:Tl (Template:Tl) to arrange each platform on its own line. For long platform lists (more than 10 or so platforms), and in which there was a key primary platform, consider using Template:Tl, with its Template:Para set to the primary platform and wrap this entry with Template:Tl. |
Template:Vanchor |
Add release dates according to the platforms field, for English-language regions and the developer's region. Extended open betas and early access releases must be denoted as such, and should be removed once the game has been fully released. (MOS) Do not include version release dates, short alphas and betas, mods, festivals, or pre-order early access. If sourced, use the game's exact release date ("April 10, 2025"). Use the Template:Tl template: {{Video game release|NA|April 10, 2025}} . If there are many release dates, enclose them all with the Template:Tl template<ref>August 2010 discussion</ref> followed by Template:Para with a Template:Tl template using the earliest release date. Platforms can be abbreviated to fit in one line and should be listed as bolded section titles without colons, separated with commas (e.g., PC, 3DS, PS4). Only use WW to provide clarity where a game has various differing release dates including multiple regional release dates on some platforms and worldwide on other platforms.
| |
genre |
Template:Wikidata entity link | The gameplay genre or genres (such as first-person shooter, adventure, etc) the game is categorized in by its developers and publishers, or by reliable sources. Do not include broad gameplay mechanics that are frequently confused with genres, such as open world. This should not include thematic genres (like science fiction, horror, etc.) as video games are more difficult to categorize in such a way. Verifiable thematic genres can be mentioned in the article's body. |
modes |
Template:Wikidata entity link | Playing modes offered by the game. Currently, the only accepted values are single-player, multiplayer, or both.<ref>August 2010 discussion</ref> |
arcade system |
Template:Wikidata entity link Template:Wikidata entity link, qualifier Template:Wikidata entity link | The name of or names associated with the arcade game's system board hardware. In case of unique arcade hardware, omit this field and use those below. |
director |
Template:Wikidata entity link | The popular names of the game directors or creative directors who oversaw the creative development of the game. The names can be wikilinked.
|
producer |
Template:Wikidata entity link | The popular names of the video game producers in overall charge of the production of the game. The names can be wikilinked.
|
designer |
Template:Wikidata entity link | The popular names of the video game designers, i.e. people who worked on the game's system. The names can be wikilinked. This field is often unfilled in modern high-budget development due to large team sizes and collaboration. Older games and indie games are more likely to use this position.
|
programmer |
Template:Wikidata entity link | The popular names of the video game programmers. The names can be wikilinked. This field is often unfilled in modern high-budget development due to large team sizes and collaboration. Older games and indie games are more likely to use this position.
|
artist |
Template:Wikidata entity link | The popular names of the video game artists. The names can be wikilinked.
|
writer |
Template:Wikidata entity link | The popular names of the video game writers. The names can wikilinked. The writers should be listed in the order of their contribution, with those who wrote the game's scenarios listed before the game's story/script writers.
|
composer |
Template:Wikidata entity link | The popular names of the video game composers.
|
commons |
Template:Wikidata entity link | The commons category link |
Microformat
Template revisions
Style changes
Here's a record of previous styles that were very different from one another:
- Gray with alternating colors, but with a gap between cells: [1] (discussion)
- Gray but no alternating colored rows: [2]
- Purple with dark borders: [3]
Field changes
- Input method: The input method section was removed on August 14, 2010. (discussion)
- Ratings: The ratings section was removed on October 2, 2012. (discussion)
- Requirements: The requirements section was removed on December 18, 2012. (discussion)
- Version: The version section was removed on February 24, 2013. (discussion)
- Media: The media field was removed on May 8, 2015. (discussion)
- Arcade specific fields, such as cabinet, display, CPU, and sound, were removed on November 26, 2020. (discussion)
TemplateData
Template:Notice Template:TemplateData header
<templatedata> { "description": "A template to generate an infobox for a video game.", "params": { "title": { "label": "Title", "description": "Title of the game. If not specified the 'name' parameter or the PAGENAME are used. It should be plain text, do not include a wikilink, hyperlink or image in this parameter.", "type": "line", "required": false }, "collapsible": { "label": "Collapsible", "description": "Whether this screenshot is hidden by default, set to 'yes' to place the screenshot in a collapsible section", "type": "line", "required": false }, "state": { "label": "State", "description": "Determines the initial collapsed state of the infobox. Set collapsed to put the box in collapsed state initially. Set expanded to put the box in expanded state initially. Set autocollapse to have the box's initial collapsed state be determined automatically based on the number of other templates in the article that also have the \"collapsible\" attribute. (Has no effect if collapsible is not used.)", "type": "string", "default": "autocollapse", "required": false }, "image": { "label": "Image", "description": "File name for a screenshot of the image, e.g. 'GIMP screenshot.png'", "type": "wiki-file-name", "required": false }, "border": { "label": "Border", "description": "Add a border around the image", "type": "string", "example": "yes" }, "caption": { "label": "Caption", "description": "A short description of the image.", "type": "string", "required": false }, "developer": { "label": "Developer", "description": "The popular name(s) of the game developer(s), if confirmed by primary sources.", "type": "string", "required": false }, "publisher": { "label": "Publisher", "description": "The popular name(s) of the video game publisher(s), if confirmed by primary sources.", "type": "string", "required": false }, "series": { "label": "Series", "description": "The video game series the game is associated with. Only use this field if there is an article for the series. Wikilink and italicize the name(s) (such as Halo).", "type": "string", "required": false }, "engine": { "label": "Engine", "description": "The game's engine", "type": "string", "required": false }, "platforms": { "label": "Platforms", "description": "The unabbreviated console or operating system family the game was specifically developed or officially announced (if not canceled) for. This includes dedicated ports, but not games in emulation or services. See documentation for examples.", "type": "string", "required": false }, "released": { "label": "Released", "description": "Release date. If possible, use the game's exact release date. Example: November 3, 2013.", "type": "string", "required": false }, "genre": { "label": "Genre", "description": "The genre of the game, such as first-person shooter, adventure, etc.", "type": "string", "required": false }, "modes": { "label": "Modes", "type": "string", "required": false, "description": "Playing modes offered by the game. Currently, the only accepted values are single-player, multiplayer, or both." }, "arcade system": { "label": "Arcade system", "type": "string", "required": false }, "Note": { "label": "Note", "type": "string", "required": false }, "director": { "label": "Director", "type": "string", "required": false, "description": "The popular names of the game directors or creative directors who oversaw the creative development of the game. The names can be wikilinked." }, "producer": { "label": "Producer", "type": "string", "required": false, "description": "The popular names of the game producers in overall charge of the production of the game. The names can be wikilinked." }, "designer": { "label": "Designer", "type": "string", "required": false, "description": "The popular names of the game designers, i.e. people who worked on the game's system. The names can be wikilinked. This field is often unfilled in modern high-budget development due to large team sizes and collaboration. Older games and indie games are more likely to use this position." }, "programmer": { "label": "Programmer", "type": "string", "required": false, "description": "The popular names of the game programmers. The names can be wikilinked. This field is often unfilled in modern high-budget development due to large team sizes and collaboration. Older games and indie games are more likely to use this position." }, "artist": { "label": "Artist", "type": "string", "required": false, "description": "The popular names of the game's artists. The names can be wikilinked." }, "writer": { "label": "Writer", "type": "string", "required": false, "description": "The popular names of the game's writers. The names can wikilinked. The writers should be listed in the order of their contribution, with those who wrote the game's scenarios/scripts listed before the game's story writers." }, "composer": { "label": "Composer", "type": "string", "required": false, "description": "The popular names of the composers who worked on the game's music." }, "fetchwikidata": { "label": "fetchwikidata" }, "suppressfields": { "label": "suppressfields" }, "onlysourced": { "label": "onlysourced" }, "qid": { "label": "qid", "description": "Wikidata's unique, persistent identifier for the data. Short for Q-identifier. Consists of the letter Q and a number.", "example": "Q12345", "type": "string" }, "refs": { "label": "refs" }, "noicon": { "label": "noicon" }, "alt": { "label": "alt" } }, "format": "block" } </templatedata>
Example
Template:Main other{{#invoke:infobox|infoboxTemplate | child = | subbox = | bodyclass = ib-video-game hproduct {{#ifeq:|yes|collapsible {{#if:|{{{state}}}|autocollapse}}}} | templatestyles = Infobox video game/styles.css | aboveclass = fn | italic title = no
| above = Nintendogs
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid= |suppressfields= |fetchwikidata=ALL |onlysourced=no |noicon=yes|Example-serious.jpg}}|size=|sizedefault=frameless|upright=1|alt=|border=|suppressplaceholder=yes}}
| caption = {{#if:Example-serious.jpg|An example image|An example image}}
| label2 = Developer(s) | data2 = Nintendo EAD
| label3 = Publisher(s) | data3 = Nintendo
| label4 = Director(s) | data4 = Kiyoshi Mizuki
| label5 = Producer(s) | data5 = Hideki Konno
| label6 = Designer(s) | data6 = Template:If first display both
| label7 = Programmer(s) | data7 = Template:If first display both
| label8 = Artist(s) | data8 = Template:If first display both
| label9 = Writer(s) | data9 = Template:If first display both
| label10 = Composer(s) | data10 = Hajime Wakai
| label11 = Series | data11 = Template:If first display both
| label12 = Engine | data12 = Template:If first display both
| label13 = Platform(s) | data13 = Nintendo DS
| label14 = Release | data14 = Template:Collapsible list
| label15 = Genre(s) | data15 = Pet-raising simulation
| label16 = Mode(s) | data16 = Single-player, multiplayer
| label17 = Arcade system | data17 = Template:If first display both
| data30 =
| below = Template:EditOnWikidata
}}Template:Main other{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|ignoreblank=1|preview=Page using Template:Infobox video game with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | state | subbox | suppressfields | title | writer }}Template:Main other{{#if:Example-serious.jpg|}} <syntaxhighlight lang="wikitext" style="overflow: auto;"> Template:Main other{{#invoke:infobox|infoboxTemplate | child = | subbox = | bodyclass = ib-video-game hproduct {{#ifeq:|yes|collapsible {{#if:|{{{state}}}|autocollapse}}}} | templatestyles = Infobox video game/styles.css | aboveclass = fn | italic title =
| above = Nintendogs
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid= |suppressfields= |fetchwikidata=ALL |onlysourced=no |noicon=yes|Example-serious.jpg}}|size=|sizedefault=frameless|upright=1|alt=|border=|suppressplaceholder=yes}}
| caption = {{#if:Example-serious.jpg|An example image|An example image}}
| label2 = Developer(s) | data2 = Nintendo EAD
| label3 = Publisher(s) | data3 = Nintendo
| label4 = Director(s) | data4 = Kiyoshi Mizuki
| label5 = Producer(s) | data5 = Hideki Konno
| label6 = Designer(s) | data6 = Template:If first display both
| label7 = Programmer(s) | data7 = Template:If first display both
| label8 = Artist(s) | data8 = Template:If first display both
| label9 = Writer(s) | data9 = Template:If first display both
| label10 = Composer(s) | data10 = Hajime Wakai
| label11 = Series | data11 = Template:If first display both
| label12 = Engine | data12 = Template:If first display both
| label13 = Platform(s) | data13 = Nintendo DS
| label14 = Release | data14 = Template:Collapsible list
| label15 = Genre(s) | data15 = Pet-raising simulation
| label16 = Mode(s) | data16 = Single-player, multiplayer
| label17 = Arcade system | data17 = Template:If first display both
| data30 =
| below = Template:EditOnWikidata
}}Template:Main other{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|ignoreblank=1|preview=Page using Template:Infobox video game with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | state | subbox | suppressfields | title | writer }}Template:Main other{{#if:Example-serious.jpg|}} </syntaxhighlight>
Tracking categories
See also
- Template:Tl for video game franchises and series.
- Template:Tl for general software.
- WP:IB - list of infoboxes
Notes