Template:Infobox Card: Difference between revisions

Jump to navigation Jump to search
Add support for a third trait
(Add support for default background item for starter class items.)
(Add support for a third trait)
Line 193: Line 193:
   |}}
   |}}
   {{!}}-
   {{!}}-
   {{#if:{{{trait|}}}{{{trait2|}}}|
   {{#if:{{{trait|}}}{{{trait2|}}}{{{trait3|}}}|
     {{#if:{{ValidateTrait|{{{trait|}}}}}{{ValidateTrait|{{{trait2|}}}}}|
     {{#if:{{ValidateTrait|{{{trait|}}}}}{{ValidateTrait|{{{trait2|}}}}}{{ValidateTrait|{{{trait3|}}}}}|
       {{#if:{{ValidateTrait|{{{trait2|}}}}}|
       {{#if:{{ValidateTrait|{{{trait3|}}}}}|
         {{!}} align=center width=50% style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}Traits:
         {{!}} align=center width=50% style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}Traits:
         {{!}} align=center style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}[[:Category:{{ValidateTrait|{{{trait|}}}}}|{{ValidateTrait|{{{trait|}}}}}]], [[:Category:{{ValidateTrait|{{{trait2|}}}}}|{{ValidateTrait|{{{trait2|}}}}}]]
         {{!}} align=center style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}[[:Category:{{ValidateTrait|{{{trait|}}}}}|{{ValidateTrait|{{{trait|}}}}}]], [[:Category:{{ValidateTrait|{{{trait2|}}}}}|{{ValidateTrait|{{{trait2|}}}}}]], [[:Category:{{ValidateTrait|{{{trait3|}}}}}|{{ValidateTrait|{{{trait3|}}}}}]]
         |
         |
         {{!}} align=center width=50% style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}Trait:
         {{#if:{{ValidateTrait|{{{trait2|}}}}}|
        {{!}} align=center style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}[[:Category:{{ValidateTrait|{{{trait|}}}}}|{{ValidateTrait|{{{trait|}}}}}]]
          {{!}} align=center width=50% style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}Traits:
          {{!}} align=center style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}[[:Category:{{ValidateTrait|{{{trait|}}}}}|{{ValidateTrait|{{{trait|}}}}}]], [[:Category:{{ValidateTrait|{{{trait2|}}}}}|{{ValidateTrait|{{{trait2|}}}}}]]
          |
          {{!}} align=center width=50% style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}Trait:
          {{!}} align=center style="border:0px transparent; padding-top: 0px; padding-bottom: 0px" {{!}}[[:Category:{{ValidateTrait|{{{trait|}}}}}|{{ValidateTrait|{{{trait|}}}}}]]
        }}
       }}
       }}
     |
     |

Navigation menu