Template:Metacritic
跳转到导航
跳转到搜索
Displays a Metacritic-style rating.
Usage
{{ metacritic | <score> | <score type> | style/css = <style> }}
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Score | 1 | Score on the Metacritic scale (0–100: critics' score (Metascore), 0–10: users' score).
| 数字 | 必需 |
Type | 2 | Defines the score scale (0–10 for "users", and 0–100 for everything else)
| 单行文本 | 可选 |
Style | style css | CSS style of the div element.
| 字符串 | 可选 |
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.
Name | Alias | Initial Value | Value Mapping[1] | Note |
---|---|---|---|---|
style | css | (empty) |
- ↑ Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.