Difference between revisions of "Template:Decklist"
Cheesedude (talk | contribs) (oh) |
Dinoguy1000 (talk | contribs) (tweak "total m"/"total me" logic; show count parameters here) |
||
Line 6: | Line 6: | ||
| title = {{ #if: {{{1|}}} | {{{1}}} | Deck }} | | title = {{ #if: {{{1|}}} | {{{1}}} | Deck }} | ||
− | | list1title = [[Monster Card|Monsters]] {{ #if: {{{total m|}}} | ({{{total m}}}{{ #if: {{{total me|}}} | , {{{total me|}}} }}) }} | + | | list1title = [[Monster Card|Monsters]] {{ #if: {{{total m<includeonly>|</includeonly>}}}{{{total me|}}} | ({{ #if: {{{total m<includeonly>|</includeonly>}}} | {{{total m}}}{{ #if: {{{total me<includeonly>|</includeonly>}}} | ,  }}{{{total me<includeonly>|</includeonly>}}} }}) }} |
| list1 = {{ | | list1 = {{ | ||
#if: {{{normal monsters<includeonly>|</includeonly>}}}{{{effect monsters|}}}{{{toon monsters|}}}{{{spirit monsters|}}}{{{union monsters|}}}{{{gemini monsters|}}}{{{tuner monsters|}}}{{{pendulum monsters|}}}{{{dark tuner monsters|}}}{{{ritual monsters|}}}{{{other monsters|}}} | #if: {{{normal monsters<includeonly>|</includeonly>}}}{{{effect monsters|}}}{{{toon monsters|}}}{{{spirit monsters|}}}{{{union monsters|}}}{{{gemini monsters|}}}{{{tuner monsters|}}}{{{pendulum monsters|}}}{{{dark tuner monsters|}}}{{{ritual monsters|}}}{{{other monsters|}}} | ||
Line 64: | Line 64: | ||
}} | }} | ||
− | | list1r2title = {{#ifeq: {{{style|}}} | previous| | + | | list1r2title = [[{{ #ifeq: {{{style|}}} | previous | Fusion | Extra }} Deck]] {{ #if: {{{total e<includeonly>|</includeonly>}}} |({{{total e}}}) }} |
| list1r2 = {{ | | list1r2 = {{ | ||
#if: {{{fusion monsters<includeonly>|</includeonly>}}}{{{synchro monsters|}}}{{{xyz monsters|}}}{{{dark synchro monsters|}}} | #if: {{{fusion monsters<includeonly>|</includeonly>}}}{{{synchro monsters|}}}{{{xyz monsters|}}}{{{dark synchro monsters|}}} | ||
Line 86: | Line 86: | ||
}} | }} | ||
− | | list2title = [[Spell Card|{{ #if: {{{spells<includeonly>|</includeonly>}}} | Spells | Magic }}]] {{ #if: {{{total s|}}} | ({{{total s}}}) }} | + | | list2title = [[Spell Card|{{ #if: {{{spells<includeonly>|</includeonly>}}} | Spells | Magic }}]] {{ #if: {{{total s<includeonly>|</includeonly>}}} | ({{{total s}}}) }} |
| list2 = {{ #if: {{{spells<includeonly>|</includeonly>}}} | {{{spells}}} | {{{magic<includeonly>|</includeonly>}}} }} | | list2 = {{ #if: {{{spells<includeonly>|</includeonly>}}} | {{{spells}}} | {{{magic<includeonly>|</includeonly>}}} }} | ||
− | | list3title = [[Trap Card|Traps]] {{ #if: {{{total t|}}} | ({{{total t}}}) }} | + | | list3title = [[Trap Card|Traps]] {{ #if: {{{total t<includeonly>|</includeonly>}}} | ({{{total t}}}) }} |
| list3 = {{{traps<includeonly>|</includeonly>}}} | | list3 = {{{traps<includeonly>|</includeonly>}}} | ||
− | | list4title = Other cards {{ #if: {{{total o|}}} | ({{{total o}}}) }} | + | | list4title = Other cards {{ #if: {{{total o<includeonly>|</includeonly>}}} | ({{{total o}}}) }} |
| list4 = {{{other<includeonly>|</includeonly>}}} | | list4 = {{{other<includeonly>|</includeonly>}}} | ||
}} | }} |
Revision as of 20:54, 1 April 2014
|
|
|
Usage
{{Decklist | color = | color2 = | normal monsters = | effect monsters = | toon monsters = | spirit monsters = | union monsters = | gemini monsters = | tuner monsters = | pendulum monsters = | dark tuner monsters = | ritual monsters = | fusion monsters = | synchro monsters = | xyz monsters = | dark synchro monsters = | spells = | traps = }}
At least one monster type parameter or spells or traps must be included.
Optional parameters
- color: custom background color.
- color2: custom text color.
- total m: The number of Monster Cards.
- total me: The number of Monster Cards in the Extra Deck.
- total s: The number of Spell Cards.
- total t: The number of Trap Cards.
- An unnamed parameter can be used as a custom Deck name.
Example
Adding the following to a page...
{{Decklist|Warrior Deck | color = orange | color2 = white | normal monsters = * [[Celtic Guardian]] x2 | effect monsters = * [[Buster Blader]] * [[Exiled Force]] | spells = * [[Reinforcement of the Army]] * [[Monster Reborn]] | traps = * [[Trap Hole]] }}
... produces the following: