- 0 Talk
R
Template page
C
[edit] []
Template documentation
Usage
Edit
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
Edit
| 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}} |
See also
Edit
| The above documentation is transcluded from Template:R/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |