Difference between revisions of "Template:Decklist"
Dinoguy1000 (talk | contribs) (+Link Monsters) |
Dinoguy1000 (talk | contribs) (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
|
|
|
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: