Template:Infobox game: Difference between revisions
Appearance
Computerwhz (talk | contribs) m Protected "Template:Infobox game": Template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)) |
Computerwhz (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<table class="infobox" style="float:right; clear:right; width:22em; margin:0 0 1em 1em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; color:#202122; font-size:88%; line-height:1.5;"> | |||
<tr> | |||
<th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background:#ccccff;"> | |||
{{#if:{{{image|}}}| | {{{title|{{PAGENAME}}}}} | ||
</th> | |||
{{#if:{{{caption|}}}| | </tr> | ||
{{#if:{{{developer|}}}| | {{#if:{{{image|}}}| | ||
<tr> | |||
{{#if:{{{publisher|}}}| | <td colspan="2" style="text-align:center;">[[File:{{{image}}}|250px]]</td> | ||
</tr> | |||
{{#if:{{{platforms|}}}| | }} | ||
{{#if:{{{release_date|}}}| | {{#if:{{{caption|}}}| | ||
<tr> | |||
{{#if:{{{ | <td colspan="2" style="text-align:center; font-size:90%;">{{{caption}}}</td> | ||
</tr> | |||
{{#if:{{{status|}}}| | }} | ||
{{#if:{{{genre|}}}| | {{#if:{{{name|}}}| | ||
<tr> | |||
{{#if:{{{modes|}}}| | <th scope="row" style="text-align:left; white-space:nowrap;">Name</th> | ||
<td>{{{name}}}</td> | |||
{{#if:{{{website|}}}| | </tr> | ||
}} | |||
{{#if:{{{developer|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Developer</th> | |||
<td>{{{developer}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{publisher|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Publisher</th> | |||
<td>{{{publisher}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{platforms|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Platform(s)</th> | |||
<td>{{{platforms}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{release_date|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Release date</th> | |||
<td>{{{release_date}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{active_dates|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Active dates</th> | |||
<td>{{{active_dates}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{status|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Status</th> | |||
<td>{{{status}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{genre|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Genre</th> | |||
<td>{{{genre}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{modes|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Mode(s)</th> | |||
<td>{{{modes}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{website|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Website</th> | |||
<td>{{{website}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
| Line 32: | Line 96: | ||
| image = | | image = | ||
| caption = | | caption = | ||
| name = | |||
| developer = | | developer = | ||
| publisher = | | publisher = | ||
| platforms = | | platforms = | ||
| release_date = | | release_date = | ||
| | | active_dates = | ||
| status = | | status = | ||
| genre = | | genre = | ||
| Line 43: | Line 108: | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | |||
{ | |||
"description": "An infobox for a game, video game, server, or game project.", | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "The title shown at the top of the infobox.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image filename without the File: prefix.", | |||
"example": "Game-cover.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"type": "string" | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"type": "string" | |||
}, | |||
"developer": { | |||
"label": "Developer", | |||
"type": "string" | |||
}, | |||
"publisher": { | |||
"label": "Publisher", | |||
"type": "string" | |||
}, | |||
"platforms": { | |||
"label": "Platform(s)", | |||
"example": "Windows, Linux", | |||
"type": "string" | |||
}, | |||
"release_date": { | |||
"label": "Release date", | |||
"type": "string" | |||
}, | |||
"active_dates": { | |||
"label": "Active dates", | |||
"example": "2024–present", | |||
"type": "string" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"example": "Active", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"genre": { | |||
"label": "Genre", | |||
"type": "string" | |||
}, | |||
"modes": { | |||
"label": "Mode(s)", | |||
"example": "Single-player, multiplayer", | |||
"type": "string" | |||
}, | |||
"website": { | |||
"label": "Website", | |||
"type": "url" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 14:05, 1 June 2026
Usage
{{Infobox game
| title =
| image =
| caption =
| name =
| developer =
| publisher =
| platforms =
| release_date =
| active_dates =
| status =
| genre =
| modes =
| website =
}}
An infobox for a game, video game, server, or game project.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | The title shown at the top of the infobox. | String | suggested |
| Image | image | Image filename without the File: prefix.
| File | optional |
| Caption | caption | no description | String | optional |
| Name | name | no description | String | optional |
| Developer | developer | no description | String | optional |
| Publisher | publisher | no description | String | optional |
| Platform(s) | platforms | no description
| String | optional |
| Release date | release_date | no description | String | optional |
| Active dates | active_dates | no description
| String | optional |
| Status | status | no description
| String | suggested |
| Genre | genre | no description | String | optional |
| Mode(s) | modes | no description
| String | optional |
| Website | website | no description | URL | optional |