Template:Rare

From Terraria Wiki
Jump to navigation Jump to search
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 Documentation The documentation below is transcluded from Template: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) }}

ParameterDescriptionTypeStatus
Rarity level1
Numerical (textual for special) rarity level
Example:
4 / -1 / rainbow / quest
Line
required
Sortingsort
Add meta-information that ensures correct sorting in tables
Example:
y
Line
deprecated
Sorting is built-in.
Categorizationcat
cate
category
Forces categorization of the page in the "Items of rarity x" category
Example:
y
Line
optional

This template prefers inline formatting of parameters.

Notes

List of rarity levels

Rarity level
(value of first unnamed parameter)
Output
-1 / gray Rarity level: -1
0 Rarity level: 0
1 Rarity level: 1
2 Rarity level: 2
3 Rarity level: 3
4 Rarity level: 4
5 Rarity level: 5
6 Rarity level: 6
7 Rarity level: 7
8 Rarity level: 8
9 Rarity level: 9
10 Rarity level: 10
11 Rarity level: 11
rainbow Rarity level: Rainbow
m / master Rarity level: Fiery red
q / quest Rarity level: 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.