Changes

Jump to: navigation, search

Template:Star

72 bytes added, 11 years ago
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
<span class="{{ #if: {{{xyz|}}} | rank }}stars" title="{{{1|?}}}">{{
#iferror: {{ #expr: {{{1}}} }}
| [[File:{{ #if: {{{xyz|}}} | Rank | CG }}_Star Star Unknown.svg|18px|?|alt=]]
| {{
#switch: {{{medium}}}
| #default = {{
#switch: {{{game}}}
| Bandai = {{Repeat|[[File:Bandai Star.svg|18px|{{{1}}}|alt=]]|{{{1}}}}} | Dungeon Dice Monsters = [[File:SummonCrestIconLevel{{{1}}}.svg|25px|{{{1}}}|alt=]] | Capsule Monster Chess = [[File:CapMonLevel{{{1}}}.svg|25px|{{{1}}}|alt=]]
| Early Duel Monsters = {{
#ifexpr: 0 < {{{1}}} | [[File:DM Star 1.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 1 < {{{1}}} | [[File:DM Star 2.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 2 < {{{1}}} | [[File:DM Star 3.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 3 < {{{1}}} | [[File:DM Star 4.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 4 < {{{1}}} | [[File:DM Star 5.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 5 < {{{1}}} | [[File:DM Star 6.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 6 < {{{1}}} | [[File:DM Star 7.svg|18px|{{{1}}}|alt=]]
}}{{
#ifexpr: 7 < {{{1}}} | [[File:DM Star 8.svg|18px|{{{1}}}|alt=]]
}}
| Labyrinth Game = {{Repeat|★|{{{1}}}}}
| #default = {{Repeat|[[File:{{ #if: {{{xyz|}}} | Rank | {{ #ifexpr: {{{1}}} > < 0 | Negative | CG }}{{ #ifexpr: }} Star.svg|18px|{{{1}}} < 0 | Negative }} }}_Star.svg|18px|alt=]]|{{{1}}}}}
}}
}}

Navigation menu