Template:Metacritic score/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 8: Line 8:
! Description
! Description
|-
|-
| <code style="background:{{{bg|{{{background|rgb(0,0,0,.35)}}}}}}; border-radius:3px; color: {{{color|currentcolor}}}; padding:2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">gameid</code>
| {{code|{{param|gameid}}}}
| The game id. Example: half-life-2
| The game id. Example: half-life-2
|-
|-
| <code style="background:{{{bg|{{{background|rgb(0,0,0,.35)}}}}}}; border-radius:3px; color: {{{color|currentcolor}}}; padding:2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">platform</code>
| {{code|{{param|platform}}}}
| Platforms. Example: pc, xbox-360, playstation-3
| Platforms. Example: pc, xbox-360, playstation-3
|-
|-
| <code style="background:{{{bg|{{{background|rgb(0,0,0,.35)}}}}}}; border-radius:3px; color: {{{color|currentcolor}}}; padding:2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">score</code>
| {{code|{{param|score}}}}
| Metascore
| Metascore
|-
| {{code|{{param|bgcolor}}}}
| Background color.<br>Available values: blank (default), {{code|black}} (classic black)
|-
|-
|}
|}
== Preview ==
== Preview ==
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 97}}
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 97}}
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 50}}
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 50}}
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 23}}
{{Metacritic score|color = lightgreen|gameid = half-life-alyx|platform = pc|score = 23}}

Revision as of 10:38, 6 July 2023

Edit-copy.png
This is a documentation subpage for Template:Metacritic score.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Usage

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

Parameters

Preview