模板:Rare
跳到导航
跳到搜索
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 level | 1 | Numerical (textual for special) rarity level
| 单行文本 | 必填 |
Sorting | sort | Add meta-information that ensures correct sorting in tables
| 单行文本 | 弃用 Sorting is built-in. |
Categorization | cat cate category | Forces categorization of the page in the "Items of rarity x" category
| 单行文本 | 可选 |
此模板首选参数行内格式。
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 |
---|---|
/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/
|
|
/
|
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.
Name | Alias | Initial Value | Value Mapping[1] | Note |
---|---|---|---|---|
cat | cate category | (empty) | yes → y on → y n → (empty) no → (empty) off → (empty) |
- ↑ Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.