Difference between revisions of "Template:Star"

From Yugipedia
Jump to: navigation, search
(Complete redux)
(Alter so this only needs to be called once from {{Card table}}. Ranks will be done separately.)
Line 1: Line 1:
{{ #switch: {{{1|}}}
+
{{#iferror: +{{{level}}}
|Normal                = {{Repeat|[[File:{{ #ifexpr: {{{level}}} < 0 | Neg }}Star.svg|alt=]]|{{{level}}}}}
+
| [[File:QuestionStar.svg|alt=]]
|Rank                  = {{Repeat|[[File:RankStar.svg|alt=]]|{{{2|}}} }}
+
| {{ #switch: {{{game|}}}
|Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{2|}}} }}
+
  | Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level|}}} }}
|Plain                = {{Repeat|<span>★</span>|{{{2|}}} }}
+
  | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level|}}}.png|25px|alt=]]
|Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{2|}}}.png|25px|alt=]]
+
  | Capsule Monster Chess = [[File:CapMonLV{{{level|}}}.png|25px|alt=]]
|Capsule Monster Chess = [[File:CapMonLV{{{2|}}}.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|}}}}}
 +
    }}
 +
  }}
 
}}<noinclude>
 
}}<noinclude>
  
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 14:14, 23 August 2012

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