Difference between revisions of "Development:Availability/store"
From PCGamingWiki, the wiki about fixing PC games
(fixed store order) |
(test new IsThereAnyDeal error handling) |
||
Line 33: | Line 33: | ||
|#Default = Incorrect store name. See [[Template:Availability|here]] for available options.<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }}</includeonly> | |#Default = Incorrect store name. See [[Template:Availability|here]] for available options.<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }}</includeonly> | ||
}}<!-- | }}<!-- | ||
− | -->{{#if:{{#var:ITAD match}}||{{#if:{{#var:ITAD}}|{{#get_web_data:url=https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop={{#var:ITAD}}|format=JSON|data=itad=data}} | + | -->{{#if:{{#var:ITAD match}}||{{#if:{{#var:ITAD}}|{{#ifeq:{{#get_web_data:url=https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop={{#var:ITAD}}|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={{#var:ITAD}}">https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&shop={{#var:ITAD}}</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}}| ]]}}}} |
}}}}<!-- | }}}}<!-- | ||
-->{{#ifeq: {{NAMESPACE}} | | {{#ifeq:{{lc:{{{1}}}}} | retail | |{{#ifeq:{{{link}}} | | [[Category:Invalid template usage (Availability)]]}}}}}} | -->{{#ifeq: {{NAMESPACE}} | | {{#ifeq:{{lc:{{{1}}}}} | retail | |{{#ifeq:{{{link}}} | | [[Category:Invalid template usage (Availability)]]}}}}}} |
Revision as of 06:43, 9 June 2019
Incorrect store name. See here for available options.