Difference between revisions of "Template:Card List"
(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...") |
|||
| Line 41: | Line 41: | ||
{{Card List | {{Card List | ||
|name = Blue cards | |name = Blue cards | ||
| − | |show = | + | |show = type,cost,color |
| Champion of Wits | | Champion of Wits | ||
| Ominous Sphinx | | Ominous Sphinx | ||
| Line 54: | Line 54: | ||
}} | }} | ||
| − | </noinclude><includeonly>{| class="wikitable" | + | </noinclude><includeonly>{| class="wikitable sortable" |
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
{{!}}+ {{{name}}} }} | {{!}}+ {{{name}}} }} | ||
! Name | ! Name | ||
| − | |||
| − | |||
{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|type}}|1|0}}}}|1| | {{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|type}}|1|0}}}}|1| | ||
| − | ! Type}} | + | ! Type}}<!-- |
| − | {{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|color}}|1|0}}}}|1| | + | -->{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|cost}}|1|0}}}}|1|<br> |
| − | ! Color}} | + | ! Cost}}<!-- |
| − | {{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|rarity}}|1|0}}}}|1| | + | -->{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|color}}|1|0}}}}|1|<br> |
| − | ! Rarity}} | + | ! Color}}<!-- |
| − | {{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|set}}|1|0}} or {{#if:{{#pos:{{{show|}}}|legacy}}|1|0}}}}|1| | + | -->{{#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}} | ! Set}} | ||
|- <!-- | |- <!-- | ||
Revision as of 05:07, 26 February 2019
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:
{{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
}}
Produces:
| Name | Type |
Cost |
Color |
|---|---|---|---|
| Champion of Wits | 9 | ||
| Ominous Sphinx | 22 | ||
| The Locust God | 22 | ||
| Unesh, Criosphinx Sovereign | 16 | ||
| Vizier of the Anointed | 10 | ||
| Endless Sands | 12 | ||
| Imaginary Threats | 5 | ||
| Kefnet's Last Word | 11 | ||
| Riddleform | 7 | ||
| Swarm Intelligence | 13 |