Template:Metacritic score color/doc

From Valve Developer Community
Jump to: navigation, search
Edit-copy.png
This is a documentation subpage for Template:Metacritic score color.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

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,0,0
38,29,7
19,38,10

Background (Hex Dark):
#260000
#261d07
#13260a