Template:Infobox video game/doc: Difference between revisions

From Research Realm
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Copied from Wikipedia|last update=10 February 2024}}
{{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 ==
<syntaxhighlight lang="wikitext">
<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     =  
}}
}}
</syntaxhighlight>
</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||
<!-- ADD TEMPLATE CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Video game infobox templates| ]]
[[Category:Embeddable templates]]
}}</includeonly>

Latest revision as of 20:38, 7 May 2025

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Infobox video game

A template to generate an infobox for a video game.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

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.

Lineoptional
Collapsiblecollapsible

Whether this screenshot is hidden by default, set to 'yes' to place the screenshot in a collapsible section

Lineoptional
Statestate

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.)

Default
autocollapse
Stringoptional
Imageimage

File name for a screenshot of the image, e.g. 'GIMP screenshot.png'

Fileoptional
Borderborder

Add a border around the image

Example
yes
Stringoptional
Captioncaption

A short description of the image.

Stringoptional
Developerdeveloper

The popular name(s) of the game developer(s), if confirmed by primary sources.

Stringoptional
Publisherpublisher

The popular name(s) of the video game publisher(s), if confirmed by primary sources.

Stringoptional
Seriesseries

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).

Stringoptional
Engineengine

The game's engine. Use only if the engine is independently notable.

Stringoptional
Platformsplatforms

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.

Stringoptional
Releasedreleased

Release date. If possible, use the game's exact release date. Example: November 3, 2013.

Stringoptional
Genregenre

The genre of the game, such as first-person shooter, adventure, etc.

Stringoptional
Modesmodes

Playing modes offered by the game. Currently, the only accepted values are single-player, multiplayer, or both.

Stringoptional
Arcade systemarcade system

no description

Stringoptional
NoteNote

no description

Stringoptional
Directordirector

The popular names of the game directors or creative directors who oversaw the creative development of the game. The names can be wikilinked.

Stringoptional
Producerproducer

The popular names of the game producers in overall charge of the production of the game. The names can be wikilinked.

Stringoptional
Designerdesigner

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.

Stringoptional
Programmerprogrammer

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.

Stringoptional
Artistartist

The popular names of the game's artists. The names can be wikilinked.

Stringoptional
Writerwriter

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.

Stringoptional
Composercomposer

The popular names of the composers who worked on the game's music.

Stringoptional
fetchwikidatafetchwikidata

no description

Unknownoptional
suppressfieldssuppressfields

no description

Unknownoptional
onlysourcedonlysourced

no description

Unknownoptional
refsrefs

no description

Unknownoptional
noiconnoicon

no description

Unknownoptional
altalt

no description

Unknownoptional