Jump to content

Template:Infobox game: Difference between revisions

From Computerwhz Wiki
m Protected "Template:Infobox game": Template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="wikitable" style="float:right; width:320px; margin:0 0 1em 1em; font-size:90%;"
<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;">
! colspan="2" style="text-align:center; font-size:120%;" | {{{title|{{PAGENAME}}}}}
<tr>
|-
<th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background:#ccccff;">
{{#if:{{{image|}}}|! colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|250px]]}}
{{{title|{{PAGENAME}}}}}
|-
</th>
{{#if:{{{caption|}}}|! colspan="2" style="text-align:center; font-size:85%;" {{!}} {{{caption}}}}}
</tr>
|-
 
{{#if:{{{developer|}}}|! Developer {{!}} {{{developer}}}}}
{{#if:{{{image|}}}|
|-
<tr>
{{#if:{{{publisher|}}}|! Publisher {{!}} {{{publisher}}}}}
<td colspan="2" style="text-align:center;">[[File:{{{image}}}|250px]]</td>
|-
</tr>
{{#if:{{{platforms|}}}|! Platform(s) {{!}} {{{platforms}}}}}
}}
|-
 
{{#if:{{{release_date|}}}|! Release date {{!}} {{{release_date}}}}}
{{#if:{{{caption|}}}|
|-
<tr>
{{#if:{{{support-dates|}}}|! Active dates {{!}} {{{support-dates}}}}}
<td colspan="2" style="text-align:center; font-size:90%;">{{{caption}}}</td>
|-
</tr>
{{#if:{{{status|}}}|! Status {{!}} {{{status}}}}}
}}
|-
 
{{#if:{{{genre|}}}|! Genre {{!}} {{{genre}}}}}
{{#if:{{{name|}}}|
|-
<tr>
{{#if:{{{modes|}}}|! Mode(s) {{!}} {{{modes}}}}}
<th scope="row" style="text-align:left; white-space:nowrap;">Name</th>
|-
<td>{{{name}}}</td>
{{#if:{{{website|}}}|! Website {{!}} {{{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 =
| support_dates =
| 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The title shown at the top of the infobox.

Stringsuggested
Imageimage

Image filename without the File: prefix.

Example
Game-cover.png
Fileoptional
Captioncaption

no description

Stringoptional
Namename

no description

Stringoptional
Developerdeveloper

no description

Stringoptional
Publisherpublisher

no description

Stringoptional
Platform(s)platforms

no description

Example
Windows, Linux
Stringoptional
Release daterelease_date

no description

Stringoptional
Active datesactive_dates

no description

Example
2024–present
Stringoptional
Statusstatus

no description

Example
Active
Stringsuggested
Genregenre

no description

Stringoptional
Mode(s)modes

no description

Example
Single-player, multiplayer
Stringoptional
Websitewebsite

no description

URLoptional