Difference between revisions of "User:RJackson/Template:Get on Steam"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "<div class="plainlinks"> <div style="border-width:1px;border-style:solid;-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em;padding:.5em;min-height:58px;width:...")
 
m (Dictionary-dependant version to test.)
Line 2: Line 2:
 
<div style="border-width:1px;border-style:solid;-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em;padding:.5em;min-height:58px;width:20em; margin:.4em .75em .5em;float:{{{placing|right}}};background-color:#262626; border-color:#3C3D3E;">
 
<div style="border-width:1px;border-style:solid;-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em;padding:.5em;min-height:58px;width:20em; margin:.4em .75em .5em;float:{{{placing|right}}};background-color:#262626; border-color:#3C3D3E;">
 
<p style="float:left;margin:0;padding:5px;">
 
<p style="float:left;margin:0;padding:5px;">
[[File:{{{image|Steam_tray.png}}}|65px|link=http://store.steampowered.com/app/{{{app|440}}}/]]
+
[[File:{{user:RJackson/Template:Gameinfo|{{{app}}}|image}}|65px|link=http://store.steampowered.com/app/{{{app|440}}}/]]
 
</p>
 
</p>
 
<p style="overflow:auto;text-align:left;">
 
<p style="overflow:auto;text-align:left;">
<span style="color:white; font-size:20px;">'''{{{game}}}'''</span><br/>
+
<span style="color:white; font-size:20px;">'''{{user:RJackson/Template:Gameinfo|{{{app}}}|name}}'''</span><br/>
<span style="color:#D6D7D8; font-size:15px; font-weight:bold">{{#ifeq:{{{get}}}|free|Free to play|{{{price}}}}}</span><br/>
+
<span style="color:#D6D7D8; font-size:15px; font-weight:bold">{{lang
{{#ifeq:{{{get}}}|free|[steam://install/{{{app}}}/ <span style="color:white; font-weight:bold; padding:0 3px; background-color:#73A234; -moz-border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;">{{lang
+
| en =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}} / {{user:RJackson/Template:Gameinfo|{{{app}}}|price-gbp}} / {{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| ar =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}}}
 +
| cs =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| de =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| es =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}} / {{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| fi =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| fr =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| hu =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| it =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| ja =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}}}
 +
| ko =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}}}
 +
| nl =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| no =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| pl =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| pt =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| pt-br =  {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-brl}}}}
 +
| ro =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| ru =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-rub}}}}
 +
| sv =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-eur}}}}
 +
| tr =      {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}}}
 +
| zh-hant = {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}} / {{user:RJackson/Template:Gameinfo|{{{app}}}|price-rub}}}}
 +
| zh-hans = {{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}}}
 +
}}</span><br/>
 +
{{ifeq:{{user:RJackson/Template:Gameinfo|{{{app}}}|price-usd}}|-|[steam://install/{{{app}}}/ <span style="color:white; font-weight:bold; padding:0 3px; background-color:#73A234; -moz-border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;">{{lang
 
         | en = Install
 
         | en = Install
 
         | cs = Instalovat
 
         | cs = Instalovat
Line 37: Line 60:
 
   | fi = Lisätietoja
 
   | fi = Lisätietoja
 
   | ja = 詳細
 
   | ja = 詳細
}}{{#switch: {{{series}}} | l4d = &nbsp;(L4D) | p = &nbsp;(P1)}}</span>]
+
}}{{#switch: {{user:RJackson/Template:Gameinfo|{{{app}}}|series}} | l4d = &nbsp;(L4D) | p = &nbsp;(P1)}}</span>]
 
{{#switch: {{{part}}}
 
{{#switch: {{{part}}}
 
| yes = [http://store.steampowered.com/app/{{{app2}}}/ <span style="color:white; font-weight:bold; padding:0 3px; background-color:#73A234; -moz-border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;">{{lang  
 
| yes = [http://store.steampowered.com/app/{{{app2}}}/ <span style="color:white; font-weight:bold; padding:0 3px; background-color:#73A234; -moz-border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;">{{lang  
Line 53: Line 76:
 
   | fi = Lisätietoja
 
   | fi = Lisätietoja
 
   | ja = 詳細
 
   | ja = 詳細
}}{{#switch: {{{series}}} | l4d = &nbsp;(L4D2) | p = &nbsp;(P2)}}</span>]
+
}}{{#switch: {{user:RJackson/Template:Gameinfo|{{{app2}}}|series}} | l4d = &nbsp;(L4D2) | p = &nbsp;(P2)}}</span>]
 
| #default =}}
 
| #default =}}
 
</p>
 
</p>
Line 62: Line 85:
 
<noinclude>
 
<noinclude>
 
{{doc begin}}__TOC__
 
{{doc begin}}__TOC__
Displays a status box on your mod's page, and adds it to the appropriate categories.
+
Displays a status box on your mod's page, and adds it to the appropriate categories. Some information is loaded from [[Template:Dictionary/Gameinfo]].
  
 
<p style="text-align:left;margin-left:1.5em;"><span style="float:left;margin-right:.5em;">'''Usage:'''</span><code style="overflow:auto;display:block;">&#123;&#123;Get on Steam <br />
 
<p style="text-align:left;margin-left:1.5em;"><span style="float:left;margin-right:.5em;">'''Usage:'''</span><code style="overflow:auto;display:block;">&#123;&#123;Get on Steam <br />
Line 68: Line 91:
 
| part = ''<yes/no> // For 2-part games (L4D, Portal)<br />
 
| part = ''<yes/no> // For 2-part games (L4D, Portal)<br />
 
| app2 = ''550'' // Second part of game.<br />
 
| app2 = ''550'' // Second part of game.<br />
| series = ''<l4d/p>'' // Left 4 Dead or Portal series.<br />
 
| game = ''Team Fortress 2'' // Name of the game<br />
 
| price = ''$9.99'' // Price of the game on Steam<br />
 
| get = ''<free/money>'' // Game status on Steam<br />
 
| image = ''Steam_tray.png'' // Image in the box<br />
 
 
| placing = ''<left/right/center>'' // placing of the box. Default value is ''right''. <br />
 
| placing = ''<left/right/center>'' // placing of the box. Default value is ''right''. <br />
 
&#125;&#125;</code></p>
 
&#125;&#125;</code></p>
Line 80: Line 98:
 
{{Get on Steam  
 
{{Get on Steam  
 
  | app = 92800
 
  | app = 92800
| game = SpaceChem
 
| price = $14.99 USD
 
| get = money
 
| image = SpaceChem.png
 
 
  |  
 
  |  
 
}}
 
}}

Revision as of 12:38, 23 April 2013


Documentation for RJackson/Template:Get on Steam

Displays a status box on your mod's page, and adds it to the appropriate categories. Some information is loaded from Template:Dictionary/Gameinfo.

Usage:{{Get on Steam
| app = 440 // Game's app-number on Steam
| part = <yes/no> // For 2-part games (L4D, Portal)
| app2 = 550 // Second part of game.
| placing = <left/right/center> // placing of the box. Default value is right.
}}

Example:

  • See source for template code.