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

From Team Fortress Wiki
Jump to: navigation, search
m (Returning 'series' to template parameter; icons now use File:Game icon [appid].png)
m (Allow image param to override.)
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:Game icon {{{app}}}|65px|link=http://store.steampowered.com/app/{{{app}}}/]]
+
[[File:{{{image|Game icon {{{app}}}}}|65px|link=http://store.steampowered.com/app/{{{app}}}/]]
 
</p>
 
</p>
 
<p style="overflow:auto;text-align:left;">
 
<p style="overflow:auto;text-align:left;">
Line 89: Line 89:
 
<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 />
 
| app = ''440'' // Game's app-number on Steam<br />
 
| app = ''440'' // Game's app-number on Steam<br />
 +
| image = Whoudja look at that.png // Used to specify games image, otherwise it uses File:Game icon [appid].png.
 
| series = ''<l4d/p>'' // Left 4 Dead or Portal series.<br />
 
| series = ''<l4d/p>'' // Left 4 Dead or Portal series.<br />
 
| part = ''<yes/no> // For 2-part games (L4D, Portal)<br />
 
| part = ''<yes/no> // For 2-part games (L4D, Portal)<br />

Revision as of 20:45, 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
| image = Whoudja look at that.png // Used to specify games image, otherwise it uses File:Game icon [appid].png. | 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.
}}

Example:

  • See source for template code.