Difference between revisions of "Template:Rarity"

From Yugipedia
Jump to: navigation, search
(rm the need to include "Rare" when providing a rarity name (except for the obvious case of "Rare" itself); make Common/C the default case)
(no, bad dino! don't set #default or everything breaks forever >=( )
Line 1: Line 1:
 
{{ #switch: {{ #replace: {{ lc: {{{1}}} }} | {{ #ifeq: {{ lc: {{{1}}} }} | rare || rare }} }}
 
{{ #switch: {{ #replace: {{ lc: {{{1}}} }} | {{ #ifeq: {{ lc: {{{1}}} }} | rare || rare }} }}
   | c    | common     | #default        = {{ #if: {{{full|}}} | Common                            | C    }}
+
   | c    | common                       = {{ #if: {{{full|}}} | Common                            | C    }}
 
   | nr    | normal                        = {{ #if: {{{full|}}} | Normal Rare                        | NR    }}
 
   | nr    | normal                        = {{ #if: {{{full|}}} | Normal Rare                        | NR    }}
 
   | sp    | short print                  = {{ #if: {{{full|}}} | Short Print                        | SP    }}
 
   | sp    | short print                  = {{ #if: {{{full|}}} | Short Print                        | SP    }}

Revision as of 21:38, 30 June 2014