Template:Metacritic score: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(using older revisions and edit that instead as the other one breaks the N/A detection.)
(yet again something just break but hopefully should be fixed as the strings has been split in two.)
Line 3: Line 3:
<onlyinclude>{{messagebox
<onlyinclude>{{messagebox
|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: 2.4em; margin-top: .5em; margin-right: .5em; color: {{metacritic score color|{{{score|N/A}}} }};">{{{score|N/A}}}</div>
{{#switch:{{{score|N/A}}}
{{#switch:{{{score|N/A}}}
|n/a|N/a|N/A = {{Metacritic score/strings|Unrated}}
|n/a|N/a|N/A = {{Metacritic score/strings|Unrated}}
|#default={{Metacritic score/strings|Main}} {{autolang
|#default={{Metacritic score/strings|Main}}{{#if:{{{score|}}}|&nbsp;'''{{{score}}}'''}} {{Metacritic score/strings|Main2}} {{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>].  

Revision as of 02:02, 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