Difference between revisions of "Template:Star"

From Yugipedia
Jump to: navigation, search
(Alter so this only needs to be called once from {{Card table}}. Ranks will be done separately.)
(Ah, we'll throw in Ranks as well.)
Line 1: Line 1:
{{#iferror: +{{{level}}}
+
{{ #if:{{{rank|}}}
| [[File:QuestionStar.svg|alt=]]
+
| {{ #iferror: +{{{rank}}}
| {{ #switch: {{{game|}}}
+
  | [[File:QuestionRankStar.svg|alt=]]
  | Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level|}}} }}
+
  | {{Repeat|[[File:RankStar.svg|alt=]]|{{{rank|}}}}}
  | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level|}}}.png|25px|alt=]]
+
  }}
  | Capsule Monster Chess = [[File:CapMonLV{{{level|}}}.png|25px|alt=]]
+
| {{ #iferror: +{{{level}}}
  | Early Duel Monsters  = {{Repeat|<span>★</span>|{{{level|}}} }}
+
  | [[File:QuestionStar.svg|alt=]]
  | {{ #switch: {{{medium|}}}
+
  | {{ #switch: {{{game|}}}
    | Manga
+
    | Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level|}}} }}
    | First series anime  = {{Repeat|★|{{{level|}}} }}
+
    | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level|}}}.png|25px|alt=]]
    | #default            = {{Repeat|[[File:{{ #ifexpr: {{{level|}}} < 0 | Neg }}Star.svg|alt=]]|{{{level|}}}}}
+
    | Capsule Monster Chess = [[File:CapMonLV{{{level|}}}.png|25px|alt=]]
 +
    | Early Duel Monsters  = {{Repeat|<span>★</span>|{{{level|}}} }}
 +
    | {{ #switch: {{{medium|}}}
 +
      | Manga
 +
      | First series anime  = {{Repeat|★|{{{level|}}} }}
 +
      | #default            = {{Repeat|[[File:{{ #ifexpr: {{{level|}}} < 0 | Neg }}Star.svg|alt=]]|{{{level|}}}}}
 +
      }}
 
     }}
 
     }}
 
   }}
 
   }}

Revision as of 14:22, 23 August 2012

String Module Error: function rep expects a number as second parameter, received ""