Difference between revisions of "User:Aemony/Sandbox/Infobox game"
From PCGamingWiki, the wiki about fixing PC games
< User:Aemony | Sandbox
m (dddd) |
m (d) |
||
Line 45: | Line 45: | ||
Icons --> | Icons --> | ||
<!-- 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 --> | + | storing IsThereAnyDeal ID -->{{#vardefine:ITAD match|{{#ask: [[{{PAGENAME}}]] |?IsThereAnyDeal ID |format = template |template = User:Aemony/Sandbox/AskFilteredMap }}}}<!-- |
+ | -->{{#if: {{#var:ITAD match}}||{{#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}}}}}}}}[[IsThereAnyDeal ID::{{#var:ITAD match}}| ]]}}}}<!-- | ||
-->{{#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}}| | ||
<tr> | <tr> |
Revision as of 18:21, 17 March 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?)