Template:HINFRarity

From Halopedia, the Halo wiki

vde
Template Documentation

Description

This template is used as a shorthand to change the colour of text, when referring to the rarity of a cosmetic items in Halo Infinite.

A similar template, Template:H5Rarity, exists to cover items in Halo 5: Guardians.

Usage

Syntax

To insert this template onto a page, place the following wikitext onto the article.

{{HINFRarity}}

Parameters

This template accepts two parameters. The first is mandatory, and will only accept one of the following inputs, which determine the colour of the text:

  • Common
  • Rare
  • Epic
  • Legendary

The second input is optional, and can be used to change the displayed text, should it be needed. There is almost no need for this second input to be used, but it is included in case of irregularities.

Error states

Entering any first input except the above listed will break the template.

Example

Here is an example of what the template will output, when used:

Wiki markup Result
{{HINFRarity|Common}}
Common
{{HINFRarity|Rare}}
Rare
{{HINFRarity|Epic}}
Epic
{{HINFRarity|Legendary}}
Legendary
{{HINFRarity|Legendary|displaytext}}
displaytext

Dependencies

Template dependencies

This template does not depend on any templates.

Extension dependencies

This template does not require any extensions.

Dependent templates

The following templates depend upon this one. If you are making changes to this template, please ensure that they will not break any of them!