Difference between revisions of "Template:Card panel"

From mtgpq wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
<pre><nowiki>
 
<pre><nowiki>
 
{| class="wikitable"
 
{| class="wikitable"
| {{Card panel|Crush of Tentacles}}
+
| {{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|Crush of Tentacles}}
+
| {{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;">
-->https://mtgpq.info/assets/packs/{{lc:{{Card data: {{{1}}}|2}}}}/{{Card data: {{{1}}}|11}}<!--
+
{{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><!--
 
-->&nbsp;<span style="text-align:right; float:right">{{Rarity icon lineup|{{Card data: {{{1}}}|3}}}}</span><br>
 
-->&nbsp;<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 &nbsp;'''·'''&nbsp;
+
{{#replace:{{Card data: {{{1}}}|5}}|,|//}} mana &nbsp;'''·'''&nbsp;
{{{{Card data: {{{1}}}|6}}s}} {{#if:{{Card data: {{{1}}}|8}}|({{Card data: {{{1}}}|8}})}} &nbsp;'''·'''&nbsp;
+
{{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}}<!--              Type
 +
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}}}}&nbsp;<!--
 +
-->{{#if:{{Card data: {{{1}}}|8}}|({{Card data: {{{1}}}|8}})}} &nbsp;'''·'''&nbsp;
 
{{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:

409760.png Beanstalk Giant//Fertile Footsteps CommonUncommonRare|Mythic|Masterpiece
Throne of Eldraine Throne of Eldraine
12//11 mana  ·  Creatures//Spells (1/1)  ·  Green