Template:Rare

来自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:Rare/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Rare/doc。(编辑 | 历史

This template prints a rarity level string, styled as in-game. It can also categorize the page in the respective rarity category.

Usage

{{ rare | <rarity level> | sort = y (optional) | cat/cate/category = y/n (optional) }}

参数描述类型状态
Rarity level1
Numerical (textual for special) rarity level
示例:
4 / -1 / rainbow / quest
单行文本
必填
Sortingsort
Add meta-information that ensures correct sorting in tables
示例:
y
单行文本
弃用
Sorting is built-in.
Categorizationcat
cate
category
Forces categorization of the page in the "Items of rarity x" category
示例:
y
单行文本
可选

此模板首选参数行内格式。

Notes

  • A page that is in mainspace and is not a subpage, unless it is a translation project subpage, will always be categorized.

List of rarity levels

Rarity level
(value of first unnamed parameter)
Output
-1 / gray 稀有度级别:-1
0 稀有度级别:0
1 稀有度级别:1
2 稀有度级别:2
3 稀有度级别:3
4 稀有度级别:4
5 稀有度级别:5
6 稀有度级别:6
7 稀有度级别:7
8 稀有度级别:8
9 稀有度级别:9
10 稀有度级别:10
11 稀有度级别:11
rainbow 稀有度级别:彩虹
m / master 稀有度级别:火红
q / quest 稀有度级别:任务

Options

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

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

NameAliasInitial ValueValue Mapping[1]Note
catcate
category
(empty)yesy
ony
n(empty)
no(empty)
off(empty)
  1. Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.