Difference between revisions of "User:Becasita/SubPages/Templates/Card/EffectTypes"

From Yugipedia
< User:Becasita‎ | SubPages‎ | Templates‎ | Card
Jump to: navigation, search
(Simplify (maybe?), by placing #explodes into vars (easier to read). Properties are defined here now, through a named parameter.)
(Forgot about to assign the properties for these two.)
Line 39: Line 39:
 
             | {{ #arraydefine: @Out-part
 
             | {{ #arraydefine: @Out-part
 
                 | {{ #switch: @Input-part
 
                 | {{ #switch: @Input-part
                       | cost    = [[Cost]]{{ #vardefine: $break | 1 }}<!-- "cost" also matches "Maintenance cost". -->
+
                       | cost    = [[Cost]]<!--
                       | effect  = [[Card Effect|Effect]]{{ #vardefine: $break | 1 }}<!-- "effect" matches lots of stuff. -->
+
                                -->{{ #vardefine: $break | 1 }}<!-- "cost" also matches "Maintenance cost".
 +
                                -->{{ #if: {{{properties|}}}
 +
                                      | [[Effect types::Cost| ]]<!--
 +
                                    -->[[Effect types text::Cost| ]]
 +
                                  }}
 +
                       | effect  = [[Card Effect|Effect]]<!--
 +
                                -->{{ #vardefine: $break | 1 }}<!-- "effect" matches lots of stuff.
 +
                                -->{{ #if: {{{properties|}}}
 +
                                      | [[Effect types::Card Effect| ]]<!--
 +
                                    -->[[Effect types text::Card Effect| ]]
 +
                                  }}
 
                       | #default = {{ #vardefine: $EffectType-Pagename
 
                       | #default = {{ #vardefine: $EffectType-Pagename
 
                                       | {{ #explode: {{ #arrayindex: @EffectTypes-full | {{ #var: $counter }} }}
 
                                       | {{ #explode: {{ #arrayindex: @EffectTypes-full | {{ #var: $counter }} }}

Revision as of 00:41, 11 December 2016