Difference between revisions of "Template:Star"

From Yugipedia
Jump to: navigation, search
(Using ☆, rather than ★ for manga Rank Stars.)
((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: +{{{rank}}} }}
+
| <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: +{{{level}}} }}
+
| <span class="stars">{{ #iferror: {{ #expr: {{{level}}} }}
 
   | [[File:QuestionStar.svg|alt=]]
 
   | [[File:QuestionStar.svg|alt=]]
 
   | {{ #switch: {{{game|}}}
 
   | {{ #switch: {{{game|}}}

Revision as of 15:49, 23 August 2012