Difference between revisions of "Template:Card Set List"
| Line 7: | Line 7: | ||
== Parameters == | == Parameters == | ||
| − | * name (optional): The name to show with the card list. | + | * <code>name</code> (optional): The name to show with the card list. |
| − | * collapsed - Y | + | * <code>collapsed</code> - Either Y (collapsed), N (collapsible, but not collapsed), or blank (not collapsible). |
* (up to 250 unlabeled parameters): The names of cards in the list. | * (up to 250 unlabeled parameters): The names of cards in the list. | ||
| − | * notes (optional): Notes about the card list. | + | * <code>notes</code> (optional): Notes about the card list. |
== Example == | == Example == | ||
| Line 18: | Line 18: | ||
{{Card Set List | {{Card Set List | ||
|name = Blue cards | |name = Blue cards | ||
| + | |collapsed = N | ||
| Champion of Wits | | Champion of Wits | ||
| Ominous Sphinx | | Ominous Sphinx | ||
| Line 34: | Line 35: | ||
{{Card Set List | {{Card Set List | ||
|name = Blue cards | |name = Blue cards | ||
| + | |collapsed = N | ||
| Champion of Wits | | Champion of Wits | ||
| Ominous Sphinx | | Ominous Sphinx | ||
| Line 46: | Line 48: | ||
}} | }} | ||
| − | </noinclude><includeonly>{| class=" | + | </noinclude><includeonly>{{#if:{{{collapsed|}}}|<div class="toccolours mw-collapsible {{#ifeq:{{{collapsed|}}}|Y|mw-collapsed}}"> |
| − | {{#if:{{{name|}}}| | + | <div style="font-weight:bold; line-height:1.6;">{{{name|}}}</div><div class="mw-collapsible-content">}} |
| − | {{!}}+ {{Nowrap|{{{name}}}}} }} | + | {| class="wikitable sortable" |
| + | {{#if:{{{collapsed|}}}||{{#if:{{{name|}}}| | ||
| + | {{!}}+ {{Nowrap|{{{name}}}}} }} }} | ||
! Name | ! Name | ||
! Type | ! Type | ||
| Line 305: | Line 309: | ||
-->{{#if:{{{249|}}}|{{Card Set List Row|{{{249}}}|{{{show|}}}}}}}<!-- | -->{{#if:{{{249|}}}|{{Card Set List Row|{{{249}}}|{{{show|}}}}}}}<!-- | ||
-->{{#if:{{{250|}}}|{{Card Set List Row|{{{250}}}|{{{show|}}}}}}} | -->{{#if:{{{250|}}}|{{Card Set List Row|{{{250}}}|{{{show|}}}}}}} | ||
| − | {{#if:{{{notes|}}}| | + | {{#if:{{{collapsed|}}}||{{#if:{{{notes|}}}| |
{{!}}- | {{!}}- | ||
| − | {{!}} colspan="99" {{!}} | + | {{!}} colspan="99" {{!}} {{{notes}}}}} }} |
| − | + | |} {{#if:{{{collapsed|}}}| | |
| + | {{#if:{{{notes|}}}|{{{notes}}}}} | ||
| + | </div></div>}}</includeonly> | ||
Revision as of 09:30, 27 February 2019
Usage
The Card Set 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 (250 cards). The columns displayed are fixed, suiting lists of cards in a card set.
Parameters
name(optional): The name to show with the card list.collapsed- Either Y (collapsed), N (collapsible, but not collapsed), or blank (not collapsible).- (up to 250 unlabeled parameters): The names of cards in the list.
notes(optional): Notes about the card list.
Example
The following shorthand:
{{Card Set List
|name = Blue cards
|collapsed = N
| 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:
Blue cards
| Name | Type | Subtypes | Cost | Color | Rarity |
|---|---|---|---|---|---|
| Champion of Wits | Wizard, Naga | 9 | |||
| Ominous Sphinx | Sphinx | 22 | |||
| The Locust God | God | 22 | |||
| Unesh, Criosphinx Sovereign | Sphinx | 16 | |||
| Vizier of the Anointed | Cleric, Human | 10 | |||
| Endless Sands | Desert | 12 | |||
| Imaginary Threats | 5 | ||||
| Kefnet's Last Word | 11 | ||||
| Riddleform | 7 | ||||
| Swarm Intelligence | 13 |