Difference between revisions of "Template:Card List Mini"

From mtgpq wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
The Card List Mini template displays a list of cards in a skinny table, suitable for several card lists appearing side-by-side.
+
The Card List Mini template displays a list of cards in a skinny table, suitable for several card lists appearing side-by-side.  The card list is formatted as an inline table, allowing a page with multiple card lists to flow its content according to the width of the window.
  
 
This template is very similar to [[Template:Deck List Mini]].  The main difference is that the Card List template provides a much larger upper limit on the number of cards (80 cards).
 
This template is very similar to [[Template:Deck List Mini]].  The main difference is that the Card List template provides a much larger upper limit on the number of cards (80 cards).
Line 25: Line 25:
 
The following shorthand:
 
The following shorthand:
 
<pre><nowiki>
 
<pre><nowiki>
 +
{{Card List Mini
 +
|name = Red cards
 +
|show = cost,type,rarity,color
 +
| Abbot of Keral Keep
 +
| Akroma, Angel of Fury
 +
| Ball Lightning
 +
| Darigaaz Reincarnated
 +
| Electrolyze
 +
| Stitch in Time
 +
| Domri, Anarch of Bolas
 +
| Embercleave
 +
| Iroas, God of Victory
 +
| Thousand-Year Storm
 +
}}
 
{{Card List Mini
 
{{Card List Mini
 
|name = Blue cards
 
|name = Blue cards
Line 37: Line 51:
 
| Kefnet's Last Word
 
| Kefnet's Last Word
 
| Riddleform
 
| Riddleform
| Swarm Intelligence
+
| Blue Sun's Zenith
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
Produces:
 
Produces:
 +
{{Card List Mini
 +
|name = Red cards
 +
|show = cost,type,rarity,color
 +
| Abbot of Keral Keep
 +
| Akroma, Angel of Fury
 +
| Ball Lightning
 +
| Darigaaz Reincarnated
 +
| Electrolyze
 +
| Stitch in Time
 +
| Domri, Anarch of Bolas
 +
| Embercleave
 +
| Iroas, God of Victory
 +
| Thousand-Year Storm
 +
| Vance's Blasting Cannons//Spitfire Bastion
 +
| Xenagos, God of Revels
 +
}}
 
{{Card List Mini
 
{{Card List Mini
 
|name = Blue cards
 
|name = Blue cards
Line 57: Line 87:
 
}}
 
}}
  
</noinclude><includeonly>{| class="wikitable" {{#if:{{{name|}}}|<br>
+
</noinclude><includeonly>{| class="wikitable" style="display:inline-table; {{#if:{{{name|}}}|<br>
 
! colspan="2" style="text-align:left" {{!}} {{{name}}} }}<!--
 
! colspan="2" style="text-align:left" {{!}} {{{name}}} }}<!--
 
-->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{{show|cost,type,rarity}}}|{{{formatting|}}}}}}}<!--
 
-->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{{show|cost,type,rarity}}}|{{{formatting|}}}}}}}<!--

Latest revision as of 03:36, 10 April 2020

Usage

The Card List Mini template displays a list of cards in a skinny table, suitable for several card lists appearing side-by-side. The card list is formatted as an inline table, allowing a page with multiple card lists to flow its content according to the width of the window.

This template is very similar to Template:Deck List Mini. The main difference is that the Card List template provides a much larger upper limit on the number of cards (80 cards).

Parameters

  • name (optional): The name to show with the card list.
  • show (optional): A comma-separated list of fields for each card to show in the list. Default: "cost,type,rarity". The fields are presented in the fixed order below, and may be one or more of:
    • cost - The cost in mana of the card
    • type - The type of the card, along with P/T for creatures and shields for supports
    • color - The color of the card
    • rarity - The rarity of the card
    • set - The set containing the card
    • legacy - A legacy banner if the card is from a legacy set
  • formatting (optional):
    • Blank (default) makes no changes.
    • "rarity_bg" shades each row according to the rarity of the card.
  • (up to 80 unlabeled parameters): The names of cards in the list.
  • notes (optional): Notes about the card list.

Example

The following shorthand:

{{Card List Mini
|name = Red cards
|show = cost,type,rarity,color
| Abbot of Keral Keep
| Akroma, Angel of Fury
| Ball Lightning
| Darigaaz Reincarnated
| Electrolyze
| Stitch in Time
| Domri, Anarch of Bolas
| Embercleave
| Iroas, God of Victory
| Thousand-Year Storm
}}
{{Card List Mini
|name = Blue cards
|show = cost,type,rarity,color
| Champion of Wits
| Ominous Sphinx
| The Locust God
| Unesh, Criosphinx Sovereign
| Vizier of the Anointed
| Endless Sands
| Imaginary Threats
| Kefnet's Last Word
| Riddleform
| Blue Sun's Zenith
}}

Produces:

Red cards 
Abbot of Keral Keep 13 · Creatures (6/5) · Red · Rare 
Akroma, Angel of Fury 17 · Creatures (8/8) · Red · Masterpiece 
Ball Lightning 12 · Creatures (6/1) · Red · Masterpiece 
Darigaaz Reincarnated 18 · Creatures (8/8) · BlackRedGreen · Mythic 
Electrolyze · Spells · BlueRed · Masterpiece 
Stitch in Time 10 · Spells · BlueRed · Masterpiece 
Domri, Anarch of Bolas 14 · Supports (4) · RedGreen · Mythic 
Embercleave 23 · Supports (4) · Red · Mythic 
Iroas, God of Victory 13 · Supports (4) · WhiteRed · Masterpiece 
Thousand-Year Storm 14 · Supports (4) · BlueRed · Mythic 
Vance's Blasting Cannons//Spitfire Bastion · Supports (4) · Red · Mythic 
Xenagos, God of Revels 15 · Supports (4) · RedGreen · Masterpiece
Blue cards 
Champion of Wits · Creatures (2/1) · Blue · Rare 
Ominous Sphinx 22 · Creatures (6/6) · Blue · Rare 
The Locust God 22 · Creatures (8/8) · BlueRed · Mythic 
Unesh, Criosphinx Sovereign 16 · Creatures (8/8) · Blue · Mythic 
Vizier of the Anointed 10 · Creatures (4/6) · Blue · Rare 
Endless Sands 12 · Spells · Colorless · Rare 
Imaginary Threats · Spells · Blue · Rare 
Kefnet's Last Word 11 · Spells · Blue · Rare 
Riddleform · Supports (2) · Blue · Uncommon 
Blue Sun's Zenith · Spells · Blue · Masterpiece