Template:Infobox Card: Difference between revisions

Jump to navigation Jump to search
Add support for servant cards
(Remove deprecated |dice argument. Add All pages which fail a validation to the category PagesWhichFailValidation)
(Add support for servant cards)
Line 19: Line 19:
     {{#switch: {{#var: cardtype}}
     {{#switch: {{#var: cardtype}}
       |Familiar      = Familiar - {{#var: cardname}}.png
       |Familiar      = Familiar - {{#var: cardname}}.png
      |Servant        = Servant - {{#var: cardname}}.png
       |Item          = {{#if: {{#var: heroclass}} | {{#var: heroclass}} - {{#var: cardname}}.png | Act_{{#var: act}}_Item - {{#var: cardname}}.png}}
       |Item          = {{#if: {{#var: heroclass}} | {{#var: heroclass}} - {{#var: cardname}}.png | Act_{{#var: act}}_Item - {{#var: cardname}}.png}}
       |Skill          = {{#var: heroclass}} - {{#var: cardname}}.png
       |Skill          = {{#var: heroclass}} - {{#var: cardname}}.png
Line 257: Line 258:
         |Familiar =
         |Familiar =
           {{!}} colspan=2 align=center style="border:0px transparent"{{!}}[[{{{character|}}}]] familiar
           {{!}} colspan=2 align=center style="border:0px transparent"{{!}}[[{{{character|}}}]] familiar
        |#default =
      }}
    |}}
    {{#if:{{{overlordclass|}}}|
      {{#switch:{{#var: cardtype}}
        |Servant =
          {{!}} colspan=2 align=center style="border:0px transparent"{{!}}[[{{{overlordclass|}}}]] servant
         |#default =
         |#default =
       }}
       }}

Navigation menu