Difference between revisions of "Template:Card panel"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> == 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...")
 
Line 21: Line 21:
 
</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]]
 
[[File:{{{1}}}.png]]
<span style="text-align:left; float:left">'''<!--
+
<span style="text-align:left; float:left">'''{{Card URL|{{Card data: {{{1}}}|1}}}}'''</span><!--
-->[https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}}{{#if:{{#pos:{{Card data: {{{1}}}|7}}|Saga}}|I}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{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>

Revision as of 04:31, 4 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|Abbot of Keral Keep}}
|}

Produces:

160307.png Abbot of Keral Keep CommonUncommon|Rare|MythicMasterpiece
Origins Origins
13 mana  ·  Creatures (6/5)  ·  Red