Difference between revisions of "Template:Star"

From Yugipedia
Jump to: navigation, search
(don't need these pipes)
(whee simplification!)
Line 1: Line 1:
{{ #if:{{{rank|}}}
+
<span class="{{ #if: {{{xyz|}}} | rank }}stars">{{
| <span class="rankstars">{{ #iferror: {{ #expr: {{{rank}}} }}
+
  #iferror: {{ #expr: {{{1}}} }}
   | [[File:QuestionRankStar.svg|alt=]]
+
   | [[File:Question{{ #if: {{{xyz|}}} | Rank }}Star.svg|alt=]]
   | {{ #switch: {{{medium}}}
+
   | {{
     | Manga   = {{Repeat|☆|{{{rank}}} }}
+
    #switch: {{{medium}}}
     | #default = {{Repeat|[[File:RankStar.svg|alt=]]|{{{rank}}}}}
+
     | Manga
 +
    | First series anime = {{Repeat|{{ #if: {{{xyz|}}} | ☆ | ★ }}|{{{1}}}}}
 +
     | #default           = {{
 +
      #switch: {{{game}}}
 +
      | Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{1}}}}}
 +
      | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{1}}}.png|25px|alt=]]
 +
      | Capsule Monster Chess = [[File:CapMonLV{{{1}}}.png|25px|alt=]]
 +
      | Early Duel Monsters  = {{Repeat|<span>★</span>|{{{1}}} }}
 +
      | #default              = {{Repeat|[[File:{{ #ifexpr: {{{1}}} < 0 | Neg }}{{ #if: {{{xyz|}}} | Rank }}Star.svg|alt=]]|{{{1}}}}}
 
     }}
 
     }}
   }}</span>
+
   }}
| <span class="stars">{{ #iferror: {{ #expr: {{{level}}} }}
+
}}</span><noinclude>
  | [[File:QuestionStar.svg|alt=]]
 
  | {{ #switch: {{{game}}}
 
    | Bandai                = {{Repeat|[[File:BandaiStar.svg|alt=]]|{{{level}}} }}
 
    | Dungeon Dice Monsters = [[File:SummonCrestIconLV{{{level}}}.png|25px|alt=]]
 
    | Capsule Monster Chess = [[File:CapMonLV{{{level}}}.png|25px|alt=]]
 
    | Early Duel Monsters  = {{Repeat|<span>★</span>|{{{level}}} }}
 
    | {{ #switch: {{{medium}}}
 
      | Manga
 
      | First series anime  = {{Repeat|★|{{{level}}} }}
 
      | #default            = {{Repeat|[[File:{{ #ifexpr: {{{level}}} < 0 | Neg }}Star.svg|alt=]]|{{{level}}}}}
 
      }}
 
    }}
 
  }}</span>
 
}}<noinclude>
 
  
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 22:46, 23 August 2012