模板: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.