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 | + | <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">[ | + | <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 | + | -->{{#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| ]]| }} }}<!-- | -->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]| }} }}<!-- | ||
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|}}} | ||
− | }}| | + | }}|}}</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).
Visit Development:Infobox game/Documentation to edit this text. (How does this work?)