TemplateDoc:H5Rarity
From Halopedia, the Halo wiki
Description[edit]
This template is used as a shorthand to change the colour of text, when referring to the rarity of a REQ card in Halo 5: Guardians.
A similar template, Template:HINFRarity, exists to cover items in Halo Infinite.
Usage[edit]
Syntax[edit]
To insert this template onto a page, place the following wikitext onto the article.
{{H5Rarity}}
Parameters[edit]
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
- Uncommon
- Rare
- Ultra Rare
- Legendary
- Mythic
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[edit]
Entering any first input except the above listed will break the template.
Example[edit]
Here is an example of what the template will output, when used:
Wiki markup | Result |
---|---|
{{H5Rarity|Common}} |
Common |
{{H5Rarity|Uncommon}} |
Uncommon |
{{H5Rarity|Rare}} |
Rare |
{{H5Rarity|Ultra Rare}} |
Ultra Rare |
{{H5Rarity|Legendary}} |
Legendary |
{{H5Rarity|Mythic}} |
Mythic |
{{H5Rarity|Legendary|displaytext}} |
displaytext |
Dependencies[edit]
Template dependencies[edit]
This template does not depend on any templates.
Extension dependencies[edit]
This template does not require any extensions.
Dependent templates[edit]
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!