Difference between revisions of "Template:DOR card/effects"
Dinoguy1000 (talk | contribs) (convert to Ext:Arrays) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{ #arraydefine: @effects | {{ lc: {{{1<noinclude>|Attack, Destruction, Flip, Movement, Nature, Special Power Up</noinclude>}}} }} |
− | | {{ | + | }}{{ #arraydefine: @effects | {{ #arrayprint: @effects | , | $effect |
− | + | | {{ #switch: {{ #ifeq: $effect | effect | effect | {{ #replace: $effect | effect }} }} | |
− | + | | attack = Attack Effect/Attack | |
− | + | | destruction = Destruction Effect/Destruction | |
− | + | | 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 }} }} | ||
+ | }} | ||
}} | }} | ||
− | | | + | }}{{ #arrayprint: @effects | ,  | $effect | [[{{ #explode: $effect | / }}|{{ #if: {{ #pos: $effect | / }} | {{ #explode: $effect | / | 1 }} | $effect }}]]{{IfSemantics|[[Effect type::{{ #explode: $effect | / }}| ]]}} }} |
− | }} |