Difference between revisions of "Template:Star"
m (proper fix) |
Dinoguy1000 (talk | contribs) (one less #ifexpr (there are no Level 0 monsters, so we don't really have to worry about that case); add mouseover text directly on the images as well) |
||
Line 1: | Line 1: | ||
<span class="{{ #if: {{{xyz|}}} | rank }}stars" title="{{{1|?}}}">{{ | <span class="{{ #if: {{{xyz|}}} | rank }}stars" title="{{{1|?}}}">{{ | ||
#iferror: {{ #expr: {{{1}}} }} | #iferror: {{ #expr: {{{1}}} }} | ||
− | | [[File:{{ #if: {{{xyz|}}} | Rank | CG }} | + | | [[File:{{ #if: {{{xyz|}}} | Rank | CG }} Star Unknown.svg|18px|?|alt=]] |
| {{ | | {{ | ||
#switch: {{{medium}}} | #switch: {{{medium}}} | ||
Line 8: | Line 8: | ||
| #default = {{ | | #default = {{ | ||
#switch: {{{game}}} | #switch: {{{game}}} | ||
− | | Bandai = {{Repeat|[[File:Bandai Star.svg|18px|alt=]]|{{{1}}}}} | + | | Bandai = {{Repeat|[[File:Bandai Star.svg|18px|{{{1}}}|alt=]]|{{{1}}}}} |
− | | Dungeon Dice Monsters = [[File:SummonCrestIconLevel{{{1}}}.svg|25px|alt=]] | + | | Dungeon Dice Monsters = [[File:SummonCrestIconLevel{{{1}}}.svg|25px|{{{1}}}|alt=]] |
− | | Capsule Monster Chess = [[File:CapMonLevel{{{1}}}.svg|25px|alt=]] | + | | Capsule Monster Chess = [[File:CapMonLevel{{{1}}}.svg|25px|{{{1}}}|alt=]] |
| Early Duel Monsters = {{ | | Early Duel Monsters = {{ | ||
− | #ifexpr: 0 < {{{1}}} | [[File:DM Star 1.svg|18px|alt=]] | + | #ifexpr: 0 < {{{1}}} | [[File:DM Star 1.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 1 < {{{1}}} | [[File:DM Star 2.svg|18px|alt=]] | + | #ifexpr: 1 < {{{1}}} | [[File:DM Star 2.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 2 < {{{1}}} | [[File:DM Star 3.svg|18px|alt=]] | + | #ifexpr: 2 < {{{1}}} | [[File:DM Star 3.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 3 < {{{1}}} | [[File:DM Star 4.svg|18px|alt=]] | + | #ifexpr: 3 < {{{1}}} | [[File:DM Star 4.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 4 < {{{1}}} | [[File:DM Star 5.svg|18px|alt=]] | + | #ifexpr: 4 < {{{1}}} | [[File:DM Star 5.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 5 < {{{1}}} | [[File:DM Star 6.svg|18px|alt=]] | + | #ifexpr: 5 < {{{1}}} | [[File:DM Star 6.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 6 < {{{1}}} | [[File:DM Star 7.svg|18px|alt=]] | + | #ifexpr: 6 < {{{1}}} | [[File:DM Star 7.svg|18px|{{{1}}}|alt=]] |
}}{{ | }}{{ | ||
− | #ifexpr: 7 < {{{1}}} | [[File:DM Star 8.svg|18px|alt=]] | + | #ifexpr: 7 < {{{1}}} | [[File:DM Star 8.svg|18px|{{{1}}}|alt=]] |
}} | }} | ||
| Labyrinth Game = {{Repeat|★|{{{1}}}}} | | Labyrinth Game = {{Repeat|★|{{{1}}}}} | ||
− | | #default = {{Repeat|[[File:{{ #if: {{{xyz|}}} | Rank | {{ #ifexpr: {{{1}}} | + | | #default = {{Repeat|[[File:{{ #if: {{{xyz|}}} | Rank | {{ #ifexpr: {{{1}}} < 0 | Negative | CG }} }} Star.svg|18px|{{{1}}}|alt=]]|{{{1}}}}} |
}} | }} | ||
}} | }} |