Template:Metacritic/doc

From Terraria Wiki
Jump to navigation Jump to search

Displays a Metacritic-style rating.

Usage

{{ metacritic | <score> | <score type> | style/css = <style> }}

ParameterDescriptionTypeStatus
Score1
Score on the Metacritic scale (0–100: critics' score (Metascore), 0–10: users' score).
Example:
45
Number
required
Type2
Defines the score scale (0–10 for "users", and 0–100 for everything else)
Example:
users
Line
optional
Stylestyle
css
CSS style of the div element.
Example:
width: 60px;
String
optional

Examples

Code Result
{{ metacritic | 0 }}
{{ metacritic | 20 }}
{{ metacritic | 50 }}
{{ metacritic | 75 }}
{{ metacritic | 90 }}
0
20
50
75
90
{{ metacritic | 0 | users }}
{{ metacritic | 2 | users }}
{{ metacritic | 5 | users }}
{{ metacritic | 7.5 | users }}
{{ metacritic | 9 | users }}
0
2
5
7.5
9
{{ metacritic | tbd }}
{{ metacritic | tbd | users }}
tbd
tbd
{{ metacritic | error }}
{{ metacritic | error | users }}
error
error

Options

This template supports options through {{options}} template. All valid options are listed below, see {{options}} for usage and other infomation.

See Template:metacritic/initOptions for the initial options setting of this template.

NameAliasInitial ValueValue Mapping[1]Note
stylecss
(empty)
  1. Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.