Calamity Mod Wiki
m
 
(3 intermediate revisions by 3 users not shown)
Line 43: Line 43:
 
* 15 = [[File:Rarity color 15.png]]
 
* 15 = [[File:Rarity color 15.png]]
 
* 16 = [[File:Rarity color 16.png]]
 
* 16 = [[File:Rarity color 16.png]]
* rainbow = [[File:Rarity color rainbow.gif]]
+
* -12/rainbow = [[File:Rarity color rainbow.gif]]
* q/quest = [[File:Rarity color quest.png]]
+
* -11/q/quest = [[File:Rarity color quest.png]]
  +
* d/donator = [[File:Rarity color donator.png]]
  +
* riv = [[File:Rarity color rare variant.png]]
  +
* a/arsenal = [[File:Rarity color draedon arsenal.png]]
   
 
<includeonly>
 
<includeonly>

Latest revision as of 01:17, 2 August 2020

This template re-creates the Rarity ( rare = ) field from Template:Item infobox, producing a colored Rarity label, but allows it to be placed independently. This template can also add pages to the rarity categories.

Usage

Enter the rarity number as a parameter. Use the same number as you would for the infobox (see rarity).

When used in a sortable table's "rarity" column, add |sort=yes to each {{rare}} template. This will automatically add a sort key that will correct the rarity column's sort order.

If you want to add pages to the rarity categories, add |cat/cate/category=y/yes to each {{rare}} template, or add |cat/cate/category as unname parameter 2.


Example 1
  • {{rare|2}}

Produces:

  • Rarity Level: 2

Example 2
  • {{rare|q}} or {{rare|quest}}

Produces:

  • Rarity level: Quest

With category
  • {{rare|8|category}} or {{rare|cat=y|8}}

Color list

See Rarity for details

  • -1 = Rarity color negative.png
  • 0 = Rarity color 0.png
  • 1 = Rarity color 1.png
  • 2 = Rarity color 2.png
  • 3 = Rarity color 3.png
  • 4 = Rarity color 4.png
  • 5 = Rarity color 5.png
  • 6 = Rarity color 6.png
  • 7 = Rarity color 7.png
  • 8 = Rarity color 8.png
  • 9 = Rarity color 9.png
  • 10 = Rarity color 10.png
  • 11 = Rarity color 11.png
  • 12 = Rarity color 12.png
  • 13 = Rarity color 13.png
  • 14 = Rarity color 14.png
  • 15 = Rarity color 15.png
  • 16 = Rarity color 16.png
  • -12/rainbow = Rarity color rainbow.gif
  • -11/q/quest = Rarity color quest.png
  • d/donator = Rarity color donator.png
  • riv = Rarity color rare variant.png
  • a/arsenal = Rarity color draedon arsenal.png