Difference between revisions of "Template:Get on Steam"
(add ja) |
(Using dictionary for name and price tracking.) |
||
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| | + | [[File:{{{image|Game icon {{{app}}}.png}}}|65px|link=http://store.steampowered.com/app/{{{app}}}/]] |
</p> | </p> | ||
<p style="overflow:auto;text-align:left;"> | <p style="overflow:auto;text-align:left;"> | ||
− | <span style="color:white; font-size:20px;">'''{{{ | + | <span style="color:white; font-size:20px;">'''{{gameinfo|{{{app}}}|name}}'''</span><br/> |
− | <span style="color:#D6D7D8; font-size:15px; font-weight:bold">{{#ifeq:{{{ | + | <span style="color:#D6D7D8; font-size:15px; font-weight:bold">{{lang |
− | {{#ifeq:{{{ | + | | en = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}} / {{gameinfo|{{{app}}}|price-gbp}} / {{gameinfo|{{{app}}}|price-eur}}}} |
+ | | ar = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}} | ||
+ | | cs = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | de = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | es = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}} / {{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | fi = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | fr = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | hu = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | it = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | ja = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}} | ||
+ | | ko = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}} | ||
+ | | nl = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | no = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | pl = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | pt = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | pt-br = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-brl}}}} | ||
+ | | ro = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | ru = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-rub}}}} | ||
+ | | sv = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-eur}}}} | ||
+ | | tr = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}} | ||
+ | | zh-hant = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}} / {{gameinfo|{{{app}}}|price-rub}}}} | ||
+ | | zh-hans = {{#ifeq:{{gameinfo|{{{app}}}|price-usd}}|-|Free to play|{{gameinfo|{{{app}}}|price-usd}}}} | ||
+ | }}</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 | ||
| en = Install | | en = Install | ||
| cs = Instalovat | | cs = Instalovat | ||
Line 23: | Line 46: | ||
| ja = インストール | | ja = インストール | ||
}}</span>]|}} | }}</span>]|}} | ||
− | [http://store.steampowered.com/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/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 |
| en = Details | | en = Details | ||
| cs = Detaily | | cs = Detaily | ||
Line 39: | Line 62: | ||
}}{{#switch: {{{series}}} | l4d = (L4D) | p = (P1)}}</span>] | }}{{#switch: {{{series}}} | l4d = (L4D) | p = (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 |
| en = Details | | en = Details | ||
| cs = Detaily | | cs = Detaily | ||
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;">{{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;">{{Get on Steam <br /> | ||
| app = ''440'' // Game's app-number on Steam<br /> | | app = ''440'' // Game's app-number on Steam<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 /> | ||
| app2 = ''550'' // Second part of game.<br /> | | app2 = ''550'' // Second part of game.<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 /> | ||
}}</code></p> | }}</code></p> | ||
Line 78: | Line 97: | ||
'''Example:''' | '''Example:''' | ||
* See source for template code. | * See source for template code. | ||
− | {{Get on Steam | + | {{Get on Steam |
| app = 92800 | | app = 92800 | ||
− | + | | | |
− | |||
− | |||
− | |||
− | | | ||
}} | }} | ||
− | |||
− | |||
{{translation switching|cs, es, fr, ko, nl, pl, pt-br, ru, zh-hant, fi}} | {{translation switching|cs, es, fr, ko, nl, pl, pt-br, ru, zh-hant, fi}} | ||
</noinclude> | </noinclude> |
Revision as of 06:06, 24 April 2013
[[File:Game icon {{{app}}}.png|65px|link=http://store.steampowered.com/app/{{{app}}}/]]
{{dictionary/gameinfo/{{{app}}}|1=name}}
{{dictionary/gameinfo/{{{app}}}|1=price-usd}} / {{dictionary/gameinfo/{{{app}}}|1=price-gbp}} / {{dictionary/gameinfo/{{{app}}}|1=price-eur}}
Details
Documentation for Get on Steam
Contents
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
| 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.
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: cs, es, fr, ko, nl, pl, pt-br, ru, zh-hant, fi (add) |