Difference between revisions of "Template:Availability/store"

From PCGamingWiki, the wiki about fixing PC games
m (https'ified amazon.co.uk)
(removed old IsThereAnyDeal handling; added Epic Games Store subpage row type)
Line 1: Line 1:
 
{{#switch:{{lc:{{{1}}}}}
 
{{#switch:{{lc:{{{1}}}}}
 
|amazon
 
|amazon
|amazon.com = [https://amazon.com/dp/{{{link}}}?tag=pcgamingwik0e-20 Amazon.com][[Available from::Amazon.com| ]]{{#vardefine:store|Amazon}}{{#vardefine:ITAD|amazonus&game_id={{{link}}}}}
+
|amazon.com = [https://amazon.com/dp/{{{link}}}?tag=pcgamingwik0e-20 Amazon.com][[Available from::Amazon.com| ]]{{#vardefine:store|Amazon}}
 
|amazon.co.uk = [https://amazon.co.uk/dp/{{{link}}}?tag=pcgamingwiki-21 Amazon.co.uk][[Available from::Amazon.co.uk| ]]{{#vardefine:store|Amazon UK}}
 
|amazon.co.uk = [https://amazon.co.uk/dp/{{{link}}}?tag=pcgamingwiki-21 Amazon.co.uk][[Available from::Amazon.co.uk| ]]{{#vardefine:store|Amazon UK}}
|battle.net = [https://shop.battle.net/product/{{{link}}} Battle.net][[Available from::Battle.net| ]] {{#vardefine:store|Battlenet}}{{#vardefine:ITAD|battlenet&url=https://shop.battle.net/product/{{{link}}}}}
+
|battle.net = [https://shop.battle.net/product/{{{link}}} Battle.net][[Available from::Battle.net| ]] {{#vardefine:store|Battlenet}}
 
|bethesda.net = [https://bethesda.net/en/games/{{{link}}} Bethesda.net][[Available from::Bethesda.net| ]]{{#vardefine:store|Bethesdanet}}
 
|bethesda.net = [https://bethesda.net/en/games/{{{link}}} Bethesda.net][[Available from::Bethesda.net| ]]{{#vardefine:store|Bethesdanet}}
|discord = [https://discordapp.com/store/skus/{{{link}}} Discord][[Available from::Discord| ]]{{#vardefine:Discord|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Discord}}{{#vardefine:ITAD|discord&game_id={{{link}}}}}
+
|discord = [https://discordapp.com/store/skus/{{{link}}} Discord][[Available from::Discord| ]]{{#vardefine:Discord|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Discord}}
|epic games store = [https://store.epicgames.com/pcgamingwiki/{{{link}}} Epic Games Store][[Available from::Epic Games Store| ]]{{#vardefine:Epic Games Store|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Epic Games Store}}{{#vardefine:ITAD|epic&game_id={{{link}}}}}[[Epic Games Store ID::{{{link}}}| ]]
+
|epic games store = [https://store.epicgames.com/pcgamingwiki/{{{link}}} Epic Games Store][[Available from::Epic Games Store| ]]{{#vardefine:Epic Games Store|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Epic Games Store}}[[Epic Games Store ID::{{{link}}}| ]]
|gamersgate = [http://www.dpbolvw.net/click-6723194-10912384?url=http://www.gamersgate.com/{{{link}}}?caff=5418682 GamersGate][[Available from::GamersGate| ]]{{#vardefine:store|GamersGate}}{{#vardefine:ITAD|gamersgate&game_id={{{link}}}}}
+
|epic games store subpage = [https://www.epicgames.com/store/product/{{{link}}}?epic_affiliate=pcgamingwiki Epic Games Store][[Available from::Epic Games Store| ]]{{#vardefine:Epic Games Store|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Epic Games Store}}[[Epic Games Store ID::{{{link}}}| ]]
|gamesplanet = [https://gamesplanet.com/game/{{{link}}}?ref=pcgwiki Gamesplanet][[Available from::Gamesplanet| ]]{{#vardefine:store|Gamesplanet}}{{#vardefine:ITAD|gamesplanetus&game_id={{{link}}}}}
+
|gamersgate = [http://www.dpbolvw.net/click-6723194-10912384?url=http://www.gamersgate.com/{{{link}}}?caff=5418682 GamersGate][[Available from::GamersGate| ]]{{#vardefine:store|GamersGate}}
 +
|gamesplanet = [https://gamesplanet.com/game/{{{link}}}?ref=pcgwiki Gamesplanet][[Available from::Gamesplanet| ]]{{#vardefine:store|Gamesplanet}}
 
|gog.com
 
|gog.com
|gog = [https://www.gog.com/game/{{{link}}}?pp=708a77db476d737e54b8bf4663fc79b346d696d2 GOG.com][[Available from::GOG.com| ]][[GOGcom page::{{{link}}}| ]]{{#if:{{#var:gogcom id}}||{{#vardefine:gogcom id|unknown}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|GOGcom}}{{#vardefine:ITAD|gog&url=https://www.gog.com/game/{{{link}}}}}
+
|gog = [https://www.gog.com/game/{{{link}}}?pp=708a77db476d737e54b8bf4663fc79b346d696d2 GOG.com][[Available from::GOG.com| ]][[GOGcom page::{{{link}}}| ]]{{#if:{{#var:gogcom id}}||{{#vardefine:gogcom id|unknown}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|GOGcom}}
|gmg = [https://www.dpbolvw.net/click-6723194-10912384?url=https://www.greenmangaming.com/games/{{{link}}} Green Man Gaming][[Available from::Green Man Gaming| ]]{{#vardefine:store|Green Man Gaming}}{{#vardefine:ITAD|greenmangaming&game_id={{{link}}}}}
+
|gmg = [https://www.dpbolvw.net/click-6723194-10912384?url=https://www.greenmangaming.com/games/{{{link}}} Green Man Gaming][[Available from::Green Man Gaming| ]]{{#vardefine:store|Green Man Gaming}}
 
|humble store
 
|humble store
|humble = [https://www.humblebundle.com/store/{{{link}}}?partner=pcgw Humble Store][[Available from::Humble Store| ]]{{#vardefine:store|Humble Store}}{{#vardefine:ITAD|humblestore&game_id={{{link}}}_storefront}}[[Humble Store ID::{{{link}}}| ]]
+
|humble = [https://www.humblebundle.com/store/{{{link}}}?partner=pcgw Humble Store][[Available from::Humble Store| ]]{{#vardefine:store|Humble Store}}[[Humble Store ID::{{{link}}}| ]]
|itch.io = [{{{link}}}?ac=Q8uS8a4hVvG itch.io][[Available from::itch.io| ]]{{#vardefine:store|itchio}}{{#vardefine:ITAD|itchio&url={{{link}}}}}
+
|itch.io = [{{{link}}}?ac=Q8uS8a4hVvG itch.io][[Available from::itch.io| ]]{{#vardefine:store|itchio}}
 
|macapp
 
|macapp
 
|mac app store = [https://apps.apple.com/app/{{{link}}} Mac App Store][[Available from::Mac App Store| ]]{{#vardefine:store|Mac App Store}}
 
|mac app store = [https://apps.apple.com/app/{{{link}}} Mac App Store][[Available from::Mac App Store| ]]{{#vardefine:store|Mac App Store}}
|microsoft store = [http://microsoft.msafflnk.net/c/1395635/465310/7794?prodsku={{{link}}}&u=https://www.microsoft.com/store/apps/{{{link}}} Microsoft Store][[Available from::Microsoft Store| ]]{{#vardefine:store|Microsoft Store}}{{#vardefine:ITAD|microsoft&game_id={{{link}}}}}
+
|microsoft store = [http://microsoft.msafflnk.net/c/1395635/465310/7794?prodsku={{{link}}}&u=https://www.microsoft.com/store/apps/{{{link}}} Microsoft Store][[Available from::Microsoft Store| ]]{{#vardefine:store|Microsoft Store}}
 
|oculus
 
|oculus
|oculus store = [https://www.oculus.com/experiences/rift/{{{link}}}/ Oculus Store][[Available from::Oculus Store| ]]{{#vardefine:store|Oculus Store}}{{#vardefine:ITAD|oculus&game_id={{{link}}}}}
+
|oculus store = [https://www.oculus.com/experiences/rift/{{{link}}}/ Oculus Store][[Available from::Oculus Store| ]]{{#vardefine:store|Oculus Store}}
|origin = [https://www.origin.com/usa/en-us/store/{{{link}}} Origin][[Available from::Origin| ]]{{#vardefine:Origin|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Origin}}{{#vardefine:ITAD|origin&url=https://www.origin.com/store/{{{link}}}/standard-edition}}
+
|origin = [https://www.origin.com/usa/en-us/store/{{{link}}} Origin][[Available from::Origin| ]]{{#vardefine:Origin|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Origin}}
|steam = [https://store.steampowered.com/app/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}{{#vardefine:ITAD|steam&game_id=app/{{{link}}}}}
+
|steam = [https://store.steampowered.com/app/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}
 
|steam-sub = [https://store.steampowered.com/sub/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}
 
|steam-sub = [https://store.steampowered.com/sub/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}
 
|steam-bundle = [https://store.steampowered.com/bundle/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}
 
|steam-bundle = [https://store.steampowered.com/bundle/{{{link}}}/?utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki Steam][[Available from::Steam| ]]{{#if:{{#var:steam appid}}||{{#vardefine:steam appid|{{{link}}}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]] }} }}{{#vardefine:cloud|needed}}{{#vardefine:store|Steam}}
 
|twitch = [https://www.twitch.tv/directory/game/{{{link}}}/details Twitch][[Available from::Twitch| ]]{{#vardefine:store|Twitch}}
 
|twitch = [https://www.twitch.tv/directory/game/{{{link}}}/details Twitch][[Available from::Twitch| ]]{{#vardefine:store|Twitch}}
|uplay = [http://www.dpbolvw.net/click-6723194-10912384?url=http://store.ubi.com/{{{link}}}.html Uplay][[Available from::Uplay| ]]{{#vardefine:Uplay|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Uplay}}{{#vardefine:ITAD|uplay&game_id={{{link}}}}}
+
|uplay = [http://www.dpbolvw.net/click-6723194-10912384?url=http://store.ubi.com/{{{link}}}.html Uplay][[Available from::Uplay| ]]{{#vardefine:Uplay|true}}{{#vardefine:cloud|needed}}{{#vardefine:store|Uplay}}
 
|viveport = [https://www.viveport.com/apps/{{{link}}} Viveport][[Available from::Viveport| ]]{{#vardefine:store|Viveport}}
 
|viveport = [https://www.viveport.com/apps/{{{link}}} Viveport][[Available from::Viveport| ]]{{#vardefine:store|Viveport}}
 
|retail = Retail[[Available from::Retail| ]]{{#vardefine:store|Retail}}
 
|retail = Retail[[Available from::Retail| ]]{{#vardefine:store|Retail}}
Line 32: Line 33:
 
|official = [{{{link}}} Official website][[Available from::Official website| ]]{{#vardefine:store|Official}}
 
|official = [{{{link}}} Official website][[Available from::Official website| ]]{{#vardefine:store|Official}}
 
|#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>
}}<!--
+
}}{{#ifeq: {{NAMESPACE}} | | {{#ifeq:{{lc:{{{1}}}}} | retail | |{{#ifeq:{{{link}}} | | [[Category:Invalid template usage (Availability)]]}}}}}}
-->{{#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)]]}}}}}}
 

Revision as of 22:32, 9 May 2020

Incorrect store name. See here for available options.