Difference between revisions of "Template:Rarity"
Dinoguy1000 (talk | contribs) (meh) |
Dinoguy1000 (talk | contribs) (Millennium Rare variants) |
||
Line 29: | Line 29: | ||
| shr | shatterfoil = {{ #if: {{{full|}}} | Shatterfoil Rare | SHR }} | | shr | shatterfoil = {{ #if: {{{full|}}} | Shatterfoil Rare | SHR }} | ||
| cr | collector's | collectors = {{ #if: {{{full|}}} | Collectors Rare | CR }} | | cr | collector's | collectors = {{ #if: {{{full|}}} | Collectors Rare | CR }} | ||
− | |||
| kcr | kaiba corporation = {{ #if: {{{full|}}} | Kaiba Corporation Rare | KCR }} | | kcr | kaiba corporation = {{ #if: {{{full|}}} | Kaiba Corporation Rare | KCR }} | ||
+ | | mr | mlr | millennium = {{ #if: {{{full|}}} | Millennium Rare | MLR }} | ||
+ | | mlsr | millennium super = {{ #if: {{{full|}}} | Millennium Super Rare | MLSR }} | ||
+ | | mlur | millennium ultra = {{ #if: {{{full|}}} | Millennium Ultra Rare | MLUR }} | ||
+ | | mlscr | millennium secret = {{ #if: {{{full|}}} | Millennium Secret Rare | MLScR }} | ||
+ | | mlgr | millennium gold = {{ #if: {{{full|}}} | Millennium Gold Rare | MLGR }} | ||
| ¬ | gold = Gold Rare | | ¬ | gold = Gold Rare | ||
| gur | gold = {{ #if: {{{full|}}} | Gold Rare | GUR }} | | gur | gold = {{ #if: {{{full|}}} | Gold Rare | GUR }} |
Revision as of 11:32, 18 November 2015
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 {{rarity|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 |
---|---|---|---|
{{rarity|Common}} |
C | {{rarity|C}} |
C |
{{rarity|common}} |
C | {{rarity|c}} |
C |
{{rarity|Common|full=yes}} |
Common | {{rarity|C|full=yes}} |
Common |
{{rarity|Rare}} |
R | {{rarity|R}} |
R |
{{rarity|Ghost Rare}} |
GR | {{rarity|GR}} |
GR |
{{rarity|Foo}} |
{{rarity|BLA}} |
||
{{rarity|}} |
{{rarity}} |