Documentation The documentation below is transcluded from Template:Rare/doc. (edit | history)
[purge]
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
| 单行文本 | 可选 |
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 |
|
0 |
|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
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.
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.
zh:Template:Rare