Difference between revisions of "Template:CardTable2/effect"

From Yugipedia
Jump to: navigation, search
(simplify with Ext:Arrays)
(show the shorter name in Property:Effect type; display a sample of monster and card type-agnostic effect types here)
Line 1: Line 1:
 
{{ #vardefine: $mst | {{ #if: {{{2|}}} | -like }}
 
{{ #vardefine: $mst | {{ #if: {{{2|}}} | -like }}
}}{{ #arraydefine: @effects | {{{1|}}}
+
}}{{ #arraydefine: @effects | {{{1|<noinclude>activation, condition, continuous, cost, effect, flip, ignition, maintenance, quick, summon, trigger</noinclude>}}}
 
}}{{ #arraydefine: @effects | {{ #arrayprint: @effects | , | $effect
 
}}{{ #arraydefine: @effects | {{ #arrayprint: @effects | , | $effect
 
     | {{ #switch: {{ #ifeq: $effect | effect | effect | {{ #replace: $effect | effect }} }}
 
     | {{ #switch: {{ #ifeq: $effect | effect | effect | {{ #replace: $effect | effect }} }}
Line 18: Line 18:
 
   }}
 
   }}
 
}}{{ #arrayprint: @effects | ,&#32; | $effect
 
}}{{ #arrayprint: @effects | ,&#32; | $effect
   | [[{{ #explode: $effect | / }}|{{ #if: {{ #pos: $effect | / }} | {{ #explode: $effect | / | 1 }} | $effect }}]]{{IfSemantics
+
   | {{IfSemantics
    | [[Effect type::{{ #explode: $effect | / }}| ]][[Effect type Text::{{ #explode: $effect | / }}| ]]{{ #if: {{ #var: $mst }} || {{ #ifeq: {{ #explode: $effect | / }} | Flip effect
+
    | [[Effect type::{{ #explode: $effect | / }}|{{ #if: {{ #pos: $effect | / }} | {{ #explode: $effect | / | 1 }} | $effect }}]][[Effect type Text::{{ #explode: $effect | / }}| ]]{{ #if: {{ #var: $mst }} || {{ #ifeq: {{ #explode: $effect | / }} | Flip effect
      | [[Flip Monster::Yes| ]]
+
        | [[Flip Monster::Yes| ]]
     }} }}
+
      }}
 +
     }}
 +
    | [[{{ #explode: $effect | / }}|{{ #if: {{ #pos: $effect | / }} | {{ #explode: $effect | / | 1 }} | $effect }}]]
 
   }}
 
   }}
 
}}
 
}}

Revision as of 08:55, 28 March 2015