Template:Infobox video game/doc: Difference between revisions
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Copied from Wikipedia| | {{Copied from Wikipedia|date=10 February 2024}} | ||
{{Auto italic title}} | {{Auto italic title}} | ||
{{Lua|Module:InfoboxImage|Module:String2|Module:Check for unknown parameters}} | {{Lua|Module:InfoboxImage|Module:String2|Module:Check for unknown parameters}} | ||
Line 8: | Line 8: | ||
== Usage == | == Usage == | ||
< | <pre> | ||
{{Infobox video game | {{Infobox video game | ||
| collapsible = | | collapsible = | ||
| state = | | state = | ||
| italic title = | | italic title = | ||
| title = | | title = | ||
| image = | | image = | ||
| alt = | | alt = | ||
| caption = | | caption = | ||
| developer = | | developer = | ||
| publisher = | | publisher = | ||
| series = | | series = | ||
| engine = | | engine = | ||
| platforms = | | platforms = | ||
| released = | | released = | ||
| genre = | | genre = | ||
| modes = | | modes = | ||
| arcade system = | | arcade system = | ||
| director = | | director = | ||
| producer = | | producer = | ||
| designer = | | designer = | ||
| programmer = | | programmer = | ||
| artist = | | artist = | ||
| writer = | | writer = | ||
| composer = | | composer = | ||
}} | }} | ||
</pre> | |||
== TemplateData == | |||
{{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. Use only if the engine is independently notable.", | |||
"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" | |||
}, | |||
"refs": { | |||
"label": "refs" | |||
}, | |||
"noicon": { | |||
"label": "noicon" | |||
}, | |||
"alt": { | |||
"label": "alt" | |||
} | |||
}, | |||
"format": "block" | |||
} | |||
</templatedata> | |||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| |
Latest revision as of 20:38, 7 May 2025
![]() | This is a documentation subpage for Template:Infobox video game. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template and its description were copied from Wikipedia on 10 February 2024. The original template can be found here. |
![]() | This infobox should italicize the article title automatically. If this is not required, add |italic title=no to the list of parameters. If this is required but the title is not being italicized, try |italic title=force . |
![]() | This template uses Lua: |
![]() | This template uses TemplateStyles: |
This is an infobox for video games. It was copied from Wikipedia; see the description there for more information.
Usage
{{Infobox video game | collapsible = | state = | italic title = | title = | image = | alt = | caption = | developer = | publisher = | series = | engine = | platforms = | released = | genre = | modes = | arcade system = | director = | producer = | designer = | programmer = | artist = | writer = | composer = }}
TemplateData
TemplateData for Infobox video game
A template to generate an infobox for a video game.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | 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. | Line | optional |
Collapsible | collapsible | Whether this screenshot is hidden by default, set to 'yes' to place the screenshot in a collapsible section | Line | optional |
State | 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.)
| String | optional |
Image | image | File name for a screenshot of the image, e.g. 'GIMP screenshot.png' | File | optional |
Border | border | Add a border around the image
| String | optional |
Caption | caption | A short description of the image. | String | optional |
Developer | developer | The popular name(s) of the game developer(s), if confirmed by primary sources. | String | optional |
Publisher | publisher | The popular name(s) of the video game publisher(s), if confirmed by primary sources. | String | optional |
Series | series | 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). | String | optional |
Engine | engine | The game's engine. Use only if the engine is independently notable. | String | optional |
Platforms | platforms | 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. | String | optional |
Released | released | Release date. If possible, use the game's exact release date. Example: November 3, 2013. | String | optional |
Genre | genre | The genre of the game, such as first-person shooter, adventure, etc. | String | optional |
Modes | modes | Playing modes offered by the game. Currently, the only accepted values are single-player, multiplayer, or both. | String | optional |
Arcade system | arcade system | no description | String | optional |
Note | Note | no description | String | optional |
Director | director | The popular names of the game directors or creative directors who oversaw the creative development of the game. The names can be wikilinked. | String | optional |
Producer | producer | The popular names of the game producers in overall charge of the production of the game. The names can be wikilinked. | String | optional |
Designer | designer | 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. | String | optional |
Programmer | programmer | 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. | String | optional |
Artist | artist | The popular names of the game's artists. The names can be wikilinked. | String | optional |
Writer | writer | 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. | String | optional |
Composer | composer | The popular names of the composers who worked on the game's music. | String | optional |
fetchwikidata | fetchwikidata | no description | Unknown | optional |
suppressfields | suppressfields | no description | Unknown | optional |
onlysourced | onlysourced | no description | Unknown | optional |
refs | refs | no description | Unknown | optional |
noicon | noicon | no description | Unknown | optional |
alt | alt | no description | Unknown | optional |