Template:Metacritic score/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{doc/subpage}}
==Usage==
==Usage==
{{syntax|<nowiki>{{Metacritic score|color = (color)|gameid = (game-name)|platform = (platform)|score = (score)}}</nowiki>}}
{{syntax|<nowiki>{{Metacritic score|color = (color)|gameid = (game-name)|platform = (platform)|score = (score)|bgcolor = (blank or black)}}</nowiki>}}


== Parameters ==
== Parameters ==
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, must follow the website URL. 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<br>{{MDeprecated|Partially deprecated since the website redesign in Sep 2023. For example, {{hl2xbox|4}} Metacritic links will lead to reviews combining both PC and original Xbox version.<br>Platform-specific reviews are now located in {{code|?platform{{=}}pc}} instead of {{code|pc/game_name}}. However, it is still required to be specified in order to avoid breaking links.}}
|-
|-
| <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 = 93}}
{{Metacritic score|gameid = half-life-alyx|platform = pc|score = 97}}
{{Metacritic score|gameid = half-life-blue-shift|platform = pc|score = 50}}
{{Metacritic score|gameid = postal-iii|platform = pc|score = 23}}
{{Metacritic score|gameid = counter-strike-2|platform = pc|score = N/A}}

Latest revision as of 09:06, 27 September 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)|bgcolor = (blank or black)}}

Parameters

Preview