Template:PI video game/doc
From Anthrodia Atlas
| This is a documentation subpage for Template:PI video game. It contains usage information, categories and other content that is not part of the original page. |
Description
This infobox template is built with the PortableInfobox (PI) extension. It should be used in articles about video games.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Title (main header) of infobox; optional, by default uses page name. | Content | optional |
| Image | image | Image file of media's title screenshot, or official art which can represent it otherwise such as logo, to be used in infobox; should be just name of the file with file extension. Can support several images with the use of <gallery> tag. | File | optional |
| Image caption | caption | Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored. | Content | optional |
| Series | series | Name of or link to article about the series (franchise) the game is part of. | Content | optional |
| Genre | genre | Genre of the game; can be formatted inline with commas, separate lines with <br> or as bullet list with *. | Content | optional |
| Mode | mode | Mode (type) of the game. | Content | optional |
| Engine | engine | Game engine which powers the game. | Content | optional |
| Game platform | platform | List of platforms where the game is available to play. | Content | optional |
| Developer | developer | Name of the studio which developed the game. | Content | optional |
| Publisher | publisher | Name of the game publishing company which released the game. | Content | optional |
| Announcement date | announce | Date of game's first official announcement. | Date | optional |
| Release date | release | Date of game's release. | Date | optional |
| Content rating | rating | Content rating of the game. | Content | optional |
| Director | director | Name of or link to article about director of the game. | Content | optional |
| Designer | design | Name of or link to article about game designer of the anime. | Content | optional |
| Programmer | programmer | Name of or link to article about (main) programmer of the game. | Content | optional |
| Artist | art | Name of or link to article about (main) artist (or art director) of the game. | Content | optional |
| Screenwriter | writer | Name of or link to article about screenwriter of the anime. | Content | optional |
| Music composer | music | Name of or link to article about musical composer of the game, or music artists who appeared in it. | Content | optional |
| Related articles | related | A collapsible section which will contain links to closely related articles; optional, if added collapsed by default; can be formatted inline with commas, separate lines with <br> or as bullet list with *. | Content | optional |
| Disambiguation page link | disambig | Optional parameter to provide a link to corresponding disambiguation page; requires only name without link brackets ([[]]). | Content | optional |
Syntax
Bellow is a boilerplate of infobox which can be copied and filled up in source editor:
{{PI video game
|title =
|image =
|caption =
|series =
|genre =
|mode =
|engine =
|platform =
|developer =
|publisher =
|announce =
|release =
|rating =
|director =
|design =
|programmer =
|art =
|writer =
|chardesign =
|music =
|related =
|disambig =
}}
Usage example
Bellow is an example of template's code with filled up parameters:
{{PI video game
|title = BioShock
|image = De Alice's Abenteuer im Wunderland Carroll pic 15.jpg
|series = ''[[BioShock (series)|BioShock]]''
|genre = First-person shooter
|mode = Single-player
|engine = Unreal Engine 2.5
|platform = Microsoft Windows<br>Xbox 360<br>PlayStation 3
|developer = [[Irrational Games]]<br>[[2K Australia]]
|publisher = 2K
|release = August 21, 2007
|rating = 18+
|director = [[Ken Levine]]
|design = [[Paul Hellquist]]
|programmer = Rowan Wyborn<br>Christopher Kline
|art = [[Scott Sinclair]]
|writer = Ken Levine
|music = [[Garry Schyman]]
}}
See the result on the right (links are omitted).
Notes
These are notes provided by Miraheze Developers Wiki (they can be removed after import):
- When importing this template to another wiki, you should enable extension PortableInfobox at Special:ManageWiki/extensions#mw-section-parserhooks, and might need to make an empty or small edit in newly created template for it to start working.
- To change visual appearance of portable infobox, modify its CSS at wiki's
MediaWiki:Common.csspage or by using TemplateStyles extension. - Upon import to another wiki the title can be changed to just "game" or whatever user prefers, so use that title instead of "PI video game" in the beginning of the boilerplate code.
- This documentation contains TemplateData to provide parameters in visual editor.