Difference between revisions of "Template:Rarity"
Dinoguy1000 (talk | contribs) (+ Parallel Common/Duel Terminal Parallel Common (wondering if "Parallel Normal Rare", for instance, is the same as "Normal Parallel Rare" and worth adding)) |
Dinoguy1000 (talk | contribs) (add Starfoil Rare, get (more) anal about lining stuf up) |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
#switch: {{lc: {{{1<noinclude>|C</noinclude>}}} }} | #switch: {{lc: {{{1<noinclude>|C</noinclude>}}} }} | ||
− | | c | common = {{ #if: {{{full|}}} | Common | C }} | + | | c | common = {{ #if: {{{full|}}} | Common | C }} |
− | | nr | normal rare = {{ #if: {{{full|}}} | Normal Rare | NR }} | + | | nr | normal rare = {{ #if: {{{full|}}} | Normal Rare | NR }} |
− | | sp | short print = {{ #if: {{{full|}}} | Short Print | SP }} | + | | sp | short print = {{ #if: {{{full|}}} | Short Print | SP }} |
− | | ssp | super short print = {{ #if: {{{full|}}} | Super Short Print | SSP }} | + | | ssp | super short print = {{ #if: {{{full|}}} | Super Short Print | SSP }} |
− | | hfr | holofoil rare = {{ #if: {{{full|}}} | Holofoil Rare | HFR }} | + | | hfr | holofoil rare = {{ #if: {{{full|}}} | Holofoil Rare | HFR }} |
− | | r | rare = {{ #if: {{{full|}}} | Rare | R }} | + | | r | rare = {{ #if: {{{full|}}} | Rare | R }} |
− | | sr | super rare = {{ #if: {{{full|}}} | Super Rare | SR }} | + | | sr | super rare = {{ #if: {{{full|}}} | Super Rare | SR }} |
− | | ur | ultra rare = {{ #if: {{{full|}}} | Ultra Rare | UR }} | + | | ur | ultra rare = {{ #if: {{{full|}}} | Ultra Rare | UR }} |
− | | utr | ultimate rare = {{ #if: {{{full|}}} | Ultimate Rare | UtR }} | + | | utr | ultimate rare = {{ #if: {{{full|}}} | Ultimate Rare | UtR }} |
− | | gr | ghost rare = {{ #if: {{{full|}}} | Ghost Rare | GR }} | + | | gr | ghost rare = {{ #if: {{{full|}}} | Ghost Rare | GR }} |
− | | hgr | holographic rare = {{ #if: {{{full|}}} | Holographic Rare | HGR }} | + | | hgr | holographic rare = {{ #if: {{{full|}}} | Holographic Rare | HGR }} |
− | | scr | secret rare = {{ #if: {{{full|}}} | Secret Rare | ScR }} | + | | scr | secret rare = {{ #if: {{{full|}}} | Secret Rare | ScR }} |
− | | pscr | prismatic secret rare = {{ #if: {{{full|}}} | Prismatic Secret Rare | PScR }} | + | | pscr | prismatic secret rare = {{ #if: {{{full|}}} | Prismatic Secret Rare | PScR }} |
− | | uscr | ultra secret rare = {{ #if: {{{full|}}} | Ultra Secret Rare | UScR }} | + | | uscr | ultra secret rare = {{ #if: {{{full|}}} | Ultra Secret Rare | UScR }} |
− | | scur | secret ultra rare = {{ #if: {{{full|}}} | Secret Ultra Rare | ScUR }} | + | | scur | secret ultra rare = {{ #if: {{{full|}}} | Secret Ultra Rare | ScUR }} |
− | | pr | parallel rare = {{ #if: {{{full|}}} | Parallel Rare | PR }} | + | | pr | parallel rare = {{ #if: {{{full|}}} | Parallel Rare | PR }} |
− | | pc | parallel common = {{ #if: {{{full|}}} | Parallel Common | PC }} | + | | pc | parallel common = {{ #if: {{{full|}}} | Parallel Common | PC }} |
− | | npr | normal parallel rare = {{ #if: {{{full|}}} | Normal Parallel Rare | NPR }} | + | | npr | normal parallel rare = {{ #if: {{{full|}}} | Normal Parallel Rare | NPR }} |
− | | spr | super parallel rare = {{ #if: {{{full|}}} | Super Parallel Rare | SPR }} | + | | spr | super parallel rare = {{ #if: {{{full|}}} | Super Parallel Rare | SPR }} |
− | | upr | ultra parallel rare = {{ #if: {{{full|}}} | Ultra Parallel Rare | UPR }} | + | | upr | ultra parallel rare = {{ #if: {{{full|}}} | Ultra Parallel Rare | UPR }} |
− | | gur | gold ultra rare = {{ #if: {{{full|}}} | Gold Ultra Rare | GUR }} | + | | sfr | starfoil rare = {{ #if: {{{full|}}} | Starfoil Rare | SFR }} |
− | | dpc | duel terminal parallel common = {{ #if: {{{full|}}} | Duel Terminal Parallel Common | DPC }} | + | | gur | gold ultra rare = {{ #if: {{{full|}}} | Gold Ultra Rare | GUR }} |
− | | dnpr | duel terminal normal parallel rare = {{ #if: {{{full|}}} | Duel Terminal Normal Parallel Rare | DNPR }} | + | | dpc | duel terminal parallel common = {{ #if: {{{full|}}} | Duel Terminal Parallel Common | DPC }} |
− | | drpr | duel terminal rare parallel rare = {{ #if: {{{full|}}} | Duel Terminal Rare Parallel Rare | DRPR }} | + | | dnpr | duel terminal normal parallel rare = {{ #if: {{{full|}}} | Duel Terminal Normal Parallel Rare | DNPR }} |
− | | dspr | duel terminal super parallel rare = {{ #if: {{{full|}}} | Duel Terminal Super Parallel Rare | DSPR }} | + | | drpr | duel terminal rare parallel rare = {{ #if: {{{full|}}} | Duel Terminal Rare Parallel Rare | DRPR }} |
− | | dupr | duel terminal ultra parallel rare = {{ #if: {{{full|}}} | Duel Terminal Ultra Parallel Rare | DUPR }} | + | | dspr | duel terminal super parallel rare = {{ #if: {{{full|}}} | Duel Terminal Super Parallel Rare | DSPR }} |
+ | | dupr | duel terminal ultra parallel rare = {{ #if: {{{full|}}} | Duel Terminal Ultra Parallel Rare | DUPR }} | ||
| dscpr | duel terminal secret parallel rare = {{ #if: {{{full|}}} | Duel Terminal Secret Parallel Rare | DScPR }} | | dscpr | duel terminal secret parallel rare = {{ #if: {{{full|}}} | Duel Terminal Secret Parallel Rare | DScPR }} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 01:41, 10 May 2012
C
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}} |