Template:Metacritic score: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(using older revisions and edit that instead as the other one breaks the N/A detection.)
Line 4: Line 4:
|text =  
|text =  
<div class="floatright" style="font-size: 2em; margin-top: .5em; margin-right: .5em; color: {{metacritic score color|{{{score|N/A}}} }};">{{{score|N/A}}}</div>
<div class="floatright" style="font-size: 2em; margin-top: .5em; margin-right: .5em; color: {{metacritic score color|{{{score|N/A}}} }};">{{{score|N/A}}}</div>
<!-- Links are translated separately as putting them in /strings would break them if you trying to click it. -->
{{#switch:{{{score|N/A}}}
{{#switch:{{{score|N/A}}}|#default={{Metacritic score/strings|Main}} {{autolang
|n/a|N/a|N/A = {{Metacritic score/strings|Unrated}}
|#default={{Metacritic score/strings|Main}} {{autolang
| 1 = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">click here</span>].
| 1 = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">click here</span>].
| de = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">hier klicken</span>].  
| de = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">hier klicken</span>].  
Line 16: Line 17:
| zh-tw = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">點擊這裡</span>]。
| zh-tw = [{{metacritic website|platform={{{platform}}}|gameid={{{gameid}}}}} <span style="color: yellow;">點擊這裡</span>]。
}}}}
}}}}
|n/a|N/a|N/A|unrated|Unrated={{Metacritic score/strings|Unrated}}
|image = [[File:Logo-Metacritic.png|40px|left|link=]]
| image = [[File:Logo-Metacritic.png|40px|left|link=]]
|bgcolor = {{#switch:{{{bgcolor|}}}
| bgcolor = {{#switch:{{{bgcolor|}}}
| #default = {{metacritic score color|{{{score}}}|hexdark}} | black = #000000}}
| #default = {{metacritic score color|{{{score}}}|hexdark}} | black = #000000}}
|bdcolor = {{metacritic score color|{{{score}}}}}
|bdcolor = {{metacritic score color|{{{score}}}}}

Revision as of 01:55, 19 July 2023

English (en)Deutsch (de)Español (es)한국어 (ko)Polski (pl)Русский (ru)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
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.

Usage

Syntax: {{Metacritic score|color = (color)|gameid = (game-name)|platform = (platform)|score = (score)|bgcolor = (blank or black)}}

Parameters

Preview