Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "User:Aemony/Sandbox/Infobox game"

From PCGamingWiki, the wiki about fixing PC games
(current)
 
m (derp)
Line 1: Line 1:
<table class="vertical-navbox template-infobox" id="infobox-game">
+
{{Assignment/checkAvailable|{{PAGENAME}}}}<!--
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Games]] }}</includeonly></caption>
+
--><table class="vertical-navbox template-infobox" id="infobox-game">
{{#ogpdescription:{{PAGENAME}} at PCGamingWiki - bugs, fixes, crashes, mods, guides and improvements for every PC game.}}
+
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly></includeonly></caption>
{{#if: {{{cover|}}} |
+
<includeonly>{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
<td class="template-infobox-cover" colspan="2">{{#ifexist: File:{{{cover}}} | [[File:{{#ogpimage:{{{cover}}}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]]{{#set:|Cover={{filepath:{{{cover}}}}}}} |''Cover image missing, please <span class="plainlinks">[https://pcgamingwiki.com/w/index.php?title=Special:Upload&wpDestFile={{urlencode:{{{cover}}}|WIKI}} upload it]</span>''[[Category:Invalid template usage (infobox game)]]}}</td>
+
<td class="template-infobox-cover" colspan="2">{{#ifexist: File:{{{cover}}} | [[File:{{{cover}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]]{{#set:|Cover={{filepath:{{{cover}}}}}|Cover filename=File:{{{cover}}}}} |''Cover image missing, please <span class="plainlinks">[https://pcgamingwiki.com/w/index.php?title=Special:Upload&wpDestFile={{urlencode:{{{cover}}}|WIKI}} upload it]</span>''[[Category:Pages needing cover images]]}}</td>
 
</tr>
 
</tr>
}}
+
|[[Category:Pages needing cover images]]}}</includeonly>
  
 
{{#if: {{{developers|}}} |
 
{{#if: {{{developers|}}} |
Line 38: Line 38:
 
{{{release dates|}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Pages with no release dates]] }}</includeonly>
 
{{{release dates|}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Pages with no release dates]] }}</includeonly>
 
}}
 
}}
 
+
<!-- checking DOSBox-only status -->{{#if: {{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|<!--
<!-- Icons -->
+
-->{{#if: {{#var:Windows native}}|{{#vardefine:Windows DOSBox|}}}}<!--
<!-- storing WSGF Link state -->{{#vardefine:WSGF Link|{{#show: {{PAGENAME}} | ?WSGF Link}}}}<!--
+
-->{{#if: {{#var:OS X native}}|{{#vardefine:OS X DOSBox|}}}}<!--
-->{{#if: {{{wikipedia|}}}{{{gogcom id|}}}{{{steam appid|}}}{{{winehq|}}}{{{strategywiki|}}}{{#var:WSGF Link}}|
+
-->{{#if: {{#var:Linux native}}|{{#vardefine:Linux DOSBox|}}}}<!--
 +
-->}}<!--
 +
Icons -->
 +
<!-- storing WSGF Link state -->{{#vardefine:WSGF Link|{{#show: {{PAGENAME}} | ?WSGF Link #}}}}<!--
 +
storing IsThereAnyDeal ID -->{{#if:{{{steam appid|}}}|{{#ifeq: {{#get_web_data:url=https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop=steam&game_id=app/{{{steam appid|}}}|format=JSON|data=itad=data}}|<span class="error">Error: No contents found at URL <a rel="nofollow" class="external free" href="https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&amp;shop=steam&amp;game_id=app/{{{steam appid|}}}">https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&amp;shop=steam&amp;game_id=app/{{{steam appid|}}}</a>.</span>||{{#ifeq:{{#external_value:itad}}|<span class="error">Error: no local variable "itad" was set.</span>||{{#vardefine:ITAD match|{{#external_value:itad}}}}}}}}}}{{#if:{{#var:ITAD match}}||{{#vardefine:ITAD match|{{#show: {{PAGENAME}} | ?IsThereAnyDeal ID}}}}}}<!--
 +
-->{{#if: {{{wikipedia|}}}{{{gogcom id|}}}{{{steam appid|}}}{{{winehq|}}}{{{strategywiki|}}}{{#var:WSGF Link}}{{#var:ITAD match}}|
 
<tr>
 
<tr>
 
<td class="template-infobox-icons" colspan="2"><!--
 
<td class="template-infobox-icons" colspan="2"><!--
-->{{#if: {{{winehq|}}} | <div title="{{PAGENAME}} at WineHQ" class="plainlinks template-infobox-icon svg-icon infobox-winehq">[https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}} &nbsp;]</div>}}<!--
+
-->{{#if: {{{winehq|}}} | <div title="{{PAGENAME}} on WineHQ" class="plainlinks template-infobox-icon svg-icon infobox-winehq">[https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}} &nbsp;]</div>}}<!--
-->{{#if: {{#var:WSGF Link}} | <div title="{{PAGENAME}} at WSGF" class="plainlinks template-infobox-icon svg-icon infobox-wsgf">[{{#var:WSGF Link}} &nbsp;]</div> }}<!--
+
-->{{#if: {{#var:WSGF Link}} | <div title="{{PAGENAME}} on WSGF" class="plainlinks template-infobox-icon svg-icon infobox-wsgf">[{{#var:WSGF Link}} &nbsp;]</div> }}<!--
-->{{#if: {{{gogcom id|}}} | <div title="{{PAGENAME}} at GOG Database" class="plainlinks template-infobox-icon svg-icon infobox-gogdb">[https://www.gogdb.org/product/{{{gogcom id|}}} &nbsp;]</div> }}<!--
+
-->{{#if: {{{gogcom id|}}} | <div title="{{PAGENAME}} in GOG Database" class="plainlinks template-infobox-icon svg-icon infobox-gogdb">[https://www.gogdb.org/product/{{{gogcom id|}}} &nbsp;]</div> {{#if:{{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|{{#ifeq:{{#show: {{PAGENAME}} | ?Cloud support GOG Galaxy}}|true|{{#vardefine:GOG.com DOSBox cloud|true}}}}}}}}<!--
 
-->{{#if: {{{steam appid|}}} | {{#ifeq: {{#get_web_data:
 
-->{{#if: {{{steam appid|}}} | {{#ifeq: {{#get_web_data:
 
url=http://m.co-optimus.com/api/games.php?search=true&steamid={{{steam appid|}}}&json=true
 
url=http://m.co-optimus.com/api/games.php?search=true&steamid={{{steam appid|}}}&json=true
 
|format=JSON
 
|format=JSON
 
|data=coopgameid=gameid,coopurl=urlSlug
 
|data=coopgameid=gameid,coopurl=urlSlug
}} | <span class="error">Error: Invalid JSON.</span> ||<div title="{{PAGENAME}} at Co-Optimus" class="plainlinks template-infobox-icon svg-icon infobox-cooptimus">[http://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html &nbsp;]</div>}}<div title="{{PAGENAME}} at SteamDB" class="plainlinks template-infobox-icon svg-icon infobox-steamdb">[https://steamdb.info/app/{{{steam appid|}}}/ &nbsp;]</div> }}<!--
+
}} | <span class="error">Error: Invalid JSON.</span> ||<div title="{{PAGENAME}} on Co-Optimus" class="plainlinks template-infobox-icon svg-icon infobox-cooptimus">[https://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html &nbsp;]</div>}}<div title="{{PAGENAME}} on SteamDB" class="plainlinks template-infobox-icon svg-icon infobox-steamdb">[https://steamdb.info/app/{{{steam appid|}}}/ &nbsp;]</div> }}<!--
-->{{#if: {{{strategywiki|}}} | <div title="{{PAGENAME}} guide at StrategyWiki" class="template-infobox-icon svg-icon infobox-strategywiki">[[File:Icon overlay.png|link=strategywiki:{{{strategywiki}}}|{{PAGENAME}} guide at StrategyWiki]]</div>}}<!--
+
-->{{#if: {{#var:ITAD match}} | <div title="{{PAGENAME}} on IsThereAnyDeal" class="plainlinks template-infobox-icon svg-icon infobox-itad">[https://isthereanydeal.com/game/{{#var:ITAD match}}/info/ &nbsp;]</div>{{#vardefine:ITAD match|}}}}<!--
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon infobox-wikipedia">[[File:Icon overlay.png|link=Wikipedia:{{{wikipedia}}}|{{PAGENAME}} at Wikipedia]]</div> }}</td>
+
-->{{#if: {{{strategywiki|}}} | <div title="{{PAGENAME}} guide on StrategyWiki" class="template-infobox-icon svg-icon infobox-strategywiki">[[File:Icon overlay.png|link=strategywiki:{{{strategywiki}}}|{{PAGENAME}} guide on StrategyWiki]]</div>}}<!--
 +
-->{{#if: {{{mobygames|}}} | <div title="{{PAGENAME}} on MobyGames" class="template-infobox-icon svg-icon infobox-mobygames">[[File:Icon overlay.png|link=strategywiki:{{{mobygames}}}|{{PAGENAME}} on MobyGames]]</div>}}<!--
 +
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} on Wikipedia" class="template-infobox-icon svg-icon infobox-wikipedia">[[File:Icon overlay.png|link=Wikipedia:{{{wikipedia}}}|{{PAGENAME}} on Wikipedia]]</div> }}</td>
 
</tr>
 
</tr>
 
}}<!-- Hidden properties
 
}}<!-- Hidden properties
Line 59: Line 66:
 
-->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]|&#32;}} }}<!--
 
-->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]|&#32;}} }}<!--
 
-->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!--
 
-->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!--
-->{{#if: {{{gogcom id|}}}| [[GOGcom page::{{{gogcom id}}}| ]] {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!--
+
-->{{#if: {{{gogcom id|}}}| [[GOGcom page::{{{gogcom id}}}| ]][[GOGcom ID::{{{gogcom id}}}| ]] {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!--
-->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var|[[GOGcom page::var| ]]|&#32;}} }}<!--
+
-->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var|[[GOGcom page::var| ]][[GOGcom ID::var| ]]|&#32;}} }}<!--
 
-->{{#if: {{{strategywiki|}}}| [[StrategyWiki::{{{strategywiki}}}| ]] }}<!--
 
-->{{#if: {{{strategywiki|}}}| [[StrategyWiki::{{{strategywiki}}}| ]] }}<!--
 
-->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!--
 
-->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!--
 
-->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!--
 
-->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!--
 
-->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!--
 
-->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!--
-->{{#ifeq: {{#var:Booter}}{{#var:DOS}}{{#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:Booter}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
+
-->{{#ifeq: {{#var:PC booter}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:DOS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:DOS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 +
-->{{#ifeq: {{#var:Windows 3.x}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Windows}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Windows}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Mac OS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Mac OS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:OS X}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:OS X}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Linux}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Linux}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
-->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (infobox game)]]}}<!--
+
-->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (infobox game)]]}}</table><!--
--></table><noinclude>{{Documentation}}</noinclude>
+
-->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{#vardefine:Warnings|true}} }}}}<!--
 +
-->{{#if:{{#show: {{PAGENAME}} | ?Warnings}}|{{#vardefine:Top warnings|true}}{{#vardefine:Top last|Infobox}}{{#vardefine:Top|{{#show: {{PAGENAME}} | ?Top}}}}{{#vardefine:DRM|{{#show: {{PAGENAME}} | ?Uses DRM}}}}{{#ifeq:{{#var:Top}}|Infobox|{{Warnings}}}}}}<noinclude>{{#cargo_declare:
 +
_table=Infobox_game
 +
|Cover=File
 +
|Cover_URL=URL
 +
|Steam_AppID=List (,) of String
 +
|WineHQ_AppID=String
 +
|GOGcom_page=List (,) of String
 +
|StrategyWiki=String
 +
|Wikipedia=String
 +
|License=String
 +
}}</noinclude><includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Games]]{{#vardefine:Game|true}}{{#cargo_store:
 +
_table=Infobox_game
 +
|Cover={{#ifexist: File:{{{cover}}}|{{{cover|}}}|}}
 +
|Cover_URL={{filepath:{{{cover|}}}}}
 +
|Steam_AppID={{{steam appid|}}}
 +
|Steam_AppID={{{steam appid side|}}}
 +
|WineHQ_AppID={{{winehq|}}}
 +
|GOGcom_page={{{gogcom id|}}}
 +
|GOGcom_page={{{gogcom id side|}}}
 +
|StrategyWiki={{{strategywiki|}}}
 +
|Wikipedia={{{wikipedia|}}}
 +
|License={{{license|}}}
 +
}}|}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 08:51, 23 December 2019

Aemony/Sandbox/Infobox game
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).