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 | {{!}}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| | {{#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 | {{!}}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| | {{#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 | {{!}}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: {{{ | {{!}} 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| | {{#ifexpr: {{{cardcount|}}}+0 > 1 | | ||
{{!}}style="width:155px; background: #ebf2f5;"{{!}} | {{!}}style="width:155px; background: #ebf2f5;"{{!}} | ||
{{!}} style="width:148px; background: #{{ #switch: {{{ | {{!}} 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| | {{#ifexpr: {{{cardcount|}}}+0 > 2 | | ||
{{!}}style="width:155px; background: #ebf2f5;"{{!}} | {{!}}style="width:155px; background: #ebf2f5;"{{!}} | ||
{{!}} style="width:148px; background: #{{ #switch: {{{ | {{!}} 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| | {{#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 | {{!}}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| | {{#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 | {{!}}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| | {{#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 | {{!}}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: {{{ | {{!}} 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| | {{#ifexpr: {{{cardcount|}}}+0 > 4 | | ||
{{!}}style="width:155px; background: #ebf2f5;"{{!}} | {{!}}style="width:155px; background: #ebf2f5;"{{!}} | ||
{{!}} style="width:148px; background: #{{ #switch: {{{ | {{!}} 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| | {{#ifexpr: {{{cardcount|}}}+0 > 5 | | ||
{{!}}style="width:155px; background: #ebf2f5;"{{!}} | {{!}}style="width:155px; background: #ebf2f5;"{{!}} | ||
{{!}} style="width:148px; background: #{{ #switch: {{{ | {{!}} 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 | {{#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 | |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) | ||
|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 | ||
|card2name=name of card (also determines image file name) | |card2name=name of card (also determines image file name) | ||
|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 | ||
|card3name=name of card (also determines image file name) | |card3name=name of card (also determines image file name) | ||
|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 | ||
|card4name=name of card (also determines image file name) | |card4name=name of card (also determines image file name) | ||
|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 | ||
|card5name=name of card (also determines image file name) | |card5name=name of card (also determines image file name) | ||
|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 | ||
|card6name=name of card (also determines image file name) | |card6name=name of card (also determines image file name) | ||
|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 | ||
|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 | |||
}}</pre></noinclude> | }}</pre></noinclude> |
Revision as of 23:17, August 3, 2016
cardname | |
cardrarity |
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 }}