Difference between revisions of "Template:Card Set List"
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
* <code>name</code> (optional): The name to show with the card list. | * <code>name</code> (optional): The name to show with the card list. | ||
+ | * <code>gallery</code> (optional): A URL to a card gallery for this card list at mtgpq.info. | ||
* <code>collapsed</code> - Either Y (collapsed), N (collapsible, but not collapsed), or blank (not collapsible). | * <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. | ||
Line 18: | Line 19: | ||
{{Card Set List | {{Card Set List | ||
|name = Blue cards | |name = Blue cards | ||
+ | |gallery = https://mtgpq.info/cards/CausticCaterpillar | ||
|collapsed = N | |collapsed = N | ||
| Champion of Wits | | Champion of Wits | ||
Line 35: | Line 37: | ||
{{Card Set List | {{Card Set List | ||
|name = Blue cards | |name = Blue cards | ||
+ | |gallery = https://mtgpq.info/cards/CausticCaterpillar | ||
|collapsed = N | |collapsed = N | ||
| Champion of Wits | | Champion of Wits | ||
Line 49: | Line 52: | ||
</noinclude><includeonly>{{#if:{{{collapsed|}}}|<div class="toccolours mw-collapsible {{#ifeq:{{{collapsed|}}}|Y|mw-collapsed}}"> | </noinclude><includeonly>{{#if:{{{collapsed|}}}|<div class="toccolours mw-collapsible {{#ifeq:{{{collapsed|}}}|Y|mw-collapsed}}"> | ||
− | <div style=" | + | <div style="line-height:1.6;"><span style="float:left;">{{{name|}}}</span> {{#if:{{{gallery|}}}| |
+ | <span style="float:right;">{{Nowrap|[{{{gallery}}} [Gallery at mtgpq.info]] }}</span>}}</div><div class="mw-collapsible-content">}} | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
{{#if:{{{collapsed|}}}||{{#if:{{{name|}}}| | {{#if:{{{collapsed|}}}||{{#if:{{{name|}}}| | ||
− | {{!}}+ {{Nowrap|{{{name}}}}} }} }} | + | {{!}}+ {{Nowrap|{{{name}}}}} }} {{#if:{{{gallery|}}}|[{{{gallery}}} (gallery at mtgpq.info)]}} }} |
! Name | ! Name | ||
! Type | ! Type | ||
+ | ! Subtypes | ||
! Cost | ! Cost | ||
! Color | ! Color |
Latest revision as of 10:27, 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.gallery
(optional): A URL to a card gallery for this card list at mtgpq.info.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 |gallery = https://mtgpq.info/cards/CausticCaterpillar |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 [Gallery at mtgpq.info]
Name | Type | Subtypes | Cost | Color | Rarity |
---|---|---|---|---|---|
Champion of Wits | (2/1) | Wizard, Naga | 9 | ||
Ominous Sphinx | (6/6) | Sphinx | 22 | ||
The Locust God | (8/8) | God | 22 | ||
Unesh, Criosphinx Sovereign | (8/8) | Sphinx | 16 | ||
Vizier of the Anointed | (4/6) | Cleric, Human | 10 | ||
Endless Sands | Desert | 12 | |||
Imaginary Threats | 5 | ||||
Kefnet's Last Word | 11 | ||||
Riddleform | (2) | 7 | |||
Swarm Intelligence | (4) | 13 |