Changes

Jump to: navigation, search

Template:Card List

4,891 bytes added, 02:10, 26 February 2019
Created page with "<noinclude> == Usage == The Card List template displays a list of cards in a table with sortable columns. This template is similar to Template:Deck List. The main differ..."
<noinclude>
== Usage ==
The Card List template displays a list of cards in a table with sortable columns.

This template is similar to [[Template:Deck List]]. The main difference is that the Card List template provides a much larger upper limit on the number of cards (40 cards). Card List also allows you to select which columns to show.

== 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
* (up to 40 unlabeled parameters): The names of cards in the list.
* notes (optional): Notes about the card list.

== Example ==

The following shorthand:
<pre><nowiki>
{{Card List
|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
| Swarm Intelligence
}}
</nowiki></pre>

Produces:
{{Card List
|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
| Swarm Intelligence
}}

</noinclude><includeonly>{| class="wikitable"
{{#if:{{{name|}}}|
{{!}}+ {{{name}}} }}
! Name
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|cost}}|1|0}}}}|1|
! Cost}}
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|type}}|1|0}}}}|1|
! Type}}
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|color}}|1|0}}}}|1|
! Color}}
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|rarity}}|1|0}}}}|1|
! Rarity}}
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|set}}|1|0}} or {{#if:{{#pos:{{{show|}}}|legacy}}|1|0}}}}|1|
! Set}}
|- <!--
-->{{#if:{{{1|}}}|{{Deck List Row|{{{1}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{2|}}}|{{Deck List Row|{{{2}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{3|}}}|{{Deck List Row|{{{3}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{4|}}}|{{Deck List Row|{{{4}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{5|}}}|{{Deck List Row|{{{5}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{6|}}}|{{Deck List Row|{{{6}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{7|}}}|{{Deck List Row|{{{7}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{8|}}}|{{Deck List Row|{{{8}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{9|}}}|{{Deck List Row|{{{9}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{10|}}}|{{Deck List Row|{{{10}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{11|}}}|{{Deck List Row|{{{11}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{12|}}}|{{Deck List Row|{{{12}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{13|}}}|{{Deck List Row|{{{13}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{14|}}}|{{Deck List Row|{{{14}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{15|}}}|{{Deck List Row|{{{15}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{16|}}}|{{Deck List Row|{{{16}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{17|}}}|{{Deck List Row|{{{17}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{18|}}}|{{Deck List Row|{{{18}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{19|}}}|{{Deck List Row|{{{19}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{20|}}}|{{Deck List Row|{{{20}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{21|}}}|{{Deck List Row|{{{21}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{22|}}}|{{Deck List Row|{{{22}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{23|}}}|{{Deck List Row|{{{23}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{24|}}}|{{Deck List Row|{{{24}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{25|}}}|{{Deck List Row|{{{25}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{26|}}}|{{Deck List Row|{{{26}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{27|}}}|{{Deck List Row|{{{27}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{28|}}}|{{Deck List Row|{{{28}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{29|}}}|{{Deck List Row|{{{29}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{30|}}}|{{Deck List Row|{{{30}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{31|}}}|{{Deck List Row|{{{31}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{32|}}}|{{Deck List Row|{{{32}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{33|}}}|{{Deck List Row|{{{33}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{34|}}}|{{Deck List Row|{{{34}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{35|}}}|{{Deck List Row|{{{35}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{36|}}}|{{Deck List Row|{{{36}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{37|}}}|{{Deck List Row|{{{37}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{38|}}}|{{Deck List Row|{{{38}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{39|}}}|{{Deck List Row|{{{39}}}|{{{show|}}}}}}}<!--
-->{{#if:{{{40|}}}|{{Deck List Row|{{{40}}}|{{{show|}}}}}}}
{{#if:{{{notes|}}}|
{{!}}-
{{!}} colspan="99" {{!}} <small>{{{notes}}}</small>}}
|}</includeonly>

Navigation menu