Latest revision |
Your text |
Line 1: |
Line 1: |
− | <!-- | + | {{ |
− | // There could be multiple Decks on the page. This counter is used to distinguish them.
| + | #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|}}}{{{dark synchro monsters|}}}{{{other monsters|}}}{{{spells|}}}{{{magic|}}}{{{traps|}}}{{{other|}}} |
− | // Each time this template is used on a page, this number will increase by 1.
| + | | {{Listbox |
− | -->{{ #vardefine: $decklist-counter | {{ #expr: {{ #var: $decklist-counter | 0 }} + 1 }} }}<!--
| + | | background = {{{color|}}} |
| + | | color = {{{color2|}}} |
| + | | title = {{ #if: {{{1|}}} | {{{1}}} | Deck }} |
| | | |
− | // This number is used to count each card in the Deck.
| + | | list1title = [[Monster Card|Monsters]] {{ #if: {{{total m|}}} | ({{{total m}}}{{ #if: {{{total me|}}} | , {{{total me|}}} }}) }} |
− | // It will increase by 1 for each card and reset if the template is used multiple times.
| + | | list1 = {{ |
− | -->{{ #vardefine: $decklist-card-counter | 0 }}<!--
| + | #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|}}} |
− | | + | | {{ |
− | // Whether or not to store SMW properties
| + | #if: {{{normal monsters<includeonly>|</includeonly>}}} | |
− | -->{{ #vardefine: $decklist-store-properties | {{ #if: {{NAMESPACE}} || {{{store_properties|}}} }} }}<!--
| + | ; [[Normal Monster]]s |
− | | + | {{{normal monsters}}} |
− | // Name of the Decklist, can come from a named or unnamed parameter.
| + | }}{{ |
− | -->{{ #vardefine: $name | {{ #if: {{{name<includeonly>|</includeonly>}}} | {{{name}}} | {{{1|}}} }} }}<!--
| + | #if: {{{effect monsters<includeonly>|</includeonly>}}} | |
− | | + | ; [[Effect Monster]]s |
− | // Blank this variable at the beginning. Fill it in, if the Deck has at least one card.
| + | {{{effect monsters}}} |
− | -->{{ #vardefine: $decklist-has-cards | }}<!--
| + | }}{{ |
− | | + | #if: {{{toon monsters<includeonly>|</includeonly>}}} | |
− | // Flag for checking if Decklist has an associated Skill(s)
| + | ; [[Toon Monster]]s |
− | -->{{ #vardefine: $decklist-has-skill | {{#if: {{{skill<includeonly>|</includeonly>}}} | 1 }} }}<!--
| + | {{{toon monsters}}} |
− | | + | }}{{ |
− | // Flags for checking if the Main Deck has monsters, Spells, or Traps, of any variety.
| + | #if: {{{spirit monsters<includeonly>|</includeonly>}}} | |
− | -->{{ #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 monster]]s |
− | | + | {{{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 }} }}<!--
| + | }}{{ |
− | | + | #if: {{{union monsters<includeonly>|</includeonly>}}} | |
− | -->{{ #vardefine: $decklist-has-main-traps | {{ #if: {{{traps<includeonly>|</includeonly>}}}{{{normal traps|}}}{{{counter traps|}}}{{{continuous traps|}}} | 1 }} }}<!--
| + | ; [[Union Monster]]s |
− | | + | {{{union monsters}}} |
− | // =============== \\
| + | }}{{ |
− | Extra Deck
| + | #if: {{{gemini monsters<includeonly>|</includeonly>}}} | |
− | \\ ================ //
| + | ; [[Gemini monster]]s |
− | | + | {{{gemini monsters}}} |
− | -->{{ #vardefine: $decklist-location | Extra Deck }}<!--
| + | }}{{ |
− | | + | #if: {{{tuner monsters<includeonly>|</includeonly>}}} | |
− | -->{{ #vardefine: $decklist-extra
| + | ; [[Tuner monster]]s |
− | | {{ #if: {{{fusion monsters<includeonly>|</includeonly>}}}{{{synchro monsters|}}}{{{dark synchro monsters|}}}{{{xyz monsters|}}}{{{link monsters|}}}{{{other extra deck monsters|}}} | + | {{{tuner monsters}}} |
− | | {{Decklist/Deck
| + | }}{{ |
− | | title = {{ #if: {{{magic|}}}{{{has_fusion_deck|}}} | [[Extra Deck|Fusion Deck]] | [[Extra Deck]] }}
| + | #if: {{{pendulum monsters<includeonly>|</includeonly>}}} | |
− | | total = {{{total me<includeonly>|</includeonly>}}}
| + | ; [[Pendulum Monster]]s |
− | | column1 = {{ #if: {{{fusion monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Fusion Monster]]s |cards = {{{fusion monsters}}}}} }}
| + | {{{pendulum monsters}}} |
− | | column2 = {{ #if: {{{synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Synchro Monster]]s |cards = {{{synchro monsters}}}}} }}<!--
| + | }}{{ |
− | -->{{ #if: {{{dark synchro monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Dark Synchro Monster]]s|cards = {{{dark synchro monsters}}}}} }}
| + | #if: {{{dark tuner monsters<includeonly>|</includeonly>}}} | |
− | | column3 = {{ #if: {{{xyz monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Xyz Monster]]s |cards = {{{xyz monsters}}}}} }}
| + | ; [[Dark Tuner monster]]s |
− | | column4 = {{ #if: {{{link monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = [[Link Monster]]s |cards = {{{link monsters}}}}} }}<!--
| + | {{{dark tuner monsters}}} |
− | -->{{ #if: {{{other extra deck monsters<includeonly>|</includeonly>}}} | {{Decklist/list|title = Other |cards = {{{other extra deck monsters}}}}} }}
| + | }}{{ |
− | }}
| + | #if: {{{ritual monsters<includeonly>|</includeonly>}}} | |
− | }} | + | ; [[Ritual Monster]]s |
− | }}<!--
| + | {{{ritual monsters}}} |
− | | + | }}{{ |
− | // =============== \\
| + | #if: {{{other monsters<includeonly>|</includeonly>}}} | |
− | Side Deck
| + | ; Other |
− | \\ ================ //
| + | {{{other monsters}}} |
− | | + | }}{{ |
− | -->{{ #vardefine: $decklist-location | Side Deck }}<!--
| + | #if: {{{monsters|}}} |
− | | + | | [[Category:Decklist transclusions with duplicate parameters]] |
− | -->{{ #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|}}} |
− | // ================ \\
| + | | |
− | Main Deck
| + | {{{monsters}}} |
− | \\ ================ //
| |
− | | |
− | -->{{ #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.
| + | | list1r2title = {{#ifeq: {{{style|}}} | previous| [[Fusion Deck]] | [[Extra Deck]]}} {{ #if: {{{total e|}}} |({{{total e}}}) }} |
− | // The `/list` subtemplate will add more subobjects for each card, which link to this subobject.
| + | | list1r2 = {{ |
− | -->{{ #if: {{ #var: $decklist-store-properties }}
| + | #if: {{{fusion monsters<includeonly>|</includeonly>}}}{{{synchro monsters|}}}{{{xyz monsters|}}}{{{dark synchro monsters|}}} |
− | | {{ #subobject: Decklist-{{ #var: $decklist-counter }} | + | | {{ |
− | | English name = {{ #var: $name | Deck }}
| + | #if: {{{fusion monsters<includeonly>|</includeonly>}}} | |
− | | Japanese name = {{{ja_name|}}}
| + | ; [[Fusion Monster]]s |
− | | Romaji name = {{{romaji_name|}}}
| + | {{{fusion monsters}}} |
− | | Translated Japanese name = {{{ja_trans_name|}}}
| + | }}{{ |
− | | Deck Level = {{{level|}}}
| + | #if: {{{synchro monsters<includeonly>|</includeonly>}}} | |
− | | Owner = {{ #if: {{{owner|}}} | {{{owner}}} | {{PAGENAME}} }} | + | ; [[Synchro Monster]]s |
− | | Owner name = {{ #if: {{{owner_name|}}}
| + | {{{synchro monsters}}} |
− | | {{{owner_name}}}
| + | }}{{ |
− | | {{Strip disambiguation|{{ #if: {{{owner|}}} | {{{owner}}} | {{PAGENAME}} }}}}
| + | #if: {{{xyz monsters<includeonly>|</includeonly>}}} | |
− | }}
| + | ; [[Xyz Monster]]s |
| + | {{{xyz monsters}}} |
| + | }}{{ |
| + | #if: {{{dark synchro monsters<includeonly>|</includeonly>}}} | |
| + | ; [[Dark Synchro Monster]]s |
| + | {{{dark synchro monsters}}} |
| }} | | }} |
− | }}<!-- | + | }} |
− | | |
− | // ================== \\
| |
− | 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 | + | | list2title = [[Spell Card|{{ #if: {{{spells<includeonly>|</includeonly>}}} | Spells | Magic }}]] {{ #if: {{{total s|}}} | ({{{total s}}}) }} |
− | -->{{ #vardefine: $decklist-location | }}<!--
| + | | list2 = {{ #if: {{{spells<includeonly>|</includeonly>}}} | {{{spells}}} | {{{magic<includeonly>|</includeonly>}}} }} |
| | | |
− | // Check for unknown parameters
| + | | list3title = [[Trap Card|Traps]] {{ #if: {{{total t|}}} | ({{{total t}}}) }} |
− | -->{{ #invoke: Check for unknown parameters | check
| + | | list3 = {{{traps<includeonly>|</includeonly>}}} |
− | | 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>
| + | | list4title = Other cards {{ #if: {{{total o|}}} | ({{{total o}}}) }} |
| + | | list4 = {{{other<includeonly>|</includeonly>}}} |
| + | }} |
| + | }}<noinclude> |
| + | {{documentation}} |
| + | </noinclude> |