Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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}}[[IsThereAnyDeal ID::{{#external_value:itad}}| ]]{{#vardefine:ITAD match|{{#external_value:itad}}}}
+
-->{{#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&amp;shop={{#var:ITAD}}">https://api.isthereanydeal.com/v02/game/plain/?key=ITAD_KEY&amp;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.