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
Forgot to change "characteroverride" (WIP name) to "cardcharacter" in the code box.
Tag: sourceedit
Removed some pointless features/variables (such as the previously added character option). Increased limit to 9.
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}}}'''
{{#ifexpr: {{{cardcount|6}}}+0 > 1 |
{{#ifexpr: {{{cardcount|}}}+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}}}''' |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 2 |
{{#ifexpr: {{{cardcount|}}}+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}}}'''
{{!}}- | {{!}}-}}
{{!}}- | {{!}}-}}
{{!}}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:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}cardpower|{{{cardname|cardname}}}card}}.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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]]
'''{{{cardrarity|cardrarity}}}'''<br>
'''{{{cardrarity|cardrarity}}}'''<br>
{{{carddesc|carddesc}}}
{{{carddesc|carddesc}}}
{{#ifexpr: {{{cardcount|6}}}+0 > 1 |
{{#ifexpr: {{{cardcount|}}}+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:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card2power|{{{card2name|card2name}}}card}}.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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]]
'''{{{card2rarity|card2rarity}}}'''<br>
'''{{{card2rarity|card2rarity}}}'''<br>
{{{card2desc|card2desc}}} |}}
{{{card2desc|card2desc}}} |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 2 |
{{#ifexpr: {{{cardcount|}}}+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:{{#if: {{{cardcharacter|}}}|{{{cardcharacter|}}}card3power|{{{card3name|card3name}}}card}}.png|center|206px]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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]]
'''{{{card3rarity|card3rarity}}}'''<br>
'''{{{card3rarity|card3rarity}}}'''<br>
{{{card3desc|card3desc}}}
{{{card3desc|card3desc}}}
{{!}}} | {{!}}} }}
{{!}}} | {{!}}} }}


