Difference between revisions of "Template:Get on Steam"
Line 7: | Line 7: | ||
<span style="color:white; font-size:20px;">'''{{{game}}}'''</span><br/> | <span style="color:white; font-size:20px;">'''{{{game}}}'''</span><br/> | ||
<span style="color:#D6D7D8; font-size:10px;">{{#ifeq:{{{get}}}|free|Free to play|{{#switch:{{SUBPAGENAME}} | <span style="color:#D6D7D8; font-size:10px;">{{#ifeq:{{{get}}}|free|Free to play|{{#switch:{{SUBPAGENAME}} | ||
− | | no|pt|ro|fr|it|hu|es|nl|pl|de|fi = {{{EUR}}}€ / ${{{USD}}} / £{{{GBP}}} | + | | no|pt|ro|fr|it|hu|es|nl|pl|de|fi = {{#if:{{{EUR|}}}|{{{EUR}}}€ / }}{{#if:{{{USD|}}}|${{{USD}}} / }}{{#if:{{{GBP|}}}|£{{{GBP}}}}} |
− | | #default = ${{{USD}}} / £{{{GBP}}} / {{{EUR}}}€ | + | | #default = {{#if:{{{USD|}}}|${{{USD}}} / }}{{#if:{{{GBP|}}}|£{{{GBP}}} / }}{{#if:{{{EUR|}}}|{{{EUR}}}€}} |
}}}}</span><br/> | }}}}</span><br/> | ||
{{#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 | {{#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 |
Revision as of 18:56, 14 August 2011
{{{game}}}
Details
Documentation for Get on Steam
Contents
Displays a status box on your mod's page, and adds it to the appropriate categories.
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.
| series = <l4d/p> // Left 4 Dead or Portal series.
| game = Team Fortress 2 // Name of the game
| price = $9.99 // Price of the game on Steam
| get = <free/money> // Game status on Steam
| image = Steam_tray.png // Image in the box
| placing = <left/right/center> // placing of the box. Default value is right.
}}
Example:
- See source for template code.
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Get on Steam/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: es, fr, nl, pl, pt-br, ru, zh-hant, fi (add) |