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