{{#ifexpr: {{{cardcount|6}}}+0 > 3 | <br>
{{#ifexpr: {{{cardcount|}}}+0 > 3 | <br>
{{{!}} style="background: #cedff2;" cellspacing="0" cellpadding="0"{{!}}
{{{!}} style="background: #cedff2;" cellspacing="0" cellpadding="0"{{!}}
{{!}}-
{{!}}-
{{!}}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;"{{!}}'''{{{card4name|card4name}}} - {{{card4type|card4type}}}'''
{{!}}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}}}'''
{{#ifexpr: {{{cardcount|6}}}+0 > 4 |
{{#ifexpr: {{{cardcount|}}}+0 > 4 |
{{!}}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;"{{!}}'''{{{card5name|card5name}}} - {{{card5type|card5type}}}''' |}}
{{!}}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}}}''' |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 5 |
{{#ifexpr: {{{cardcount|}}}+0 > 5 |
{{!}}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;"{{!}}'''{{{card6name|card6name}}} - {{{card6type|card6type}}}'''
{{!}}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}}}'''
{{!}}- | {{!}}-}}
{{!}}- | {{!}}-}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}}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]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card4name|card4name}}}card.png|center|206px]]
'''{{{card4rarity|card4rarity}}}'''<br>
'''{{{card4rarity|card4rarity}}}'''<br>
{{{card4desc|card4desc}}}
{{{card4desc|card4desc}}}
{{#ifexpr: {{{cardcount|6}}}+0 > 4 |
{{#ifexpr: {{{cardcount|}}}+0 > 4 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}}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]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card5name|card5name}}}card.png|center|206px]]
'''{{{card5rarity|card5rarity}}}'''<br>
'''{{{card5rarity|card5rarity}}}'''<br>
{{{card5desc|card5desc}}} |}}
{{{card5desc|card5desc}}} |}}
{{#ifexpr: {{{cardcount|6}}}+0 > 5 |
{{#ifexpr: {{{cardcount|}}}+0 > 5 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}}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]]
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card6name|card6name}}}card.png|center|206px]]
'''{{{card6rarity|card6rarity}}}'''<br>
'''{{{card6rarity|card6rarity}}}'''<br>
{{{card6desc|card6desc}}}
{{{card6desc|card6desc}}}
{{!}}} | {{!}}} }} |}}
{{!}}} | {{!}}} }} |}}


<noinclude>This template is used to display information about a set of up to 6 [[Skylanders: Battlecast|Battlecast]] Cards, including character cards.
{{#ifexpr: {{{cardcount|}}}+0 > 6 | <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;"{{!}}'''{{{card7name|card7name}}}'''
{{#ifexpr: {{{cardcount|}}}+0 > 7 |
{{!}}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;"{{!}}'''{{{card8name|card8name}}}''' |}}
{{#ifexpr: {{{cardcount|}}}+0 > 8 |
{{!}}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;"{{!}}'''{{{card9name|card9name}}}'''
{{!}}- | {{!}}-}}
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card7name|card7name}}}card.png|center|206px]]
'''{{{card7rarity|card7rarity}}}'''<br>
{{{card7desc|card7desc}}}
{{#ifexpr: {{{cardcount|}}}+0 > 7 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card8name|card8name}}}card.png|center|206px]]
'''{{{card8rarity|card8rarity}}}'''<br>
{{{card8desc|card8desc}}} |}}
{{#ifexpr: {{{cardcount|}}}+0 > 8 |
{{!}}style="width:155px; background: #ebf2f5;"{{!}}
{{!}} style="width:148px; background: #{{ #switch: {{{element|}}} | 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:{{{card9name|card9name}}}card.png|center|206px]]
'''{{{card9rarity|card9rarity}}}'''<br>
{{{card9desc|card9desc}}}
{{!}}} | {{!}}} }} |}}
 
<noinclude>This template is used to display information about a set of up to 9 [[Skylanders: Battlecast|Battlecast]] Cards. For more, use multiple templates.


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


|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/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
|cardelement=elemental alignment of card (fire, air, life, etc)


|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/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
|card2element=elemental alignment of card (fire, air, life, etc)


|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/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)


|card4name=name of card (also determines image file name)
|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
|card4rarity=the rarity status that the card comes in
|card4desc=description of card
|card4desc=description of card
|card4element=elemental alignment of card (fire, air, life, etc)


|card5name=name of card (also determines image file name)
|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
|card5rarity=the rarity status that the card comes in
|card5desc=description of card
|card5desc=description of card
|card5element=elemental alignment of card (fire, air, life, etc)


|card6name=name of card (also determines image file name)
|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
|card6rarity=the rarity status that the card comes in
|card6desc=description of card
|card6desc=description of card
|card6element=elemental alignment of card (fire, air, life, etc)


(Character cards only)
|card7name=name of card (also determines image file name)
|cardcharacter=Name of character (overrides image file name)
|card7rarity=the rarity status that the card comes in
|card7desc=description of card
 
|card8name=name of card (also determines image file name)
|card8rarity=the rarity status that the card comes in
|card8desc=description of card
 
|card9name=name of card (also determines image file name)
|card9rarity=the rarity status that the card comes in
|card9desc=description of card
}}</pre></noinclude>
}}</pre></noinclude>

Revision as of 23:17, August 3, 2016

cardname
File:Cardnamecard.png

cardrarity
carddesc



This template is used to display information about a set of up to 9 Battlecast Cards. For more, use multiple templates.

{{cardbox
|cardcount=number of cards
|cardelement=element of cards

|cardname=name of card (also determines image file name)
|cardrarity=the rarity status that the card comes in
|carddesc=description of card

|card2name=name of card (also determines image file name)
|card2rarity=the rarity status that the card comes in
|card2desc=description of card

|card3name=name of card (also determines image file name)
|card3rarity=the rarity status that the card comes in
|card3desc=description of card

|card4name=name of card (also determines image file name)
|card4rarity=the rarity status that the card comes in
|card4desc=description of card

|card5name=name of card (also determines image file name)
|card5rarity=the rarity status that the card comes in
|card5desc=description of card

|card6name=name of card (also determines image file name)
|card6rarity=the rarity status that the card comes in
|card6desc=description of card

|card7name=name of card (also determines image file name)
|card7rarity=the rarity status that the card comes in
|card7desc=description of card

|card8name=name of card (also determines image file name)
|card8rarity=the rarity status that the card comes in
|card8desc=description of card

|card9name=name of card (also determines image file name)
|card9rarity=the rarity status that the card comes in
|card9desc=description of card
}}