Template:Metacritic

来自Terraria Wiki
跳转到导航 跳转到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Metacritic/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Metacritic/doc。(编辑 | 历史

Displays a Metacritic-style rating.

Usage

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

参数描述类型状态
Score1
Score on the Metacritic scale (0–100: critics' score (Metascore), 0–10: users' score).
示例值:
45
数字
必需
Type2
Defines the score scale (0–10 for "users", and 0–100 for everything else)
示例值:
users
单行文本
可选
Stylestyle
css
CSS style of the div element.
示例值:
width: 60px;
字符串
可选

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.