Difference between revisions of "Development:Infobox game"
From PCGamingWiki, the wiki about fixing PC games
(moved other new checks inside namespace check) |
(1:1 with live) |
||
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 05:55, 2 September 2021
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit Development:Infobox game/Documentation to edit this text. (How does this work?)