Difference between revisions of "Template:Infobox game"
(added cloud "needed" vardefines for GOG/Steam IDs; added section "needed" vardefines for mandatory sections (used in Template:Absent properties to find missing sections); used article state property query to catch pages missing Template:References) |
(updated cleanup category name, moved more checks inside namespace check) |
||
Line 12: | Line 12: | ||
<th class="template-infobox-header" colspan="2">Developers</th> | <th class="template-infobox-header" colspan="2">Developers</th> | ||
</tr> | </tr> | ||
− | {{{developers}}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage ( | + | {{{developers}}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Infobox game)]] }} |
}}<!-- | }}<!-- | ||
Line 84: | Line 84: | ||
-->{{#ifeq: {{NAMESPACE}} | | <!-- begin ONLY APPLY ON PAGES IN MAIN NAMESPACE begin (fixes PCGW Steam/GOG Redirect API endpoints among other things) | -->{{#ifeq: {{NAMESPACE}} | | <!-- begin ONLY APPLY ON PAGES IN MAIN NAMESPACE begin (fixes PCGW Steam/GOG Redirect API endpoints among other things) | ||
-->{{#if: {{{steam appid|}}}| [[Steam AppID::{{{steam appid}}}| ]] {{#vardefine:steam appid|{{{steam appid}}}}} }}<!-- | -->{{#if: {{{steam appid|}}}| [[Steam AppID::{{{steam appid}}}| ]] {{#vardefine:steam appid|{{{steam appid}}}}} }}<!-- | ||
− | -->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage ( | + | -->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (Infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]| }} }}<!-- |
-->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!-- | -->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!-- | ||
-->{{#if: {{{gogcom id|}}}| [[GOGcom page::{{{gogcom id}}}| ]][[GOGcom ID::{{{gogcom id}}}| ]] {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!-- | -->{{#if: {{{gogcom id|}}}| [[GOGcom page::{{{gogcom id}}}| ]][[GOGcom ID::{{{gogcom id}}}| ]] {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!-- | ||
Line 91: | Line 91: | ||
-->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!-- | -->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!-- | ||
-->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!-- | -->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!-- | ||
− | -->}}<!-- | + | -->{{#if: {{#show: {{PAGENAME}} | ?Article state is stub}}||[[Category:Missing section (References)]]}}<!-- |
-->{{#vardefine:section|Infobox game}}<!-- | -->{{#vardefine:section|Infobox game}}<!-- | ||
-->{{#vardefine:Availability|needed}}<!-- | -->{{#vardefine:Availability|needed}}<!-- | ||
Line 100: | Line 100: | ||
-->{{#vardefine:API|needed}}<!-- | -->{{#vardefine:API|needed}}<!-- | ||
-->{{#vardefine:System requirements|needed}}<!-- | -->{{#vardefine:System requirements|needed}}<!-- | ||
+ | -->}}<!-- end ONLY APPLY ON PAGES IN MAIN NAMESPACE end | ||
-->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!-- | -->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!-- | ||
− | |||
-->{{#ifeq: {{#var:PC booter}}{{#var:DOS}}{{#var:Windows 3.x}}{{#var:Windows}}{{#var:Mac OS}}{{#var:OS X}}{{#var:Linux}}|true||{{#vardefine:OS tabs|true}}}}<!-- | -->{{#ifeq: {{#var:PC booter}}{{#var:DOS}}{{#var:Windows 3.x}}{{#var:Windows}}{{#var:Mac OS}}{{#var:OS X}}{{#var:Linux}}|true||{{#vardefine:OS tabs|true}}}}<!-- | ||
− | -->{{#ifeq: {{#var:PC booter}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:PC booter}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:DOS}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:DOS}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:Windows 3.x}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:Windows 3.x}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:Windows}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:Windows}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:Mac OS}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:Mac OS}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:OS X}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:OS X}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#ifeq: {{#var:Linux}} | ported | [[Category:Invalid template usage ( | + | -->{{#ifeq: {{#var:Linux}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
− | -->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage ( | + | -->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (Infobox game)]]}}</table><!-- |
-->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{#vardefine:Warnings|true}} }}}}<!-- | -->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{#vardefine:Warnings|true}} }}}}<!-- | ||
-->{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||</dd>{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}<!-- | -->{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||</dd>{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}<!-- |
Revision as of 10:22, 28 August 2021
This template defines the table "Infobox_game". View table.
{{#set:|Cover=https://images.pcgamingwiki.com/9/99/Game_article_layout.jpg%7CCover filename=File:Game article layout.jpg}} | |
Developers | |
---|---|
Developer | |
Windows | Developer 2 |
macOS (OS X) | Developer 3 |
Linux | Developer 4 |
Publishers | |
Publisher | |
Europe | Publisher 2 |
Engines | |
Engine | |
Release dates | |
DOS | June 12, 1996 |
Mac OS (Classic) | July 4, 1998 |
Windows | January 3, 2012 |
macOS (OS X) | March 21, 2013 |
Linux | Early access |
Reception | |
Metacritic | 83 |
OpenCritic | 81 |
IGDB | 83 |
Taxonomy | |
Modes | Singleplayer, Multiplayer |
Pacing | Real-time |
Perspectives | First-person |
Controls | Direct control |
Genres | Action, Shooter |
Art styles | Stylized |
Themes | Sci-fi |
Series | PCGW Templates |
PCGW Templates | |
---|---|
Sample article | 2013 |
Game (singleplayer) | 2019 |
Game (multiplayer) | 2019 |
Game (unknown) | 2019 |
This template needs to be present on every game page on the wiki. It contains the basic information on who developed, ported and published the game, as well as what engine was used and when was it released on different operating systems. In addition, it can hold a cover or box image for the game, as well as information on the location of the game's page on several other websites.
- Syntax
{{Infobox game |cover = |developers = {{Infobox game/row/developer|}} {{Infobox game/row/porter|}} |publishers = {{Infobox game/row/publisher|}} |engines = {{Infobox game/row/engine|}} |release dates= {{Infobox game/row/date|Windows|}} {{Infobox game/row/date|OS X|}} {{Infobox game/row/date|Linux|}} |reception = {{Infobox game/row/reception|Metacritic| | }} {{Infobox game/row/reception|OpenCritic| | }} {{Infobox game/row/reception|IGDB| | }} |taxonomy = {{Infobox game/row/taxonomy/monetization | }} {{Infobox game/row/taxonomy/microtransactions | }} {{Infobox game/row/taxonomy/modes | }} {{Infobox game/row/taxonomy/pacing | }} {{Infobox game/row/taxonomy/perspectives | }} {{Infobox game/row/taxonomy/controls | }} {{Infobox game/row/taxonomy/genres | }} {{Infobox game/row/taxonomy/sports | }} {{Infobox game/row/taxonomy/vehicles | }} {{Infobox game/row/taxonomy/art styles | }} {{Infobox game/row/taxonomy/themes | }} {{Infobox game/row/taxonomy/series | }} |steam appid = |steam appid side = |gogcom id = |gogcom id side = |official site= |hltb = |igdb = <!-- Only needs to be set if there is no IGDB reception row --> |lutris = |mobygames = |strategywiki = |wikipedia = |winehq = |license = }}
- Arguments
Parameter | Description |
---|---|
title | Optional. Add if game title is stylized in some way and therefore varies from page name. |
cover | Only include this if a cover for this game is present on the wiki or on Wikimedia Commons. The contents of this line should be just the filename, excluding the namespace. Do not use a File: prefix for it, and do not use the {{Image}} template for it.
|
developers | All information included under this argument must be related to developers of the particular game.
Possible rows include:
|
publishers | This row should only be used when a game was published by a company other than the developer of the game.
Possible rows include:
|
engines | All information included under this argument must be related to engines used in the game.
Possible rows include:
See the {{Infobox game/row/engine}} documentation for more details, including on how to optionally specify the exact engine version used. |
release dates | All information included under this argument must be related to release dates of the game.
Possible rows include:
See the {{Infobox game/row/date}} documentation for more details. |
reception | Average (based on a minimum of at least 4 scored reviews) critics reception of the game from a supported aggregator.
Possible rows include:
|
taxonomy | The appropriate taxonomy tags for the game, see Taxonomy for further information. |
steam appid | The App ID of the game on Steam. The SteamDB favicon will appear when it is defined.
|
steam appid side | Additional App IDs the game or its DLCs are available under on Steam. This takes a comma separated list for input.
|
gogcom id | The ID of the game on GOG.com. The GOG Database favicon will appear when it is defined. |
gogcom id side | Additional IDs the game or its DLCs/packages are available under on GOG.com. This takes a comma separated list for input. |
official site | Add the full URL of the official site from either the original developer or the current rights holder. Do not use store pages. |
winehq | The unique link identifier for the game on WineHQ. |
hltb | The unique link identifier for the game on HowLongToBeat.
|
igdb | The unique link identifier for the game on IGDB.
This only needs to be filled out if a reception row for IGDB is not present already. |
lutris | The unique link identifier for the game on Lutris.
|
mobygames | The unique link identifier for the game on MobyGames.
|
strategywiki | The unique link identifier for the game on StrategyWiki.
|
wikipedia | The unique link identifier for the game on the English Wikipedia. The Wikipedia favicon will appear when it is defined.
|
license | License of the game from one of the following values. This information is not shown on the game page but is used to populate other pages such as the List of freeware games.
|