Template:Rare

From Terraria Wiki
Jump to: navigation, 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
Linerequired
Sortingsort
Add meta-information that ensures correct sorting in tables
Example:
y
Linedeprecated
Sorting is built-in.
Categorizationcat
cate
category
Forces categorization of the page in the "Items of rarity x" category
Example:
y
Lineoptional

Format: inline

Notes

List of rarity levels

Rarity level
(value of first unnamed parameter)
Output
-1 / gray -1*Rarity level: -1
0 00*Rarity level: 0
1 01*Rarity level: 1
2 02*Rarity level: 2
3 03*Rarity level: 3
4 04*Rarity level: 4
5 05*Rarity level: 5
6 06*Rarity level: 6
7 07*Rarity level: 7
8 08*Rarity level: 8
9 09*Rarity level: 9
10 10*Rarity level: 10
11 11*Rarity level: 11
rainbow 12*Rarity level: Rainbow
m / master 13*Rarity level: Fiery red
q / quest 14*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.


Prints a styled, linked rarity tag.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Rarity level1

Numerical (textual for special) rarity level

Example
4 / -1 / rainbow / quest
Linerequired
Sortingsort

Add meta-information that ensures correct sorting in tables

Example
y
Linedeprecated
Categorizationcat cate category

Forces categorization of the page in the "Items of rarity x" category

Example
y
Lineoptional