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 "Development:Infobox game"

From PCGamingWiki, the wiki about fixing PC games
(1:1 with live)
Line 1: Line 1:
<includeonly>{{Assignment/checkAvailable|{{PAGENAME}}}}<!--
+
<includeonly>{{Assignment/checkAvailable}}<!--
 
--><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}}}}</caption>
 
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</caption>
 
{{#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">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{cover}}}|WIKI}}}} upload it]</span>''[[Category:Pages needing cover images]]}}</td>
 
</tr>
 
</tr>
 
|[[Category:Pages needing cover images]]}}
 
|[[Category:Pages needing cover images]]}}
Line 82: Line 82:
 
</tr>
 
</tr>
 
}}<!-- Hidden properties
 
}}<!-- Hidden properties
-->{{#ifeq: {{NAMESPACE}} | | <!-- begin ONLY APPLY ON PAGES IN MAIN NAMESPACE begin (fixes https://www.pcgamingwiki.com/api/appid.php?appid=##### endpoint 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 (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;}} }}<!--
Line 103: Line 103:
 
-->{{#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}} }}}}<!--
 +
-->{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||</dd>{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}<!--
 +
-->{{Tocbox}}<!--
 
-->{{#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:
 
-->{{#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
Line 125: Line 127:
 
|Wikipedia={{{wikipedia|}}}
 
|Wikipedia={{{wikipedia|}}}
 
|License={{{license|}}}
 
|License={{{license|}}}
}}|}}{{#if:{{#var:sidebarSeries}}|
+
}}|}}</includeonly><noinclude>{{Documentation}} </noinclude>
 
 
{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 

Revision as of 03:53, 26 August 2021

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