Difference between revisions of "User:Aemony/Sandbox/Infobox game"
From PCGamingWiki, the wiki about fixing PC games
< User:Aemony | Sandbox
m (restore) |
m (t {{#ask: [[{[PAGENAME}}]] |?IsThereAnyDeal ID |format = template |template = User:Aemony/Sandbox/AskFilteredMap }}) |
||
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 -->{{#if:{{{steam appid|}}}|{{#vardefine:ITAD stored|{{# | + | storing IsThereAnyDeal ID -->{{#if:{{{steam appid|}}}|{{#vardefine:ITAD stored|{{#ask: [[{[PAGENAME}}]] |?IsThereAnyDeal ID |format = template |template = User:Aemony/Sandbox/AskFilteredMap }}}}{{#if: {{#var:ITAD stored}}|{{#vardefine:ITAD match|{{#var:ITAD stored}}}}|{{#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:10, 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?)