Uit Valve Developer Community
Naar navigatie springen
Naar zoeken springen

Available doc translations
…
NederlandsThe
Template:Metacritic score color/doc/nl documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
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
|