Difference between revisions of "Development:Availability/store"
From PCGamingWiki, the wiki about fixing PC games
(fix ITAD var) |
|||
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={{#switch:{{#var:store}} |
|Amazon=amazonus&game_id={{{link}}} | |Amazon=amazonus&game_id={{{link}}} | ||
|Battlenet=battlenet&url=https://shop.battle.net/product/{{{link}}} | |Battlenet=battlenet&url=https://shop.battle.net/product/{{{link}}} | ||
Line 49: | Line 49: | ||
|Microsoft Store=microsoft&game_id={{{link}}} | |Microsoft Store=microsoft&game_id={{{link}}} | ||
}}|format=JSON|data=itad=data}}[[IsThereAnyDeal ID::{{#external_value:itad}}| ]]{{#vardefine:ITAD match|{{#external_value:itad}}}} | }}|format=JSON|data=itad=data}}[[IsThereAnyDeal ID::{{#external_value:itad}}| ]]{{#vardefine:ITAD match|{{#external_value:itad}}}} | ||
− | }}<!-- | + | }}}}<!-- |
-->{{#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 09:10, 4 June 2019
Incorrect store name. See here for available options.