Difference between revisions of "Template:Get on Steam"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Update buttons to look similar to Steam store buttons)
Line 30: Line 30:
 
  | zh-hans = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}}
 
  | zh-hans = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}}
 
  }}}}</span><br/>
 
  }}}}</span><br/>
{{#ifeq:{{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
+
{{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|[steam://install/{{{app}}}/ <span style="border:none; color:#d2e885; cursor:pointer; font-weight:bold; padding:1px; display:inline-block; text-decoration:none; background:#759405; background:-webkit-linear-gradient(top, #a4d007 5%, #536904 95%); background:linear-gradient(to bottom, #a4d007 5%, #536904 95%); -moz-border-radius: 2px; border-radius: 2px;">{{lang
 
         | en = Install
 
         | en = Install
 
         | cs = Instalovat
 
         | cs = Instalovat
Line 49: Line 49:
 
         | zh-hans = 安装   
 
         | zh-hans = 安装   
 
       }}</span>]|}}
 
       }}</span>]|}}
[http://store.steampowered.com/{{#switch:{{{bundle}}}|yes=sub|app}}/{{{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
+
[http://store.steampowered.com/{{#switch:{{{bundle}}}|yes=sub|app}}/{{{app}}}/ <span style="border:none; color:#d2e885; cursor:pointer; font-weight:bold; padding:1px; display:inline-block; text-decoration:none; background:#759405; background:-webkit-linear-gradient(top, #a4d007 5%, #536904 95%); background:linear-gradient(to bottom, #a4d007 5%, #536904 95%); border-radius:2px; -moz-border-radius:2px;">{{lang
 
   | en = Details
 
   | en = Details
 
   | cs = Detaily
 
   | cs = Detaily
Line 68: Line 68:
 
}}{{#switch: {{{series}}} | l4d = &nbsp;(L4D) | p = &nbsp;(P1)}}</span>]
 
}}{{#switch: {{{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="border:none; color:#d2e885; cursor:pointer; font-weight:bold; padding:1px; display:inline-block; text-decoration:none; background:#759405; background:-webkit-linear-gradient(top, #a4d007 5%, #536904 95%); background:linear-gradient(to bottom, #a4d007 5%, #536904 95%); border-radius:2px; -moz-border-radius:2px;">{{lang
 
   | en = Details
 
   | en = Details
 
   | cs = Detaily
 
   | cs = Detaily

Revision as of 20:13, 28 November 2016

Documentation for Get on Steam

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

Usage

{{Get on Steam
| app = ''500'' // Game's app-number on Steam
| series = ''<l4d/p>'' // Left 4 Dead or Portal series.
| 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''.
}}


Images

Images associated with games (such as File:Dota 2.png) should redirect to an image with the game id (such as File:Game icon 570.png), which is where the images should actually be stored.