Welcome to our new Skyland! Article rewrites are welcome. If you see any missing images, please feel free to add them. Please use the Aboutfile template when uploading and add categories.
We are also aware of some articles being unavailable. Please bear with us while we are working to get them fixed.

Template:Cardbox: Difference between revisions

From Skylanders Wiki
Fixed previous error, plus fixed "raritydesc" vs "cardrarity" clash
Tag: sourceedit
Raised max limit to 6, added character option.
Tag: sourceedit
Line 2: Line 2:
{{!}}-
{{!}}-
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}} style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{cardname|cardname}}} - {{{cardtype|cardtype}}}'''
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{cardname|cardname}}} - {{{cardtype|cardtype}}}'''
{{!}}{{#ifeq: {{{cardcount|}}} | 1 | |
{{#ifexpr: {{{cardcount|6}}}+0 > 1 |
style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}} style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card2name|card2name}}} - {{{card2type|card2type}}}''' }}
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card2name|card2name}}} - {{{card2type|card2type}}}''' |}}
{{!}}{{#ifeq: {{{cardcount|}}} | 3 |
{{#ifexpr: {{{cardcount|6}}}+0 > 2 |
style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}} style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card3name|card3name}}} - {{{card3type|card3type}}}''' | }}
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card3name|card3name}}} - {{{card3type|card3type}}}'''
{{!}}-
{{!}}- | {{!}}-}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{cardelement|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{{cardname|cardname}}}card.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{cardelement|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}cardpower|{{{cardname|cardname}}}card}}.png|center|206px]]
'''{{{cardrarity|cardrarity}}}'''<br>
'''{{{cardrarity|cardrarity}}}'''<br>
{{{carddesc|carddesc}}}
{{{carddesc|carddesc}}}
{{!}}{{#ifeq: {{{cardcount|}}} | 1 | |
{{#ifexpr: {{{cardcount|6}}}+0 > 1 |
style="width:155px; background: #ebf2f5;"{{!}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{card2element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{{card2name|card2name}}}card.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{card2element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card2power|{{{card2name|card2name}}}card}}.png|center|206px]]
'''{{{card2rarity|card2rarity}}}'''<br>
'''{{{card2rarity|card2rarity}}}'''<br>
{{{card2desc|card2desc}}} }}
{{{card2desc|card2desc}}} |}}
{{!}}{{#ifeq: {{{cardcount|}}} | 3 |
{{#ifexpr: {{{cardcount|6}}}+0 > 2 |
style="width:155px; background: #ebf2f5;"{{!}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{card3element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{{card3name|card3name}}}card.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{card3element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card3power|{{{card3name|card3name}}}card}}.png|center|206px]]
'''{{{card3rarity|card3rarity}}}'''<br>
'''{{{card3rarity|card3rarity}}}'''<br>
{{{card3desc|card3desc}}} }}
{{{card3desc|card3desc}}}
{{!}}}
{{!}}} | {{!}}} }}
 
{{#ifexpr: {{{cardcount|6}}}+0 > 3 | <br>
{{{!}} style="background: #cedff2;" cellspacing="0" cellpadding="0"{{!}}
{{!}}-
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card4name|card4name}}} - {{{card4type|card4type}}}'''
{{#ifexpr: {{{cardcount|6}}}+0 > 4 |
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card5name|card5name}}} - {{{card5type|card5type}}}''' |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 5 |
{{!}}style="background: #ebf2f5; width:155px;"{{!}}
{{!}}style="width:148px; background: #d04c8e; border-left: 1px solid #B32B61; border-top: 1px solid #B32B61; border-right: 1px solid #B32B61; text-align:center;"{{!}}'''{{{card6name|card6name}}} - {{{card6type|card6type}}}'''
{{!}}- | {{!}}-}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{card4element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card4power|{{{card4name|card4name}}}card}}.png|center|206px]]
'''{{{card4rarity|card4rarity}}}'''<br>
{{{card4desc|card4desc}}}
{{#ifexpr: {{{cardcount|6}}}+0 > 4 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{card5element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card5power|{{{card5name|card5name}}}card}}.png|center|206px]]
'''{{{card5rarity|card5rarity}}}'''<br>
{{{card5desc|card5desc}}} |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 5 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{card6element|}}} | air=DFF; | dark=e4e4ea; | earth=FEC; | fire=FDD; | life=EFC; | light=feffb7; | magic=EDF; | tech=FFC; | undead=EEF; | water=CEF; | B0E0E6;}}; text-align:center; border: 1px solid #a3b0bf;" valign="top"{{!}}[[File:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card6power|{{{card6name|card6name}}}card}}.png|center|206px]]
'''{{{card6rarity|card6rarity}}}'''<br>
{{{card6desc|card6desc}}}
{{!}}} | {{!}}} }} |}}


