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...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
The Card List template displays a list of cards in a table with sortable columns. | 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 ( | + | 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 (150 cards). Card List also allows you to select which columns to show. |
== Parameters == | == Parameters == | ||
Line 15: | Line 15: | ||
** set - The set containing the card | ** set - The set containing the card | ||
** legacy - A legacy banner if the card is from a legacy set | ** legacy - A legacy banner if the card is from a legacy set | ||
− | * (up to | + | * collapsed - Y or N (optional, default=N). Whether to make the table collapsed. |
+ | * (up to 150 unlabeled parameters): The names of cards in the list. | ||
* notes (optional): Notes about the card list. | * notes (optional): Notes about the card list. | ||
Line 24: | Line 25: | ||
{{Card List | {{Card List | ||
|name = Blue cards | |name = Blue cards | ||
− | |show = cost,type,rarity | + | |show = cost,type,color,rarity |
| Champion of Wits | | Champion of Wits | ||
| Ominous Sphinx | | Ominous Sphinx | ||
Line 41: | Line 42: | ||
{{Card List | {{Card List | ||
|name = Blue cards | |name = Blue cards | ||
− | |show = cost,type,rarity | + | |show = cost,type,color,rarity |
| Champion of Wits | | Champion of Wits | ||
| Ominous Sphinx | | Ominous Sphinx | ||
Line 54: | Line 55: | ||
}} | }} | ||
− | </noinclude><includeonly>{| class="wikitable" | + | </noinclude><includeonly>{| class="wikitable sortable {{#ifeq:{{{collapsed|}}}|Y|mw-collapsible mw-collapsed}}" |
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
− | {{!}}+ {{{name}}} }} | + | {{!}}+ {{Nowrap|{{{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|<br> |
+ | ! Rarity}}<!-- | ||
+ | -->{{#ifeq:{{#expr: {{#if:{{{show|}}}|0|1}} or {{#if:{{#pos:{{{show|}}}|set}}|1|0}} or {{#if:{{#pos:{{{show|}}}|legacy}}|1|0}}}}|1|<br> | ||
! Set}} | ! Set}} | ||
|- <!-- | |- <!-- | ||
Line 108: | Line 109: | ||
-->{{#if:{{{38|}}}|{{Deck List Row|{{{38}}}|{{{show|}}}}}}}<!-- | -->{{#if:{{{38|}}}|{{Deck List Row|{{{38}}}|{{{show|}}}}}}}<!-- | ||
-->{{#if:{{{39|}}}|{{Deck List Row|{{{39}}}|{{{show|}}}}}}}<!-- | -->{{#if:{{{39|}}}|{{Deck List Row|{{{39}}}|{{{show|}}}}}}}<!-- | ||
− | -->{{#if:{{{40|}}}|{{Deck List Row|{{{40}}}|{{{show|}}}}}}} | + | -->{{#if:{{{40|}}}|{{Deck List Row|{{{40}}}|{{{show|}}}}}}}<!-- |
+ | -->{{#if:{{{41|}}}|{{Deck List Row|{{{41}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{42|}}}|{{Deck List Row|{{{42}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{43|}}}|{{Deck List Row|{{{43}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{44|}}}|{{Deck List Row|{{{44}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{45|}}}|{{Deck List Row|{{{45}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{46|}}}|{{Deck List Row|{{{46}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{47|}}}|{{Deck List Row|{{{47}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{48|}}}|{{Deck List Row|{{{48}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{49|}}}|{{Deck List Row|{{{49}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{50|}}}|{{Deck List Row|{{{50}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{51|}}}|{{Deck List Row|{{{51}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{52|}}}|{{Deck List Row|{{{52}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{53|}}}|{{Deck List Row|{{{53}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{54|}}}|{{Deck List Row|{{{54}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{55|}}}|{{Deck List Row|{{{55}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{56|}}}|{{Deck List Row|{{{56}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{57|}}}|{{Deck List Row|{{{57}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{58|}}}|{{Deck List Row|{{{58}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{59|}}}|{{Deck List Row|{{{59}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{60|}}}|{{Deck List Row|{{{60}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{61|}}}|{{Deck List Row|{{{61}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{62|}}}|{{Deck List Row|{{{62}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{63|}}}|{{Deck List Row|{{{63}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{64|}}}|{{Deck List Row|{{{64}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{65|}}}|{{Deck List Row|{{{65}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{66|}}}|{{Deck List Row|{{{66}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{67|}}}|{{Deck List Row|{{{67}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{68|}}}|{{Deck List Row|{{{68}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{69|}}}|{{Deck List Row|{{{69}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{70|}}}|{{Deck List Row|{{{70}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{71|}}}|{{Deck List Row|{{{71}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{72|}}}|{{Deck List Row|{{{72}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{73|}}}|{{Deck List Row|{{{73}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{74|}}}|{{Deck List Row|{{{74}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{75|}}}|{{Deck List Row|{{{75}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{76|}}}|{{Deck List Row|{{{76}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{77|}}}|{{Deck List Row|{{{77}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{78|}}}|{{Deck List Row|{{{78}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{79|}}}|{{Deck List Row|{{{79}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{80|}}}|{{Deck List Row|{{{80}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{81|}}}|{{Deck List Row|{{{81}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{82|}}}|{{Deck List Row|{{{82}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{83|}}}|{{Deck List Row|{{{83}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{84|}}}|{{Deck List Row|{{{84}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{85|}}}|{{Deck List Row|{{{85}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{86|}}}|{{Deck List Row|{{{86}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{87|}}}|{{Deck List Row|{{{87}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{88|}}}|{{Deck List Row|{{{88}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{89|}}}|{{Deck List Row|{{{89}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{90|}}}|{{Deck List Row|{{{90}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{91|}}}|{{Deck List Row|{{{91}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{92|}}}|{{Deck List Row|{{{92}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{93|}}}|{{Deck List Row|{{{93}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{94|}}}|{{Deck List Row|{{{94}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{95|}}}|{{Deck List Row|{{{95}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{96|}}}|{{Deck List Row|{{{96}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{97|}}}|{{Deck List Row|{{{97}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{98|}}}|{{Deck List Row|{{{98}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{99|}}}|{{Deck List Row|{{{99}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{100|}}}|{{Deck List Row|{{{100}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{101|}}}|{{Deck List Row|{{{101}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{102|}}}|{{Deck List Row|{{{102}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{103|}}}|{{Deck List Row|{{{103}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{104|}}}|{{Deck List Row|{{{104}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{105|}}}|{{Deck List Row|{{{105}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{106|}}}|{{Deck List Row|{{{106}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{107|}}}|{{Deck List Row|{{{107}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{108|}}}|{{Deck List Row|{{{108}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{109|}}}|{{Deck List Row|{{{109}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{110|}}}|{{Deck List Row|{{{110}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{111|}}}|{{Deck List Row|{{{111}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{112|}}}|{{Deck List Row|{{{112}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{113|}}}|{{Deck List Row|{{{113}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{114|}}}|{{Deck List Row|{{{114}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{115|}}}|{{Deck List Row|{{{115}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{116|}}}|{{Deck List Row|{{{116}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{117|}}}|{{Deck List Row|{{{117}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{118|}}}|{{Deck List Row|{{{118}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{119|}}}|{{Deck List Row|{{{119}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{120|}}}|{{Deck List Row|{{{120}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{121|}}}|{{Deck List Row|{{{121}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{122|}}}|{{Deck List Row|{{{122}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{123|}}}|{{Deck List Row|{{{123}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{124|}}}|{{Deck List Row|{{{124}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{125|}}}|{{Deck List Row|{{{125}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{126|}}}|{{Deck List Row|{{{126}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{127|}}}|{{Deck List Row|{{{127}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{128|}}}|{{Deck List Row|{{{128}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{129|}}}|{{Deck List Row|{{{129}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{130|}}}|{{Deck List Row|{{{130}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{131|}}}|{{Deck List Row|{{{131}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{132|}}}|{{Deck List Row|{{{132}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{133|}}}|{{Deck List Row|{{{133}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{134|}}}|{{Deck List Row|{{{134}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{135|}}}|{{Deck List Row|{{{135}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{136|}}}|{{Deck List Row|{{{136}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{137|}}}|{{Deck List Row|{{{137}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{138|}}}|{{Deck List Row|{{{138}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{139|}}}|{{Deck List Row|{{{139}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{140|}}}|{{Deck List Row|{{{140}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{141|}}}|{{Deck List Row|{{{141}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{142|}}}|{{Deck List Row|{{{142}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{143|}}}|{{Deck List Row|{{{143}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{144|}}}|{{Deck List Row|{{{144}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{145|}}}|{{Deck List Row|{{{145}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{146|}}}|{{Deck List Row|{{{146}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{147|}}}|{{Deck List Row|{{{147}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{148|}}}|{{Deck List Row|{{{148}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{149|}}}|{{Deck List Row|{{{149}}}|{{{show|}}}}}}}<!-- | ||
+ | -->{{#if:{{{150|}}}|{{Deck List Row|{{{150}}}|{{{show|}}}}}}} | ||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="99" {{!}} <small>{{{notes}}}</small>}} | {{!}} colspan="99" {{!}} <small>{{{notes}}}</small>}} | ||
|}</includeonly> | |}</includeonly> |
Latest revision as of 06:00, 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 (150 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
- collapsed - Y or N (optional, default=N). Whether to make the table collapsed.
- (up to 150 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,color,rarity | 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 |
Rarity |
---|---|---|---|---|
Champion of Wits | (2/1) | 9 | ||
Ominous Sphinx | (6/6) | 22 | ||
The Locust God | (8/8) | 22 | ||
Unesh, Criosphinx Sovereign | (8/8) | 16 | ||
Vizier of the Anointed | (4/6) | 10 | ||
Endless Sands | 12 | |||
Imaginary Threats | 5 | |||
Kefnet's Last Word | 11 | |||
Riddleform | (2) | 7 | ||
Swarm Intelligence | (4) | 13 |