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
m (d)
m (updated to latest public)
Line 1: Line 1:
{{Assignment/checkAvailable|{{PAGENAME}}}}<!--
+
<includeonly>{{Assignment/checkAvailable|{{PAGENAME}}}}<!--
 
--><table class="vertical-navbox template-infobox" id="infobox-game">
 
--><table class="vertical-navbox template-infobox" id="infobox-game">
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly></includeonly></caption>
+
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</caption>
<includeonly>{{#if: {{{cover|}}} |
+
{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
 
<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>
 
<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>
+
|[[Category:Pages needing cover images]]}}
  
 
{{#if: {{{developers|}}} |
 
{{#if: {{{developers|}}} |
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}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)]] }}</includeonly>
+
{{{developers}}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)]] }}
 
}}
 
}}
  
Line 36: Line 36:
 
<th class="template-infobox-header" colspan="2">Release dates</th>
 
<th class="template-infobox-header" colspan="2">Release dates</th>
 
</tr>
 
</tr>
{{{release dates|}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Pages with no release dates]] }}</includeonly>
+
{{{release dates|}}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Pages with no release dates]] }}
 
}}
 
}}
  
 
<!-- Reception -->
 
<!-- Reception -->
{{#if: {{{reception|}}} |
+
{{#if: {{{reception|}}}|
 
<tr>
 
<tr>
 
<th class="template-infobox-header" colspan="2">Reception</th>
 
<th class="template-infobox-header" colspan="2">Reception</th>
Line 53: Line 53:
 
  storing WSGF Link state -->{{#vardefine:WSGF Link|{{#show: {{PAGENAME}} | ?WSGF Link #}}}}<!--
 
  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}}}}}}<!--
 
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|}}}{{{mobygames|}}}{{#var:WSGF Link}}{{#var:ITAD match}}|
+
-->{{#if: {{{wikipedia|}}}{{{gogcom id|}}}{{{steam appid|}}}{{{winehq|}}}{{{strategywiki|}}}{{{mobygames|}}}{{#var:WSGF Link}}{{#var:ITAD match}}{{{official site|}}}|
 
<tr>
 
<tr>
 
<td class="template-infobox-icons" colspan="2"><!--
 
<td class="template-infobox-icons" colspan="2"><!--
 +
-->{{#if: {{{official site|}}} | <div title="Official site" class="plainlinks template-infobox-icon svg-icon infobox-official-site">[{{{official site}}} &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: {{{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}} on 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> }}<!--
Line 89: Line 90:
 
-->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (infobox game)]]}}</table><!--
 
-->{{#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}} }}}}<!--
-->{{#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:
+
-->{{#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}}}}}}</includeonly><noinclude>{{#cargo_declare:
 
_table=Infobox_game
 
_table=Infobox_game
 
|Cover=File
 
|Cover=File

Revision as of 13:58, 4 April 2020

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