Template:Metacritic score color

From Valve Developer Community
Jump to navigation Jump to search
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)
Icon-translate.png Available doc translations
View
Page history

Usage

This is used to get the color for the border and background of a specific Metacritic score.

Parameters

Parameter Usage Example Result
(no parameters) Returns red in hexadecimal {{Metacritic score color}} #FF0000
{{{1}}} The score of the game from the Metacritic website. Returns the appropriate color of the background in hexadecimal. {{Metacritic score color|35}}
{{Metacritic score color|50}}
{{Metacritic score color|100}}
#FF0000
#FFCC33
#66CC33
{{{2}}} If set to color: Returns the color of the text that corresponds to the background.

If set to rgb: Returns the color of the border in RGB format.
If set to rgbdark: Returns the color of the background in RGB format, darker version of rgb.
If set to dark or hexdark: Same as above, but in hexadecimal.

Text color (unused?):
{{Metacritic score color|35|color}}
{{Metacritic score color|50|color}}
{{Metacritic score color|100|color}}

Border color (RGB): {{Metacritic score color|35|rgb}}
{{Metacritic score color|50|rgb}}
{{Metacritic score color|100|rgb}}

Background color (RGB Dark): {{Metacritic score color|35|rgbdark}}
{{Metacritic score color|50|rgbdark}}
{{Metacritic score color|100|rgbdark}}

Text color:
white
black
white

Border color (RGB):
255,0,0
255,204,51
102,204,51

Background (RGB Dark):
38,26,26
38,35,26
30,38,26

Background (Hex Dark):
#261A1A
#26231A
#1E261A