Difference between revisions of "Template:Star"
(Using ☆, rather than ★ for manga Rank Stars.) |
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)) |
||
Line 1: | Line 1: | ||
{{ #if:{{{rank|}}} | {{ #if:{{{rank|}}} | ||
− | | <span class="rankstars">{{ #iferror: {{ #expr: | + | | <span class="rankstars">{{ #iferror: {{ #expr: {{{rank}}} }} |
| [[File:QuestionRankStar.svg|alt=]] | | [[File:QuestionRankStar.svg|alt=]] | ||
| {{ #switch: {{{medium}}} | | {{ #switch: {{{medium}}} | ||
− | | Manga = {{Repeat|☆|{{{rank | + | | Manga = {{Repeat|☆|{{{rank}}} }} |
− | | #default = {{Repeat|[[File:RankStar.svg|alt=]]|{{{rank | + | | #default = {{Repeat|[[File:RankStar.svg|alt=]]|{{{rank}}}}} |
}} | }} | ||
}}</span> | }}</span> | ||
− | | <span class="stars">{{ #iferror: {{ #expr: | + | | <span class="stars">{{ #iferror: {{ #expr: {{{level}}} }} |
| [[File:QuestionStar.svg|alt=]] | | [[File:QuestionStar.svg|alt=]] | ||
| {{ #switch: {{{game|}}} | | {{ #switch: {{{game|}}} |