Difference between revisions of "Template:CardTable2/effect"
Dinoguy1000 (talk | contribs) (eliminate any chance of variable name clashes) |
(→top: Restoring revision 5095689 by User:Dinoguy1000 on 2022-11-05 23:57:43. I don't actually understand why the second parameter stops Flip monsters from getting these properties, so just remove that parser function and wait for any complaints...) (Tag: New user edit) |
||
Line 1: | Line 1: | ||
− | <noinclude><div class="hlist hcomma"></noinclude>{{ #arraydefine: @ct2-effects | + | {{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }}<!-- standard implementation --> |
− | | {{{1|<noinclude>Activation | + | }}<noinclude><div class="hlist hcomma"></noinclude>{{ #arraydefine: @ct2-effects |
+ | | {{{1|<noinclude>Activation condition, Condition, Continuous, Continuous-like, Cost, Effect, Flip, Ignition, Ignition-like, Lingering, Maintenance cost, Quick, Quick-like, Summoning condition, Trigger, Trigger-like, Unclassified</noinclude>}}} | ||
}}{{ #arrayprint: @ct2-effects || $ct2-effect | }}{{ #arrayprint: @ct2-effects || $ct2-effect | ||
− | | {{ #vardefine: $ct2- | + | | {{ #vardefine: $ct2-effect_link | {{ #switch: $ct2-effect |
− | | Activation requirement | Condition | Cost | Effect | Maintenance cost | Summoning condition = $ct2-effect | + | | Activation requirement | Activation condition = Activation condition |
− | | Continuous | Continuous-like | Ignition | Ignition-like | Quick | Quick-like | Trigger | Trigger-like | + | | Condition | Cost | Effect | Maintenance cost | Summoning condition = $ct2-effect |
− | | Flip | Lingering = $ct2-effect effect | + | | Continuous | Continuous-like | Ignition | Ignition-like | Multi-Choice | Quick | Quick-like | Trigger | Trigger-like = $ct2-effect Effect |
+ | | Flip | Lingering | Unclassified = $ct2-effect effect | ||
}} }}<nowiki/> | }} }}<nowiki/> | ||
− | * [[{{ #var: $ct2- | + | * [[{{ #var: $ct2-effect_link | $ct2-effect }}|$ct2-effect]]{{ #if: {{ #var: $smw }} |
− | | | + | | {{ #set: Effect type | {{ #var: $ct2-effect_link | $ct2-effect }} }}{{ #ifeq: $ct2-effect | Flip |
− | + | | {{ #set: Flip Monster | Yes }}{{ #set: Secondary type | Flip monster }} | |
− | |||
}} | }} | ||
− | }} | + | }}{{ #if: {{ #var: $ct2-effect_link }} || [[Category:((CardTable2/effect)) transclusions with unusual effect type values]] }} |
− | }}{{ | + | }}{{ #if: {{ #var: $smw }} |
+ | | {{ #set: Effect types | {{ #arrayprint: @ct2-effects || $ct2-effect | [[{{ #var: $ct2-effect_link | $ct2-effect }}|$ct2-effect]] }} }} | ||
+ | }}<noinclude></div> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |