Template:Rare

From Terraria Mods Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Rare/doc. (edit | history)

This template is used to define valid custom rarity levels for the mod. It sets file and category names, hover texts, as well as sort IDs for the different rarity levels.

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> | cat/cate/category = y/n (optional) }}

Notes

  • A page that is in mainspace and is not a subpage of a mod article will always be categorized.
  • To make mod-specific rarity levels available on the mod's wiki, create a subtemplate with the name of the mod. Refer to Template:Rare/_Example for the format of the content.
    • The mod-specific rarity levels of the following mods are supported:

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