Difference between revisions of "Template:Store"

From Prison Architect Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{raw:Central::Store}}</includeonly><noinclude> Use this template to place links to the Paradox Interactive or Steam store. ; Usage To place a '''Paradox Interac...")
 
m
Line 1: Line 1:
<includeonly>{{raw:Central::Store}}</includeonly><noinclude>
+
<includeonly>{{#switch: {{lc:{{{1|}}} }}
 +
  | pdx = [https://www.paradoxplaza.com/{{{2|}}}?utm_source=pdxwiki-owned&utm_medium=social-owned&utm_content=banner&utm_campaign={{UTMcampaign}}_20190525_past Paradox]
 +
  | steam = [http://store.steampowered.com/{{{2|publisher/paradoxinteractive}}}/?utm_source=pdxwiki-owned&utm_medium=social-owned&utm_content=banner&utm_campaign={{UTMcampaign}}_20190525_ste Steam]
 +
}}</includeonly><noinclude>
 
Use this template to place links to the Paradox Interactive or Steam store.
 
Use this template to place links to the Paradox Interactive or Steam store.
  
Line 12: Line 15:
 
* Open the desired store page, for example: <code><nowiki>https://store.steampowered.com/app/553280/Stellaris_Utopia/</nowiki></code>
 
* Open the desired store page, for example: <code><nowiki>https://store.steampowered.com/app/553280/Stellaris_Utopia/</nowiki></code>
 
* Copy the offer type (app, bundle, and etc.) with the associated id. In the example above it would be: <code><nowiki>app/553280</nowiki></code>
 
* Copy the offer type (app, bundle, and etc.) with the associated id. In the example above it would be: <code><nowiki>app/553280</nowiki></code>
* Paste the copied part into the template. The syntax should look as this: *<code><nowiki>{{Store|steam|app/553280}}</nowiki></code>
+
* Paste the copied part into the template. The syntax should look as this: <code><nowiki>{{Store|steam|app/553280}}</nowiki></code>
 
* Result: {{Store|steam|app/553280}}
 
* Result: {{Store|steam|app/553280}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 16:53, 24 May 2019

Use this template to place links to the Paradox Interactive or Steam store.

Usage

To place a Paradox Interactive store link:

  • Open the desired store page, for example: https://www.paradoxplaza.com/stellaris-utopia/STST01ESK0000001.html
  • Copy everything after the site name until the "html" tag. In the example above it would be: stellaris-utopia/STST01ESK0000001.html
  • Paste the copied part into the template. The syntax should look as this: {{Store|pdx|stellaris-utopia/STST01ESK0000001.html}}
  • Result: Paradox

To place a Steam store link:

  • Open the desired store page, for example: https://store.steampowered.com/app/553280/Stellaris_Utopia/
  • Copy the offer type (app, bundle, and etc.) with the associated id. In the example above it would be: app/553280
  • Paste the copied part into the template. The syntax should look as this: {{Store|steam|app/553280}}
  • Result: Steam