![]() | Help support Yugipedia by using our Chrome extension, which redirects links to the old Wikia/Fandom site to Yugipedia, ensuring you see the most up-to-date information. If you have any issues or find any bugs, be sure to let us know on Discord! |
Template:R
Usage
This template is used to standardize rarity names/abbreviations for templates, so they don't have to implement such a check locally. It currently supports all official rarities and their abbreviations, and is not case-sensitive. The template doesn't return anything when fed unsupported values, which can be used for error-checking.
Basic usage is {{r|rarity}}
, outputting the abbreviation for the given rarity. The full name can be output instead by using the {{{full}}}
parameter.
Examples
Code | Result | Code | Result |
---|---|---|---|
{{r|Common}} |
C | {{r|C}} |
C |
{{r|common}} |
C | {{r|c}} |
C |
{{r|Common|full=yes}} |
Common | {{r|C|full=yes}} |
Common |
{{r|Rare}} |
R | {{r|R}} |
R |
{{r|Ghost Rare}} |
GR | {{r|GR}} |
GR |
{{r|Foo}} |
{{r|BLA}} |
||
{{r|}} |
{{r}} |