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
m Undo revision 86773 by Princess Nightmoon (talk) That was not the issue, oh well. Tag: sourceedit |
Fixed previous error, plus fixed "raritydesc" vs "cardrarity" clash Tag: sourceedit |
||
Line 3: | Line 3: | ||
{{!}}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 | | | {{!}}{{#ifeq: {{{cardcount|}}} | 1 | | | ||
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 | | {{!}}{{#ifeq: {{{cardcount|}}} | 3 | | ||
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:{{{cardname|cardname}}}card.png|center|206px]] | ||
'''{{{ | '''{{{cardrarity|cardrarity}}}'''<br> | ||
{{{carddesc|carddesc}}} | {{{carddesc|carddesc}}} | ||
{{#ifeq: {{{cardcount|}}} | 1 | | | {{!}}{{#ifeq: {{{cardcount|}}} | 1 | | | ||
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:{{{card2name|card2name}}}card.png|center|206px]] | ||
'''{{{ | '''{{{card2rarity|card2rarity}}}'''<br> | ||
{{{card2desc|card2desc}}} }} | {{{card2desc|card2desc}}} }} | ||
{{#ifeq: {{{cardcount|}}} | 3 | | {{!}}{{#ifeq: {{{cardcount|}}} | 3 | | ||
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:{{{card3name|card3name}}}card.png|center|206px]] | ||
'''{{{ | '''{{{card3rarity|card3rarity}}}'''<br> | ||
{{{card3desc|card3desc}}} }} | {{{card3desc|card3desc}}} }} | ||
{{!}}} | {{!}}} |
Revision as of 02:05, July 24, 2016
cardname - cardtype | card2name - card2type | |||
cardrarity |
card2rarity |
This template is used to display information about a set of 1-3 non-character Battlecast Cards. For more than 3, simply use multiple templates.
{{cardbox |cardcount=number of cards (defaults to 2) |cardname=name of card (also determines image file name) |cardtype=type of card (relic/spell/gear) |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) |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) |card3rarity=the rarity status that the card comes in |card3desc=description of card |card3element=elemental alignment of card (fire, air, life, etc) }}