Difference between revisions of "Template:Decklist"

From Yugipedia
Jump to: navigation, search
(+Link Monsters)
(support capitalized variants of color parameters, since there seem to be some usages of them in the wild)
Line 1: Line 1:
 
{{ #if: {{{monsters<includeonly>|</includeonly>}}}{{{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|}}}{{{link monsters|}}}{{{dark synchro monsters|}}}{{{other monsters|}}}{{{other extra deck monsters|}}}{{{spells|}}}{{{magic|}}}{{{traps|}}}{{{other|}}}
 
{{ #if: {{{monsters<includeonly>|</includeonly>}}}{{{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|}}}{{{link monsters|}}}{{{dark synchro monsters|}}}{{{other monsters|}}}{{{other extra deck monsters|}}}{{{spells|}}}{{{magic|}}}{{{traps|}}}{{{other|}}}
 
   | {{Listbox
 
   | {{Listbox
| background = {{{color|}}}
+
| background = {{ #if: {{{Color|}}} | {{{Color}}} | {{{color|}}} }}
| color      = {{{color2|}}}
+
| color      = {{ #if: {{{Color2|}}} | {{{Color2}}} | {{{color2|}}} }}
 
| title      = {{ #if: {{{1|}}} | {{{1}}} | Deck }}
 
| title      = {{ #if: {{{1|}}} | {{{1}}} | Deck }}
 
| state      = {{{state|}}}
 
| state      = {{{state|}}}
Line 102: Line 102:
 
| list4title = Other cards {{ #if: {{{total o<includeonly>|</includeonly>}}} | ({{{total o}}}) }}
 
| list4title = Other cards {{ #if: {{{total o<includeonly>|</includeonly>}}} | ({{{total o}}}) }}
 
| list4      = {{{other<includeonly>|</includeonly>}}}
 
| list4      = {{{other<includeonly>|</includeonly>}}}
}}{{ #if: {{{color|}}}
+
}}{{ #if: {{{color|}}}{{{Color|}}}
 
   | [[Category:((Decklist)) transclusions using color]]
 
   | [[Category:((Decklist)) transclusions using color]]
   | {{ #ifeq: {{{color|¬}}} | ¬ || [[Category:((Decklist)) transclusions with empty color parameter]] }}
+
   | {{ #ifeq: {{{color|¬}}}{{{Color}}} | ¬¬ || [[Category:((Decklist)) transclusions with empty color parameter]] }}
}}{{ #if: {{{color2|}}}
+
}}{{ #if: {{{color2|}}}{{{Color2|}}}
 
   | [[Category:((Decklist)) transclusions using color2]]
 
   | [[Category:((Decklist)) transclusions using color2]]
   | {{ #ifeq: {{{color2|¬}}} | ¬ || [[Category:((Decklist)) transclusions with empty color2 parameter]] }}
+
   | {{ #ifeq: {{{color2|¬}}}{{{Color2}}} | ¬¬ || [[Category:((Decklist)) transclusions with empty color2 parameter]] }}
 
}}
 
}}
 
   | [[Category:Empty ((Decklist)) transclusions]]
 
   | [[Category:Empty ((Decklist)) transclusions]]

Revision as of 14:00, 22 June 2018

Deck
Monsters ({{{total m}}})
Normal Monsters

{{{normal monsters}}}

Effect Monsters

{{{effect monsters}}}

Toon Monsters

{{{toon monsters}}}

Spirit monsters

{{{spirit monsters}}}

Union Monsters

{{{union monsters}}}

Gemini monsters

{{{gemini monsters}}}

Tuner monsters

{{{tuner monsters}}}

Pendulum Monsters

{{{pendulum monsters}}}

Dark Tuner monsters

{{{dark tuner monsters}}}

Ritual Monsters

{{{ritual monsters}}}

Other

{{{other monsters}}}

Spells ({{{total s}}})

{{{spells}}}

Traps ({{{total t}}})

{{{traps}}}