Difference between revisions of "Template:Star"
Dinoguy1000 (talk | contribs) ((e/c) we don't need pluses! #expr is really pretty smart! (also, we should pass in whether the card is an Xyz instead, and use that instead of {{{rank}}}/{{{level}}} to decide what to display)) |
(don't need these pipes) |
||
Line 9: | Line 9: | ||
| <span class="stars">{{ #iferror: {{ #expr: {{{level}}} }} | | <span class="stars">{{ #iferror: {{ #expr: {{{level}}} }} | ||
| [[File:QuestionStar.svg|alt=]] | | [[File:QuestionStar.svg|alt=]] | ||
− | | {{ #switch: {{{game | + | | {{ #switch: {{{game}}} |
− | | Bandai = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level | + | | Bandai = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level}}} }} |
− | | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level | + | | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level}}}.png|25px|alt=]] |
− | | Capsule Monster Chess = [[File:CapMonLV{{{level | + | | Capsule Monster Chess = [[File:CapMonLV{{{level}}}.png|25px|alt=]] |
− | | Early Duel Monsters = {{Repeat|<span>★</span>|{{{level | + | | Early Duel Monsters = {{Repeat|<span>★</span>|{{{level}}} }} |
− | | {{ #switch: {{{medium | + | | {{ #switch: {{{medium}}} |
| Manga | | Manga | ||
− | | First series anime = {{Repeat|★|{{{level | + | | First series anime = {{Repeat|★|{{{level}}} }} |
− | | #default = {{Repeat|[[File:{{ #ifexpr: {{{level | + | | #default = {{Repeat|[[File:{{ #ifexpr: {{{level}}} < 0 | Neg }}Star.svg|alt=]]|{{{level}}}}} |
}} | }} | ||
}} | }} |