Difference between revisions of "Template:Deck List"

From mtgpq wiki
Jump to: navigation, search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
The Deck List template is used for recording the enemy's deck contentsIt is typically coupled with the [[Template:Enemy Stats]] Template as well.
+
== Usage ==
 +
The Deck List template displays the contents of a deck in a table with sortable columnsWhen used in event descriptions, it is often coupled with the [[Template:Enemy Stats]] Template.
  
== Parameters ==
+
The only parameter is the card name.  It must match the corresponding card template name.
 
 
The parameters for this table are positional. 
 
 
 
The odd numbered parameters should be card names enclosed in double square brackets.  Even numbered parameters should be the card type in lower case.
 
 
 
The suggested format is to insert the card name as the first parameter on a line, then a pipe, then the card type on the same line.
 
 
 
The template will default to "(unknown card)" for card names and "(unknown)" for card types.
 
  
 
== Example ==
 
== Example ==
  
The following is an example of how to use this template to document a deck list:
+
The following shorthand:
 
 
 
<pre><nowiki>
 
<pre><nowiki>
 
== Example ==
 
 
 
{{Deck List
 
{{Deck List
|Champion of Wits|creature
+
|Champion of Wits
|Ominous Sphinx|creature
+
|Ominous Sphinx
|The Locust God|creature
+
|The Locust God
|Unesh, Criosphinx Sovereign|creature
+
|Unesh, Criosphinx Sovereign
|Vizier of the Anointed|creature
+
|Vizier of the Anointed
|Endless Sands|spell
+
|Endless Sands
|Imaginary Threats|spell
+
|Imaginary Threats
|Kefnet’s Last Word|spell
+
|Kefnet's Last Word
|Riddleform|support
+
|Riddleform
|Swarm Intelligence|support
+
|Swarm Intelligence
 
}}
 
}}
 
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
Produces:
 
{{Deck List
 
{{Deck List
|Champion of Wits|creature
+
|Champion of Wits
|Ominous Sphinx|creature
+
|Ominous Sphinx
|The Locust God|creature
+
|The Locust God
|Unesh, Criosphinx Sovereign|creature
+
|Unesh, Criosphinx Sovereign
|Vizier of the Anointed|creature
+
|Vizier of the Anointed
|Endless Sands|spell
+
|Endless Sands
|Imaginary Threats|spell
+
|Imaginary Threats
|Kefnet’s Last Word|spell
+
|Kefnet's Last Word
|Riddleform|support
+
|Riddleform
|Swarm Intelligence|support
+
|Swarm Intelligence
 
}}
 
}}
  
 
</noinclude><includeonly>{| class="wikitable sortable mw-collapsible"
 
</noinclude><includeonly>{| class="wikitable sortable mw-collapsible"
!Deck list
+
!Card name || Type || Cost || Color || Rarity || Set<!--
{{Deck List Row|{{{1}}}|{{{2}}}}}
+
-->{{#if:{{{1|}}}|{{Deck List Row|{{{1}}}}}}}<!--
{{Deck List Row|{{{3}}}|{{{4}}}}}
+
-->{{#if:{{{2|}}}|{{Deck List Row|{{{2}}}}}}}<!--
{{Deck List Row|{{{5}}}|{{{6}}}}}
+
-->{{#if:{{{3|}}}|{{Deck List Row|{{{3}}}}}}}<!--
{{Deck List Row|{{{7}}}|{{{8}}}}}
+
-->{{#if:{{{4|}}}|{{Deck List Row|{{{4}}}}}}}<!--
{{Deck List Row|{{{9}}}|{{{10}}}}}
+
-->{{#if:{{{5|}}}|{{Deck List Row|{{{5}}}}}}}<!--
{{Deck List Row|{{{11}}}|{{{12}}}}}
+
-->{{#if:{{{6|}}}|{{Deck List Row|{{{6}}}}}}}<!--
{{Deck List Row|{{{13}}}|{{{14}}}}}
+
-->{{#if:{{{7|}}}|{{Deck List Row|{{{7}}}}}}}<!--
{{Deck List Row|{{{15}}}|{{{16}}}}}
+
-->{{#if:{{{8|}}}|{{Deck List Row|{{{8}}}}}}}<!--
{{Deck List Row|{{{17}}}|{{{18}}}}}
+
-->{{#if:{{{9|}}}|{{Deck List Row|{{{9}}}}}}}<!--
{{Deck List Row|{{{19}}}|{{{20}}}}}
+
-->{{#if:{{{10|}}}|{{Deck List Row|{{{10}}}}}}}<!--
 +
-->{{#if:{{{11|}}}|{{Deck List Row|{{{11}}}}}}}<!--
 +
-->{{#if:{{{12|}}}|{{Deck List Row|{{{12}}}}}}}
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 08:52, 15 March 2019

Usage

The Deck List template displays the contents of a deck in a table with sortable columns. When used in event descriptions, it is often coupled with the Template:Enemy Stats Template.

The only parameter is the card name. It must match the corresponding card template name.

Example

The following shorthand:

{{Deck List
|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:

Card name Type Cost Color Rarity Set 
Champion of Wits Creatures (2/1) 9 Blue Rare Hour of Devastation HOU Legacy 
Ominous Sphinx Creatures (6/6) 22 Blue Rare Hour of Devastation HOU Legacy 
The Locust God Creatures (8/8) 22 BlueRed Mythic Hour of Devastation HOU Legacy 
Unesh, Criosphinx Sovereign Creatures (8/8) 16 Blue Mythic Hour of Devastation HOU Legacy 
Vizier of the Anointed Creatures (4/6) 10 Blue Rare Hour of Devastation HOU Legacy 
Endless Sands Spells 12 Colorless Rare Hour of Devastation HOU Legacy 
Imaginary Threats Spells 5 Blue Rare Hour of Devastation HOU Legacy 
Kefnet's Last Word Spells 11 Blue Rare Hour of Devastation HOU Legacy 
Riddleform Supports (2) 7 Blue Uncommon Hour of Devastation HOU Legacy 
Swarm Intelligence Supports (4) 13 Blue Mythic Hour of Devastation HOU Legacy