<noinclude>This template is used to display information about a set of 1-3 non-character [[Skylanders: Battlecast|Battlecast]] Cards. For more than 3, simply use multiple templates.
<noinclude>This template is used to display information about a set of up to 6 [[Skylanders: Battlecast|Battlecast]] Cards, including character cards.


<pre>{{cardbox
<pre>{{cardbox
|cardcount=number of cards (defaults to 2)
|cardcount=number of cards (defaults to 1)


|cardname=name of card (also determines image file name)
|cardname=name of card (also determines image file name)
|cardtype=type of card (relic/spell/gear)
|cardtype=type of card (relic/spell/gear/special ability)
|cardrarity=the rarity status that the card comes in
|cardrarity=the rarity status that the card comes in
|carddesc=description of card
|carddesc=description of card
Line 38: Line 66:


|card2name=name of card (also determines image file name)
|card2name=name of card (also determines image file name)
|card2type=type of card (relic/spell/gear)
|card2type=type of card (relic/spell/gear/special ability)
|card2rarity=the rarity status that the card comes in
|card2rarity=the rarity status that the card comes in
|card2desc=description of card
|card2desc=description of card
Line 44: Line 72:


|card3name=name of card (also determines image file name)
|card3name=name of card (also determines image file name)
|card3type=type of card (relic/spell/gear)
|card3type=type of card (relic/spell/gear/special ability)
|card3rarity=the rarity status that the card comes in
|card3rarity=the rarity status that the card comes in
|card3desc=description of card
|card3desc=description of card
|card3element=elemental alignment of card (fire, air, life, etc)
|card3element=elemental alignment of card (fire, air, life, etc)
|card4name=name of card (also determines image file name)
|card4type=type of card (relic/spell/gear/special ability)
|card4rarity=the rarity status that the card comes in
|card4desc=description of card
|card4element=elemental alignment of card (fire, air, life, etc)
|card5name=name of card (also determines image file name)
|card5type=type of card (relic/spell/gear/special ability)
|card5rarity=the rarity status that the card comes in
|card5desc=description of card
|card5element=elemental alignment of card (fire, air, life, etc)
|card6name=name of card (also determines image file name)
|card6type=type of card (relic/spell/gear/special ability)
|card6rarity=the rarity status that the card comes in
|card6desc=description of card
|card6element=elemental alignment of card (fire, air, life, etc)
(Character cards only)
|characteroverride=Name of character (overrides image file name)
}}</pre></noinclude>
}}</pre></noinclude>

Revision as of 16:08, August 1, 2016

cardname - cardtype card2name - card2type card3name - card3type
File:Cardnamecard.png

cardrarity
carddesc

File:Card2namecard.png

card2rarity
card2desc

File:Card3namecard.png

card3rarity
card3desc


card4name - card4type card5name - card5type card6name - card6type
File:Card4namecard.png

card4rarity
card4desc

File:Card5namecard.png

card5rarity
card5desc

File:Card6namecard.png

card6rarity
card6desc

This template is used to display information about a set of up to 6 Battlecast Cards, including character cards.

{{cardbox
|cardcount=number of cards (defaults to 1)

|cardname=name of card (also determines image file name)
|cardtype=type of card (relic/spell/gear/special ability)
|cardrarity=the rarity status that the card comes in
|carddesc=description of card
|cardelement=elemental alignment of card (fire, air, life, etc)

|card2name=name of card (also determines image file name)
|card2type=type of card (relic/spell/gear/special ability)
|card2rarity=the rarity status that the card comes in
|card2desc=description of card
|card2element=elemental alignment of card (fire, air, life, etc)

|card3name=name of card (also determines image file name)
|card3type=type of card (relic/spell/gear/special ability)
|card3rarity=the rarity status that the card comes in
|card3desc=description of card
|card3element=elemental alignment of card (fire, air, life, etc)

|card4name=name of card (also determines image file name)
|card4type=type of card (relic/spell/gear/special ability)
|card4rarity=the rarity status that the card comes in
|card4desc=description of card
|card4element=elemental alignment of card (fire, air, life, etc)

|card5name=name of card (also determines image file name)
|card5type=type of card (relic/spell/gear/special ability)
|card5rarity=the rarity status that the card comes in
|card5desc=description of card
|card5element=elemental alignment of card (fire, air, life, etc)

|card6name=name of card (also determines image file name)
|card6type=type of card (relic/spell/gear/special ability)
|card6rarity=the rarity status that the card comes in
|card6desc=description of card
|card6element=elemental alignment of card (fire, air, life, etc)

 (Character cards only)
|characteroverride=Name of character (overrides image file name)
}}