Template:Game release: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added false value for supported systems. Also the "show/hide" value.)
(Translations are now done via the /strings page, this will make the code much cleaner.)
Line 2: Line 2:
<onlyinclude>
<onlyinclude>
{{messagebox
{{messagebox
|text = {{Autolang
|text = {{Game release/strings|Main}}<br>
| 1 = '''{{PAGENAME}}''' is currently available on Steam. [steam://run/{{{appid}}} '''Launch it now''']* or [{{valvestorefront game|appid={{{appid}}}}} <font style="color:yellow">'''buy it here'''</font>].<br><small>*Only works if Steam has been installed, please [https://store.steampowered.com/about/ install] Steam if you haven't already.</small>
{{#switch:{{{sys}}}
| vi = '''{{PAGENAME}}''' hiện tại đang có trong Steam. [steam://run/{{{appid}}} '''Mở trò chơi luôn''']* hoặc [{{valvestorefront game|appid={{{appid}}}}} <font style="color:yellow">'''mua nó ở đây'''</font>]<br><small>*Chỉ dùng được nếu Steam đã được cài đặt, nếu không, xin vui lòng [https://store.steampowered.com/about/ cài đặt] nếu bạn chưa có Steam.</small>
|true='''<br> {{Game release/strings|SupportedSystems}}
| zh = '''{{PAGENAME}}'''已上架至 Steam,您可 [steam://run/{{{appid}}} 立即启动游戏]* 或通过([{{valvestorefront game|appid={{{appid}}}}} <font style="color:yellow">'''浏览器'''</font>] {{!}} [steam://run/{{{appid}}} <font style="color:yellow">'''Steam'''</font>]*)浏览其商店页面。<br><small>*在运行游戏前,请确您保已[https://store.steampowered.com/about/ 安装]了 Steam。</small>
|show='''<br> {{Game release/strings|SupportedSystems}}'''
}}<br>{{#switch:{{{sys}}}|true='''<br> {{Autolang
|false=
| Supported Systems for this game:
|hide=
| vi = Trò chơi này hỗ chợ hệ điều hành:
}}  {{#switch:{{{win}}}|true={{windows|4}}|#default=|false=}} {{#switch:{{{mac}}}|true={{mac|4}}|#default=|false=}} {{#switch:{{{linux}}}|true={{linux|4}} + {{steamos|4}}|#default=|false=}}
| zh = 支持的操作系统:}}
|show='''<br> {{Autolang
| Supported Systems for this game:
| vi = Trò chơi này hỗ chợ hệ điều hành:
| zh = 支持的操作系统:
}}'''|false=|hide=}}  {{#switch:{{{win}}}|true={{windows|4}}|#default=|false=}} {{#switch:{{{mac}}}|true={{mac|4}}|#default=|false=}} {{#switch:{{{linux}}}|true={{linux|4}} + {{steamos|4}}|#default=|false=}}
{{#switch:{{{deck}}}
{{#switch:{{{deck}}}
| #default = <br> {{Autolang
| #default = <br> {{Game release/strings|DeckUnknown}}<!-- Same as Unknown by default. -->
| '''Steam Deck support status:''' {{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} More info on ProtonDB]
| unknown = <br> {{Game release/strings|DeckUnknown}}
| vi = '''Hỗ trợ hiện tại cho Steam Deck:''' {{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} Nhiều thông tin nữa trên ProtonDB]
| zh = '''Steam Deck 支持:'''{{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} ProtonDB 上的信息]
}}
| unknown = <br> {{Autolang
| '''Steam Deck support status:''' {{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} More info on ProtonDB] <!-- Does the exact same thing as default settings. -->
| vi = '''Hỗ trợ hiện tại cho Steam Deck:''' {{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} Nhiều thông tin nữa trên ProtonDB]
| zh = '''Steam Deck 支持:'''{{steamdeck untested|4}} - [https://www.protondb.com/app/{{{appid}}} ProtonDB 上的信息]
}}
| hide = {{blank}}
| hide = {{blank}}
| verified = <br> {{Autolang
| verified = <br> {{Game release/strings|DeckVerified}}
| '''Steam Deck support status:''' {{steamdeck verified|4}} - [https://www.protondb.com/app/{{{appid}}} More info on ProtonDB]
| playable = <br> {{Game release/strings|DeckPlayable}}
| vi = '''Hỗ trợ hiện tại cho Steam Deck:''' {{steamdeck verified|4}} - [https://www.protondb.com/app/{{{appid}}} Nhiều thông tin nữa trên ProtonDB]
| unsupported = <br> {{Game release/strings|DeckUnsupported}}
| zh = '''Steam Deck 支持:'''{{steamdeck verified|4}} - [https://www.protondb.com/app/{{{appid}}} ProtonDB 上的信息]
}}{{#if:{{{note|}}}|<br><font style="color: #f47b20"> '''{{Game release/strings|Notice}}'''</font> {{{note}}}}}
}}
| playable = <br> {{Autolang
| '''Steam Deck support status:''' {{steamdeck playable|4}} - [https://www.protondb.com/app/{{{appid}}} More info on ProtonDB]
| vi = '''Hỗ trợ hiện tại cho Steam Deck:''' {{steamdeck playable|4}} - [https://www.protondb.com/app/{{{appid}}} Nhiều thông tin nữa trên ProtonDB]
| zh = '''Steam Deck 支持:'''{{steamdeck playable|4}} - [https://www.protondb.com/app/{{{appid}}} ProtonDB 上的信息]
}}
| unsupported = <br> {{Autolang
| '''Steam Deck support status:''' {{steamdeck unsupported|4}} - [https://www.protondb.com/app/{{{appid}}} More info on ProtonDB]
| vi = '''Hỗ trợ hiện tại cho Steam Deck:''' {{steamdeck unsupported|4}} - [https://www.protondb.com/app/{{{appid}}} Nhiều thông tin nữa trên ProtonDB]
| zh = '''Steam Deck 支持:'''{{steamdeck unsupported|4}} - [https://www.protondb.com/app/{{{appid}}} ProtonDB 上的信息]
}}}}{{#if:{{{note|}}}|<br><font style="color: #f47b20"> '''{{Autolang
| Notice:
| vi = Chú ý:
| zh = 注意:
}}'''</font> {{{note}}}}}
<!-- User:kr0tchet - Probably might need some rewritten to the Supported Systems + Note section to accept false value. Somebody else will probably do it.-->
<!-- User:kr0tchet - Probably might need some rewritten to the Supported Systems + Note section to accept false value. Somebody else will probably do it.-->
|image = [[File:steam_available.png|link=]]
|image = [[File:steam_available.png|link=]]

Revision as of 01:28, 4 May 2023


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

Translations

Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

Some of them are using strings, which are on strings subpage. Please follow the format to add translations for them.
To edit/translate the ProtonDB and the Steam purchase/free download link, please edit the main template itself instead due to a bug which requires workaround.

Warning.pngWarning:Translation are not 100% accurate, some of those are done via Google Translate, it will need some improvements!
Some other languages may not fully translated.

Usage

Syntax: {{game release|appid=<game appid>}} Optional: Put {{game release|appid=<game appid>|sys=true|win=true|mac=true|linux=true|note=<insert text here>}} to show all supported systems (Win, Mac, Linux + SteamOS).

Parameters

Example and preview

See Testcases page for more.

See also

Todo: Merging all of these into one templates (currently W.I.P as {{Software status}}).

Software status (unified)

Game release + demo

  • Template:Game release - You are currently viewing this page
  • Template:Game release free - For Games that are released for free.
  • Template:Game demo - For paid games, with a free demo available. Or simply just have a demo-only release available.

Mod release

Delisted games

Software release