Terraria Wiki
Advertisement
Terraria Wiki
3,714
个页面
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 文档 以下文档内容来自模板:Rare/doc。 (edit | history)

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
可选

Format: inline

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.
Advertisement