Difference between revisions of "Template:Card panel"

From mtgpq wiki
Jump to: navigation, search
Line 10: Line 10:
 
<pre><nowiki>
 
<pre><nowiki>
 
{| class="wikitable"
 
{| class="wikitable"
| {{Card panel|Abbot of Keral Keep}}
+
| {{Card panel|Crush of Tentacles}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 16: Line 16:
 
Produces:
 
Produces:
 
{| class="wikitable" style="width: 320px;"  
 
{| class="wikitable" style="width: 320px;"  
| {{Card panel|Abbot of Keral Keep}}
+
| {{Card panel|Crush of Tentacles}}
 
|}
 
|}
  
 
</noinclude><includeonly><div id="Card_Panel_{{{!}}}" style="width: 277px; margin: 0 auto;">
 
</noinclude><includeonly><div id="Card_Panel_{{{!}}}" style="width: 277px; margin: 0 auto;">
[[File:{{{1}}}.png]]
+
https://mtgpq.info/assets/packs/{{lc:{{Card data: {{{1}}}|2}}}}/{{Card data: {{{1}}}|11}}
 
<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>

Revision as of 22:27, 23 March 2019

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|Crush of Tentacles}}
|}

Produces:

161219.png Crush of Tentacles CommonUncommonRare|Mythic|Masterpiece
Oath of the Gatewatch Oath of the Gatewatch
21 mana  ·  Spells   ·  Blue