Difference between revisions of "Template:Decklist"
Cheesedude (talk | contribs) (oh) |
m |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- | |
− | + | // There could be multiple Decks on the page. This counter is used to distinguish them. | |
− | + | // Each time this template is used on a page, this number will increase by 1. | |
− | + | -->{{ #vardefine: $decklist-counter | {{ #expr: {{ #var: $decklist-counter | 0 }} + 1 }} }}<!-- | |
− | | | ||
− | |||
− | | | + | // This number is used to count each card in the Deck. |
− | | | + | // It will increase by 1 for each card and reset if the template is used multiple times. |
− | #if: {{{ | + | -->{{ #vardefine: $decklist-card-counter | 0 }}<!-- |
− | | {{ | + | |
− | #if: {{{normal monsters<includeonly>|</includeonly>}}} | | + | // Whether or not to store SMW properties |
− | + | -->{{ #vardefine: $decklist-store-properties | {{ #if: {{NAMESPACE}} || {{{store_properties|}}} }} }}<!-- | |
− | {{{normal monsters}}} | + | |
− | + | // Name of the Decklist, can come from a named or unnamed parameter. | |
− | + | -->{{ #vardefine: $name | {{ #if: {{{name<includeonly>|</includeonly>}}} | {{{name}}} | {{{1|}}} }} }}<!-- | |
− | + | ||
− | {{{effect monsters}}} | + | // Blank this variable at the beginning. Fill it in, if the Deck has at least one card. |
− | + | -->{{ #vardefine: $decklist-has-cards | }}<!-- | |
− | #if: {{{toon monsters<includeonly>|</includeonly>}}} | | + | |
− | + | // Flag for checking if Decklist has an associated Skill(s) | |
− | {{{toon monsters}}} | + | -->{{ #vardefine: $decklist-has-skill | {{#if: {{{skill<includeonly>|</includeonly>}}} | 1 }} }}<!-- |
− | + | ||
− | + | // Flags for checking if the Main Deck has monsters, Spells, or Traps, of any variety. | |
− | + | -->{{ #vardefine: $decklist-has-main-monsters | {{ #if: {{{monsters<includeonly>|</includeonly>}}}{{{normal monsters|}}}{{{effect monsters|}}}{{{flip monsters|}}}{{{toon monsters|}}}{{{spirit monsters|}}}{{{union monsters|}}}{{{gemini monsters|}}}{{{tuner monsters|}}}{{{dark tuner monsters|}}}{{{pendulum monsters|}}}{{{maximum monsters|}}}{{{ritual monsters|}}}{{{other monsters|}}} | 1 }} }}<!-- | |
− | {{{spirit monsters}}} | + | |
− | + | -->{{ #vardefine: $decklist-has-main-spells | {{ #if: {{{spells<includeonly>|</includeonly>}}}{{{normal spells|}}}{{{equip spells|}}}{{{field spells|}}}{{{ritual spells|}}}{{{continuous spells|}}}{{{quick-play spells|}}}{{{link spells|}}} | 1 }} }}<!-- | |
− | + | ||
− | + | -->{{ #vardefine: $decklist-has-main-traps | {{ #if: {{{traps<includeonly>|</includeonly>}}}{{{normal traps|}}}{{{counter traps|}}}{{{continuous traps|}}} | 1 }} }}<!-- | |
− | {{{union monsters}}} | + | |
− | + | // =============== \\ | |
− | + | Extra Deck | |
− | + | \\ ================ // | |
− | {{{gemini monsters}}} | + | |
− | + | -->{{ #vardefine: $decklist-location | Extra Deck }}<!-- | |
− | #if: {{{tuner monsters<includeonly>|</includeonly>}}} | | + | |
− | + | -->{{ #vardefine: $decklist-extra | |
− | {{{tuner monsters}}} | + | | {{ #if: {{{fusion monsters<includeonly>|</includeonly>}}}{{{synchro monsters|}}}{{{dark synchro monsters|}}}{{{xyz monsters|}}}{{{link monsters|}}}{{{other extra deck monsters|}}} |
− | + | | {{Decklist/Deck | |
− | #if: {{{ | + | | title = {{ #if: {{{magic|}}}{{{has_fusion_deck|}}} | [[Extra Deck|Fusion Deck]] | [[Extra Deck]] }} |
− | + | | total = {{{total me<includeonly>|</includeonly>}}} | |
− | {{{ | + | | column1 = {{ #if: {{{fusion monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Fusion Monster]]s |cards = {{{fusion monsters}}}}} }} |
− | + | | column2 = {{ #if: {{{synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Synchro Monster]]s |cards = {{{synchro monsters}}}}} }}<!-- | |
− | #if: {{{dark | + | -->{{ #if: {{{dark synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Dark Synchro Monster]]s|cards = {{{dark synchro monsters}}}}} }} |
− | + | | column3 = {{ #if: {{{xyz monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Xyz Monster]]s |cards = {{{xyz monsters}}}}} }} | |
− | {{{dark | + | | column4 = {{ #if: {{{link monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Link Monster]]s |cards = {{{link monsters}}}}} }}<!-- |
− | + | -->{{ #if: {{{other extra deck monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = Other |cards = {{{other extra deck monsters}}}}} }} | |
− | #if: {{{ | + | }} |
− | + | }} | |
− | {{{ | + | }}<!-- |
− | + | ||
− | + | // =============== \\ | |
− | + | Side Deck | |
− | {{{other monsters}}} | + | \\ ================ // |
− | }}{{ | + | |
− | #if: {{{ | + | -->{{ #vardefine: $decklist-location | Side Deck }}<!-- |
− | + | ||
+ | -->{{ #vardefine: $decklist-side | ||
+ | | {{ #if: {{{side monsters<includeonly>|</includeonly>}}}{{{side normal monsters|}}}{{{side effect monsters|}}}{{{side flip monsters|}}}{{{side toon monsters|}}}{{{side spirit monsters|}}}{{{side union monsters|}}}{{{side gemini monsters|}}}{{{side tuner monsters|}}}{{{side dark tuner monsters|}}}{{{side pendulum monsters|}}}{{{side maximum monsters|}}}{{{side ritual monsters|}}}{{{side fusion monsters|}}}{{{side synchro monsters|}}}{{{side dark synchro monsters|}}}{{{side xyz monsters|}}}{{{side link monsters|}}}{{{other side deck monsters|}}}{{{side spells|}}}{{{side magic|}}}{{{side traps|}}} | ||
+ | | {{Decklist/Deck | ||
+ | | title = [[Side Deck]] | ||
+ | | column1 = <!-- | ||
+ | -->{{ #if: {{{side monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Monster Card]]s |cards = {{{side monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side normal monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Normal Monster]]s |cards = {{{side normal monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side effect monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Effect Monster]]s |cards = {{{side effect monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side flip monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Flip monster]]s |cards = {{{side flip monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side toon monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Toon monster]]s |cards = {{{side toon monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side spirit monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Spirit monster]]s |cards = {{{side spirit monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side union monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Union monster]]s |cards = {{{side union monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side gemini monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Gemini monster]]s |cards = {{{side gemini monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side tuner monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Tuner monster]]s |cards = {{{side tuner monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side dark tuner monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Dark Tuner monster]]s |cards = {{{side dark tuner monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side pendulum monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Pendulum Monster]]s |cards = {{{side pendulum monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side maximum monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Maximum Monster]]s |cards = {{{side maximum monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side ritual monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Ritual Monster]]s |cards = {{{side ritual monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side fusion monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Fusion Monster]]s |cards = {{{side fusion monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Synchro Monster]]s |cards = {{{side synchro monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side dark synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Dark Synchro Monster]]s |cards = {{{side dark synchro monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side xyz monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Xyz Monster]]s |cards = {{{side xyz monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{side link monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Link Monster]]s |cards = {{{side link monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{other side deck monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = Other monsters |cards = {{{other side deck monsters}}}}} }} | ||
+ | |||
+ | | column2 = {{Decklist/list | ||
+ | | title = {{ #if: {{{side spells<includeonly>|</includeonly>}}} | [[Spell Card]]s | [[Magic Card]]s }} | ||
+ | | cards = {{ #if: {{{side spells<includeonly>|</includeonly>}}} | {{{side spells}}} | {{{side magic|}}} }} | ||
+ | }} | ||
+ | |||
+ | | column3 = {{ #if: {{{side traps<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Trap Card]]s|cards = {{{side traps}}}}} }} | ||
+ | }} | ||
}} | }} | ||
− | | {{ | + | }}<!-- |
− | #if: {{{monsters|}}} | + | |
− | | | + | // ================ \\ |
− | {{{monsters}}} | + | Main Deck |
+ | \\ ================ // | ||
+ | |||
+ | -->{{ #vardefine: $decklist-location | Main Deck }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $decklist-has-non-main | {{ #if: {{ #var: $decklist-extra }}{{ #var: $decklist-side }} | 1 }} }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $decklist-main | ||
+ | | {{Decklist/Deck | ||
+ | | title = {{ #if: {{ #var: $decklist-has-non-main }} | [[Main Deck]] }} | ||
+ | | column1 = <!-- | ||
+ | -->{{Decklist/list | ||
+ | | title = [[Monster Card]]s | ||
+ | | total = {{{total m<includeonly>|</includeonly>}}} | ||
+ | | force_title = {{ #var: $decklist-has-main-monsters }} | ||
+ | | cards = {{{monsters<includeonly>|</includeonly>}}} | ||
+ | }}<!-- | ||
+ | -->{{ #if: {{{normal monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Normal Monster]]s |cards = {{{normal monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{effect monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Effect Monster]]s |cards = {{{effect monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{flip monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Flip monster]]s |cards = {{{flip monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{toon monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Toon monster]]s |cards = {{{toon monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{spirit monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Spirit monster]]s |cards = {{{spirit monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{union monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Union monster]]s |cards = {{{union monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{gemini monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Gemini monster]]s |cards = {{{gemini monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{tuner monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Tuner monster]]s |cards = {{{tuner monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{dark tuner monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Dark Tuner monster]]s |cards = {{{dark tuner monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{pendulum monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Pendulum Monster]]s |cards = {{{pendulum monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{maximum monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Maximum Monster]]s |cards = {{{maximum monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{ritual monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Ritual Monster]]s |cards = {{{ritual monsters}}}}} }}<!-- | ||
+ | -->{{ #if: {{{other monsters<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = Other monsters |cards = {{{other monsters}}}}} }} | ||
+ | |||
+ | | column2 = {{Decklist/list | ||
+ | | title = {{ #if: {{{magic<includeonly>|</includeonly>}}} | [[Magic Card]]s | [[Spell Card]]s }} | ||
+ | | total = {{{total s<includeonly>|</includeonly>}}} | ||
+ | | force_title = {{ #var: $decklist-has-main-spells }} | ||
+ | | cards = {{ #if: {{{spells<includeonly>|</includeonly>}}} | {{{spells}}} | {{{magic|}}} }} | ||
+ | }}<!-- | ||
+ | -->{{ #if: {{{normal spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Normal Spell]]s |cards = {{{normal spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{equip spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Equip Spell]]s |cards = {{{equip spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{field spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Field Spell]]s |cards = {{{field spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{ritual spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Ritual Spell]]s |cards = {{{ritual spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{continuous spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Continuous Spell]]s |cards = {{{continuous spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{quick-play spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Quick-Play Spell]]s |cards = {{{quick-play spells}}}}} }}<!-- | ||
+ | -->{{ #if: {{{link spells<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Link Spell]]s |cards = {{{link spells}}}}} }} | ||
+ | |||
+ | | column3 = {{Decklist/list | ||
+ | | title = [[Trap Card]]s | ||
+ | | total = {{{total t<includeonly>|</includeonly>}}} | ||
+ | | force_title = {{ #var: $decklist-has-main-traps }} | ||
+ | | cards = {{{traps<includeonly>|</includeonly>}}} | ||
+ | }}<!-- | ||
+ | -->{{ #if: {{{normal traps<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Normal Trap]]s |cards = {{{normal traps}}}}} }}<!-- | ||
+ | -->{{ #if: {{{counter traps<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Counter Trap]]s |cards = {{{counter traps}}}}} }}<!-- | ||
+ | -->{{ #if: {{{continuous traps<includeonly>|</includeonly>}}} | {{Decklist/list|subtitle = [[Continuous Trap]]s |cards = {{{continuous traps}}}}} }} | ||
+ | |||
+ | | column4 = <!-- | ||
+ | -->{{ #if: {{{other<includeonly>|</includeonly>}}} | {{Decklist/list|title = Other cards |cards = {{{other}}}|total={{{total o<includeonly>|</includeonly>}}}}} }}<!-- | ||
+ | -->{{ #if: {{{tokens<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Monster Token|Tokens]] |cards = {{{tokens}}}}} }}<!-- | ||
+ | -->{{ #if: {{{equips<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Equip Card]]s |cards = {{{equips}}}}} }}<!-- | ||
+ | -->{{ #if: {{{illusions<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Illusion Card]]s |cards = {{{illusions}}}}} }}<!-- | ||
+ | -->{{ #if: {{{smpus<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Slot Machine Power Unit]]s |cards = {{{smpus}}}}} }}<!-- | ||
+ | -->{{ #if: {{{viruses<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Virus Card]]s |cards = {{{viruses}}}}} }}<!-- | ||
+ | -->{{ #if: {{{hybrids<includeonly>|</includeonly>}}} | {{Decklist/list|title = Hybrid cards |cards = {{{hybrids}}}}} }}<!-- | ||
+ | -->{{ #if: {{{unknowns<includeonly>|</includeonly>}}} | {{Decklist/list|title = Unknown |cards = {{{unknowns}}}}} }} | ||
}} | }} | ||
− | }} | + | }}<!-- |
+ | |||
+ | // =================== \\ | ||
+ | Display everything | ||
+ | \\ =================== // | ||
+ | |||
+ | --><templatestyles src="Template:Decklist/styles.css" /><!-- | ||
+ | |||
+ | --><div class="decklist decklist-sandbox {{ #if: {{ #var: $decklist-has-non-main }} || decklist-main-only }}"><!-- | ||
+ | -->{{Collapse top | ||
+ | | bg = #337C97 | ||
+ | | fc = white | ||
+ | | title = {{ #replace: {{ #var: $name | Deck }} | !! | !! }}<!-- remove this #replace after {{Collapse top}}/{{Collapse bottom}} are changed to not break with !! in input -->{{ #if: {{{level<includeonly>|</includeonly>}}} | ||
+ | |  {{explain|★{{{level}}}|Level {{{level}}}}} | ||
+ | }} | ||
+ | | border2 = {{ #if: {{ #var: $decklist-has-non-main }} | 0 | 1px silver }} | ||
+ | | padding = {{ #if: {{ #var: $decklist-has-non-main }} | 0 1px 1px | .6em }} | ||
+ | | expand = {{ #if: {{ #var: $decklist-has-non-main }} | yes }} | ||
+ | }}<!-- | ||
+ | -->{{ #if: {{{ja_name<includeonly>|</includeonly>}}} | ||
+ | | <div style="text-align: center; font-size: .85724em;">'''Japanese''': {{{ja_name}}} {{ #if: {{{romaji_name<includeonly>|</includeonly>}}} | ||
+ | | · '''''Rōmaji''''': ''{{{romaji_name}}}'' | ||
+ | }} {{ #if: {{{ja_trans_name<includeonly>|</includeonly>}}} | ||
+ | | · '''Translated''': {{{ja_trans_name}}} | ||
+ | }}</div> | ||
+ | }}{{ #if: {{{description<includeonly>|</includeonly>}}} | ||
+ | | <div style="text-align: center;">{{{description}}}</div> | ||
+ | }}{{ #if: {{{skill<includeonly>|</includeonly>}}} | ||
+ | | <div style="text-align: center;">'''[[Skill Card]]:''' <div class="hlist" style="display: inline-block;"> | ||
+ | {{{skill}}}</div></div> | ||
+ | }}<!-- | ||
+ | -->{{ #var: $decklist-main }}<!-- | ||
+ | -->{{ #var: $decklist-extra }}<!-- | ||
+ | -->{{ #var: $decklist-side }} | ||
+ | {{Collapse bottom}} | ||
+ | </div><!-- | ||
+ | |||
+ | // =================== \\ | ||
+ | Semantic properties | ||
+ | \\ =================== // | ||
− | + | // Subobject containing properties of the Deck itself. | |
− | | | + | // The `/list` subtemplate will add more subobjects for each card, which link to this subobject. |
− | + | -->{{ #if: {{ #var: $decklist-store-properties }} | |
− | | {{ | + | | {{ #subobject: Decklist-{{ #var: $decklist-counter }} |
− | + | | English name = {{ #var: $name | Deck }} | |
− | + | | Japanese name = {{{ja_name|}}} | |
− | {{{ | + | | Romaji name = {{{romaji_name|}}} |
− | + | | Translated Japanese name = {{{ja_trans_name|}}} | |
− | + | | Deck Level = {{{level|}}} | |
− | + | | Owner = {{ #if: {{{owner|}}} | {{{owner}}} | {{PAGENAME}} }} | |
− | {{{ | + | | Owner name = {{ #if: {{{owner_name|}}} |
− | + | | {{{owner_name}}} | |
− | + | | {{Strip disambiguation|{{ #if: {{{owner|}}} | {{{owner}}} | {{PAGENAME}} }}}} | |
− | + | }} | |
− | {{{ | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | }} | + | }}<!-- |
+ | |||
+ | // ================== \\ | ||
+ | Tracking categories | ||
+ | \\ =================== // | ||
+ | |||
+ | // Flag if a Deck has no cards. | ||
+ | -->{{ #if: {{ #var: $decklist-has-cards }} || [[Category:Empty ((Decklist)) transclusions]] }}<!-- | ||
+ | |||
+ | // Removed parameters | ||
+ | -->{{ #if: {{{color|}}}{{{Color|}}} | ||
+ | | [[Category:((Decklist)) transclusions using color]] | ||
+ | | {{ #ifeq: {{{color|¬}}}{{{Color|¬}}} | ¬¬ || [[Category:((Decklist)) transclusions with empty color parameter]] }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #if: {{{color2|}}}{{{Color2|}}} | ||
+ | | [[Category:((Decklist)) transclusions using color2]] | ||
+ | | {{ #ifeq: {{{color2|¬}}}{{{Color2|¬}}} | ¬¬ || [[Category:((Decklist)) transclusions with empty color2 parameter]] }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #ifeq: {{{total m|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total m"]] }}<!-- | ||
+ | -->{{ #ifeq: {{{total me|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total me"]] }}<!-- | ||
+ | -->{{ #ifeq: {{{total s|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total s"]] }}<!-- | ||
+ | -->{{ #ifeq: {{{total t|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total t"]] }}<!-- | ||
+ | -->{{ #ifeq: {{{total o|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total o"]] }}<!-- | ||
+ | -->{{ #ifeq: {{{total_other|¬}}} | ¬ || [[Category:((Decklist)) transclusions using "total_other"]] }}<!-- | ||
− | + | // Clear variables | |
− | + | -->{{ #vardefine: $decklist-location | }}<!-- | |
− | | | + | // Check for unknown parameters |
− | | | + | -->{{ #invoke: Check for unknown parameters | check |
+ | | unknown = [[Category:Pages using unknown parameter(s) for ((Decklist))]] | ||
+ | | showblankpositional = 1 | ||
+ | | preview = unknown <nowiki>{{Decklist}}</nowiki> parameter "_VALUE_" | ||
+ | | 1 | name | store_properties | has_fusion_deck | ||
+ | | color | Color | color2 | Color2 | ||
+ | | level | ja_name | romaji_name | ja_trans_name | owner | owner_name | description | skill | ||
+ | | total m | total me | total s | total t | total o | total_other | ||
+ | | monsters | normal monsters | effect monsters | flip monsters | toon monsters | spirit monsters | union monsters | gemini monsters | tuner monsters | dark tuner monsters | pendulum monsters | maximum monsters | ritual monsters | other monsters | ||
+ | | fusion monsters | synchro monsters | dark synchro monsters | xyz monsters | link monsters | other extra deck monsters | ||
+ | | spells | magic | normal spells | equip spells | field spells | ritual spells | continuous spells | quick-play spells | link spells | ||
+ | | traps | normal traps | counter traps | continuous traps | ||
+ | | other | equips | illusions | smpus | viruses | hybrids | tokens | unknowns | ||
+ | | side monsters | side normal monsters | side effect monsters | side flip monsters | side toon monsters | side spirit monsters | side union monsters | side gemini monsters | side tuner monsters | side dark tuner monsters | side pendulum monsters | side maximum monsters | side ritual monsters | side fusion monsters | side synchro monsters | side dark synchro monsters | side xyz monsters | side link monsters | other side deck monsters | ||
+ | | side spells | side magic | side traps | ||
+ | }}<!-- | ||
− | + | --><noinclude>{{documentation}}</noinclude> | |
− | |||
− | |||
− | |||
− | {{documentation}} | ||
− | </noinclude> |
Latest revision as of 12:55, 26 March 2024
{{{name}}} ★{{{level}}}
| ||||||
---|---|---|---|---|---|---|
Japanese: {{{ja_name}}} · Rōmaji: {{{romaji_name}}} · Translated: {{{ja_trans_name}}} {{{description}}} Skill Card:
{{{skill}}}
|
Usage[edit]
{{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[edit]
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: