Template:Infobox Card: Difference between revisions

Jump to navigation Jump to search
Add automatic image name generation for relics
m (keep the correct aspect ratio of the skill cards)
(Add automatic image name generation for relics)
Line 18: Line 18:
   #vardefine: imagename | {{#if: {{{image|}}} | {{{image}}} |
   #vardefine: imagename | {{#if: {{{image|}}} | {{{image}}} |
     {{#switch: {{#var: cardtype}}
     {{#switch: {{#var: cardtype}}
       |Item         = Act_{{#var: act}}_Item - {{#var: cardname}}.png
       |Item           = Act_{{#var: act}}_Item - {{#var: cardname}}.png
       |Skill         = {{#var: heroclass}} - {{#var: cardname}}.png
       |Skill         = {{#var: heroclass}} - {{#var: cardname}}.png
       |Overlord Card = Overlord Card - {{#var: cardname}}.png
       |Overlord Card = Overlord Card - {{#var: cardname}}.png
       |#default     = {{#var: cardname}}.png
      |Hero Relic    = Hero Relic - {{#var: cardname}}.png
      |Overlord Relic = Overlord Relic - {{#var: cardname}}.png
       |#default       = {{#var: cardname}}.png
     }}
     }}
   }}
   }}

Navigation menu