Difference between revisions of "Template:Card panel"
(6 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
<pre><nowiki> | <pre><nowiki> | ||
{| class="wikitable" | {| class="wikitable" | ||
− | | {{Card panel| | + | | {{Card panel|Beanstalk Giant//Fertile Footsteps}} |
|} | |} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 16: | Line 16: | ||
Produces: | Produces: | ||
{| class="wikitable" style="width: 320px;" | {| class="wikitable" style="width: 320px;" | ||
− | | {{Card panel| | + | | {{Card panel|Beanstalk Giant//Fertile Footsteps}} |
|} | |} | ||
</noinclude><includeonly><div id="Card_Panel_{{{!}}}" style="width: 277px; margin: 0 auto;"> | </noinclude><includeonly><div id="Card_Panel_{{{!}}}" style="width: 277px; margin: 0 auto;"> | ||
− | + | {{Card image|{{{1}}}}} | |
<span style="text-align:left; float:left">'''{{Card URL|{{Card data: {{{1}}}|1}}}}'''</span><!-- | <span style="text-align:left; float:left">'''{{Card URL|{{Card data: {{{1}}}|1}}}}'''</span><!-- | ||
--> <span style="text-align:right; float:right">{{Rarity icon lineup|{{Card data: {{{1}}}|3}}}}</span><br> | --> <span style="text-align:right; float:right">{{Rarity icon lineup|{{Card data: {{{1}}}|3}}}}</span><br> | ||
[[{{Set expand|{{Card data: {{{1}}}|2}}}}]] {{SetSymbol|{{Card data: {{{1}}}|2}}}}<br> | [[{{Set expand|{{Card data: {{{1}}}|2}}}}]] {{SetSymbol|{{Card data: {{{1}}}|2}}}}<br> | ||
− | {{Card data: {{{1}}}|5}} mana '''·''' | + | {{#replace:{{Card data: {{{1}}}|5}}|,|//}} mana '''·''' |
− | {{{{Card data: {{{1}}}|6}}s}} ({{Card data: {{{1}}}|8}}) '''·''' | + | {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}}<!-- Type |
+ | -->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}}}} <!-- | ||
+ | -->{{#if:{{Card data: {{{1}}}|8}}|({{Card data: {{{1}}}|8}})}} '''·''' | ||
{{Color Icons|{{Card data: {{{1}}}|4}}}} | {{Color Icons|{{Card data: {{{1}}}|4}}}} | ||
</div></includeonly> | </div></includeonly> |
Latest revision as of 02:19, 23 February 2020
Usage
Generates content for a given card in a panel whose layout is up to the user of the template.
The only parameter is the name of the card.
Example
The following shorthand (containing the card panel in a table):
{| class="wikitable" | {{Card panel|Beanstalk Giant//Fertile Footsteps}} |}
Produces:
Beanstalk Giant//Fertile Footsteps || |