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 |
No edit summary Tag: visualeditor-wikitext |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{{!}} | {{{!}}cellspacing="0" border="0" style="margin:auto;" | ||
{{!}}- | {{!}}- | ||
{{!}}style="background: # | {{!}}style="height: 47px; width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{cardname|cardname}}}''' | ||
{{!}} style="width: | {{#ifexpr: {{{cardcount|}}}+0 > 1 | | ||
{{# | {{!}}style="width:31px;"{{!}} | ||
{{!}}style="background: # | {{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card2name|card2name}}}''' |}} | ||
{{!}} style="width: | {{#ifexpr: {{{cardcount|}}}+0 > 2 | | ||
{{# | {{!}}style="width:31px;"{{!}} | ||
{{!}}style="background: # | {{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card3name|card3name}}}''' | ||
{{!}} style="width: | {{!}}- | {{!}}-}} | ||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{cardname|cardname}}}card.png|center|206px]] | |||
'''{{{cardrarity|cardrarity}}}'''<br> | |||
{{{carddesc|carddesc}}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 1 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card2name|card2name}}}card.png|center|206px]] | |||
'''{{{card2rarity|card2rarity}}}'''<br> | |||
{{{card2desc|card2desc}}} |}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 2 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card3name|card3name}}}card.png|center|206px]] | |||
'''{{{card3rarity|card3rarity}}}'''<br> | |||
{{{card3desc|card3desc}}} | |||
{{!}}} | {{!}}} }} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 3 | <br> | |||
{{{!}}cellspacing="0" border="0" style="margin:auto;" | |||
{{!}}- | |||
{{!}}style="height: 47px; width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card4name|card4name}}}''' | |||
{{#ifexpr: {{{cardcount|}}}+0 > 4 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card5name|card5name}}}''' |}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 5 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card6name|card6name}}}''' | |||
{{!}}- | {{!}}-}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card4name|card4name}}}card.png|center|206px]] | |||
'''{{{card4rarity|card4rarity}}}'''<br> | |||
{{{card4desc|card4desc}}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 4 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card5name|card5name}}}card.png|center|206px]] | |||
'''{{{card5rarity|card5rarity}}}'''<br> | |||
{{{card5desc|card5desc}}} |}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 5 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card6name|card6name}}}card.png|center|206px]] | |||
'''{{{card6rarity|card6rarity}}}'''<br> | |||
{{{card6desc|card6desc}}} | |||
{{!}}} | {{!}}} }} |}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 6 | <br> | |||
{{{!}}cellspacing="0" border="0" style="margin:auto;" | |||
{{!}}- | {{!}}- | ||
{{!}}style="width: | {{!}}style="height: 47px; width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card7name|card7name}}}''' | ||
{{!}} style="width: | {{#ifexpr: {{{cardcount|}}}+0 > 7 | | ||
'''{{{ | {{!}}style="width:31px;"{{!}} | ||
{{{ | {{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card8name|card8name}}}''' |}} | ||
{{# | {{#ifexpr: {{{cardcount|}}}+0 > 8 | | ||
{{!}}style="width: | {{!}}style="width:31px;"{{!}} | ||
{{!}} style="width: | {{!}}style="width:208px; color:black; background: #d04c8e; text-align:center;"{{!}}'''{{{card9name|card9name}}}''' | ||
'''{{{ | {{!}}- | {{!}}-}} | ||
{{{ | {{!}} style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card7name|card7name}}}card.png|center|206px]] | ||
{{# | '''{{{card7rarity|card7rarity}}}'''<br> | ||
{{!}}style="width: | {{{card7desc|card7desc}}} | ||
{{!}} style="width: | {{#ifexpr: {{{cardcount|}}}+0 > 7 | | ||
'''{{{ | {{!}}style="width:31px;"{{!}} | ||
{{{ | {{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" valign="top"{{!}}[[File:{{{card8name|card8name}}}card.png|center|206px]] | ||
{{!}}} | '''{{{card8rarity|card8rarity}}}'''<br> | ||
{{{card8desc|card8desc}}} |}} | |||
{{#ifexpr: {{{cardcount|}}}+0 > 8 | | |||
{{!}}style="width:31px;"{{!}} | |||
{{!}}style="width:208px; color:black; background: #{{elementcolor|{{{element|}}}|}}; text-align:center;" 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 | ||
|element=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) | |||
|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 | |||
}}</pre></noinclude> | }}</pre></noinclude> |
Latest revision as of 08:32, November 15, 2021
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 |element=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 }}