Difference between revisions of "Template:Rarity"
(If I got this correctly, this was due to Gold Ultra Rare, which no longer exists.) |
(+ Secret Parallel Rare) |
||
Line 25: | Line 25: | ||
| spr | super parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Super Parallel Rare | SPR }} | | spr | super parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Super Parallel Rare | SPR }} | ||
| upr | ultra parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Ultra Parallel Rare | UPR }} | | upr | ultra parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Ultra Parallel Rare | UPR }} | ||
+ | | scpr | secret parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Secret Parallel Rare | ScPR }} | ||
| escpr | extra secret parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Extra Secret Parallel Rare | EScPR }} | | escpr | extra secret parallel = {{ {{{|safesubst:}}}#if: {{{full|}}} | Extra Secret Parallel Rare | EScPR }} | ||
| sfr | starfoil = {{ {{{|safesubst:}}}#if: {{{full|}}} | Starfoil Rare | SFR }} | | sfr | starfoil = {{ {{{|safesubst:}}}#if: {{{full|}}} | Starfoil Rare | SFR }} |
Revision as of 23:27, 27 February 2017
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}} |