control


Template Documentation follows
[view | edit | history | purge]

In Control, items like Materials and Mods come in one of six rarities, namely "common", "uncommon", "rare", "prime", "absolute" and "infinite". In-game, each rarity is depicted with a specific color. This template can be used to mark text or its background with these colors. Note that giving the color to text that is a link will not work as intended, as links have their own default color.

The template makes use of the "rarity classes" as they are defined in MediaWiki:Common.css; see below for a list.

The background option should be used only sparsely; in tables, the class should be applied to the cell, row or column instead.

Consider to use bold formatting for the text as not every color will be clear on every background, depending e.g. on font size. If you're going for the background option, consider to include spaces before and after the word(s). The examples below do not use these considerations.

Usage

The template has three named parameters: bg for background color, rar for text color, and text for the text. If background has a valid value, the text will be displayed in the default wiki color, so it's not possible to change the color of background and text.

Copy-pasta

{{rarity
| bg   = 
| rar  = 
| text = 
}}

Values

Valid values for both, rarity and background are as follows (upper case is ignored):

  1. Common, I, 1
  2. Uncommon, II, 2
  3. Rare, III, 3
  4. Prime, IV, 4, Legendary
  5. Absolute, V, 5, Exquisite
  6. Infinite, VI, 6, Ascendant, Ascendent
Note: "Legendary", "Exquisite" and "Ascendant" are alternative terms found in the code of game files.

Examples

Typing

'''Rewards:''' 1 {{rarity|rar=common|text=common}}, 1 {{rarity|rar=UNCOMMON|text=uncommon}}, 1 {{rarity|rar=iii|text=rare}}, 1 {{rarity|rar=IV|text=prime}}, 1 {{rarity|rar=5|text=absolute}}, 1 {{rarity|rar=ascendant|text=infinite}} [[Weapon Mod]]

results in

Rewards: 1 common, 1 uncommon, 1 rare, 1 prime, 1 absolute, 1 infinite Weapon Mod

Typing

'''Rewards:''' 1 {{rarity|bg=common|text=common}}, 1 {{rarity|bg=UNCOMMON|text=uncommon}}, 1 {{rarity|bg=iii|text=rare}}, 1 {{rarity|bg=IV|text=prime}}, 1 {{rarity|bg=5|text=absolute}}, 1 {{rarity|bg=ascendant|text=infinite}} [[Weapon Mod]]

results in

Rewards: 1 common, 1 uncommon, 1 rare, 1 prime, 1 absolute, 1 infinite Weapon Mod

Classes

To apply the related classes to e.g. tables, use the following codes:

class="rar-common"
class="rar-common-bg"
class="rar-uncommon"
class="rar-uncommon-bg"
class="rar-rare"
class="rar-rare-bg"
class="rar-prime"
class="rar-prime-bg"
class="rar-absolute"
class="rar-absolute-bg"
class="rar-infinite"
class="rar-infinite-bg"
The above documentation is transcluded from Template:Rarity/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories and interwikis to the /doc subpage. Subpages of this template.