Difference between revisions of "User:Aemony/Sandbox/Infobox game"
From PCGamingWiki, the wiki about fixing PC games
< User:Aemony | Sandbox
m (d) |
m (der) |
||
Line 7: | Line 7: | ||
</tr> | </tr> | ||
|[[Category:Pages needing cover images]]}}</includeonly> | |[[Category:Pages needing cover images]]}}</includeonly> | ||
+ | |||
{{#if: {{{developers|}}} | | {{#if: {{{developers|}}} | | ||
<tr> | <tr> | ||
Line 12: | Line 13: | ||
</tr> | </tr> | ||
{{{developers}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)]] }}</includeonly> | {{{developers}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)]] }}</includeonly> | ||
− | }}<!-- Publishers | + | }} |
− | -->{{#if: {{{publishers|}}} | | + | <!-- Publishers --> |
+ | {{#if: {{{publishers|}}} | | ||
<tr> | <tr> | ||
<th class="template-infobox-header" colspan="2">Publishers</th> | <th class="template-infobox-header" colspan="2">Publishers</th> | ||
</tr> | </tr> | ||
{{{publishers}}} | {{{publishers}}} | ||
− | }}<!-- Engines | + | }} |
− | -->{{#if: {{{engines|}}} | | + | <!-- Engines --> |
+ | {{#if: {{{engines|}}} | | ||
<tr> | <tr> | ||
<th class="template-infobox-header" colspan="2">Engines</th> | <th class="template-infobox-header" colspan="2">Engines</th> | ||
</tr> | </tr> | ||
{{{engines}}} | {{{engines}}} | ||
− | }}<!-- Release dates | + | }} |
− | -->{{#if: {{{release dates|}}}| | + | <!-- Release dates --> |
+ | {{#if: {{{release dates|}}}| | ||
<tr> | <tr> | ||
<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|}}}|<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Pages with no release dates]] }}</includeonly> | ||
− | }}<!-- Reception | + | }} |
− | -->{{#if: {{{reception|}}}| | + | <!-- Reception --> |
+ | {{#if: {{{reception|}}} | | ||
<tr> | <tr> | ||
<th class="template-infobox-header" colspan="2">Reception</th> | <th class="template-infobox-header" colspan="2">Reception</th> | ||
</tr> | </tr> | ||
{{{reception|}}} | {{{reception|}}} | ||
− | }}<!-- checking DOSBox-only status -->{{#if: {{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|<!-- | + | }} |
+ | <!-- checking DOSBox-only status -->{{#if: {{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|<!-- | ||
-->{{#if: {{#var:Windows native}}|{{#vardefine:Windows DOSBox|}}}}<!-- | -->{{#if: {{#var:Windows native}}|{{#vardefine:Windows DOSBox|}}}}<!-- | ||
-->{{#if: {{#var:OS X native}}|{{#vardefine:OS X DOSBox|}}}}<!-- | -->{{#if: {{#var:OS X native}}|{{#vardefine:OS X DOSBox|}}}}<!-- | ||
-->{{#if: {{#var:Linux native}}|{{#vardefine:Linux DOSBox|}}}}<!-- | -->{{#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&shop=steam&game_id=app/{{{steam appid|}}}">https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop=steam&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&shop=steam&game_id=app/{{{steam appid|}}}">https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop=steam&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}}| | ||
Line 78: | Line 84: | ||
-->{{#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><!-- |
− | |||
-->{{#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}}}}}}<noinclude>{{#cargo_declare: |
Revision as of 17:39, 2 April 2020
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit User:Aemony/Sandbox/Infobox game/Documentation to edit this text. (How does this work?)