Difference between revisions of "Template:Rarity"
Dinoguy1000 (talk | contribs) (right, these need swapped) |
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)) |
||
Line 17: | Line 17: | ||
| 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 }} | ||
| 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 }} | | gur | gold ultra rare = {{ #if: {{{full|}}} | Gold Ultra Rare | GUR }} | ||
+ | | dpc | duel terminal parallel common = {{ #if: {{{full|}}} | Duel Terminal Parallel Common | DPC }} | ||
| dnpr | duel terminal normal parallel rare = {{ #if: {{{full|}}} | Duel Terminal Normal Parallel Rare | DNPR }} | | dnpr | duel terminal normal parallel rare = {{ #if: {{{full|}}} | Duel Terminal Normal Parallel Rare | DNPR }} | ||
| drpr | duel terminal rare parallel rare = {{ #if: {{{full|}}} | Duel Terminal Rare Parallel Rare | DRPR }} | | drpr | duel terminal rare parallel rare = {{ #if: {{{full|}}} | Duel Terminal Rare Parallel Rare | DRPR }} |
Revision as of 04:58, 6 October 2010
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}} |