Difference between revisions of "Template:DOR card/effects"

From Yugipedia
Jump to: navigation, search
(convert to Ext:Arrays)
Line 1: Line 1:
{{IfSemantics
+
{{ #arraydefine: @effects | {{ lc: {{{1<noinclude>|Attack, Destruction, Flip, Movement, Nature, Special Power Up</noinclude>}}} }}
| {{ #arraymap: {{{1}}}
+
}}{{ #arraydefine: @effects | {{ #arrayprint: @effects | , | $effect
  |,
+
    | {{ #switch: {{ #ifeq: $effect | effect | effect | {{ #replace: $effect | effect }} }}
  |$type
+
      | attack          = Attack Effect/Attack
  |[[$type Effect|$type]][[Effect type::$type Effect| ]]
+
      | destruction      = Destruction Effect/Destruction
  |,&#32;
+
      | flip            = Flip effect/Flip
 +
      | movement        = Movement Effect/Movement
 +
      | nature          = Nature Effect/Nature
 +
      | special power up = Special Power Up Effect/Special Power Up
 +
      | #default        = {{ ucfirst: {{ #replace: $effect | effect }} }} Effect/{{ ucfirst: {{ #replace: $effect | effect }} }}
 +
    }}
 
   }}
 
   }}
| <!-- Some other time... -->
+
}}{{ #arrayprint: @effects | ,&#32; | $effect | [[{{ #explode: $effect | / }}|{{ #if: {{ #pos: $effect | / }} | {{ #explode: $effect | / | 1 }} | $effect }}]]{{IfSemantics|[[Effect type::{{ #explode: $effect | / }}| ]]}} }}
}}
 

Revision as of 14:39, 21 December 2015