Difference between revisions of "Template:CardTable2/effect"
Dinoguy1000 (talk | contribs) (bypass redirect; make the examples use the "preferred" names instead of shorter versions) |
Dinoguy1000 (talk | contribs) (eliminate any chance of variable name clashes) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude><div class="hlist hcomma"></noinclude> | + | <noinclude><div class="hlist hcomma"></noinclude>{{ #arraydefine: @ct2-effects |
− | + | | {{{1|<noinclude>Activation requirement, 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 |
− | + | | {{ #vardefine: $ct2-veffect_link | {{ #switch: $ct2-effect | |
− | + | | Activation requirement | Condition | Cost | Effect | Maintenance cost | Summoning condition = $ct2-effect | |
− | + | | Continuous | Continuous-like | Ignition | Ignition-like | Quick | Quick-like | Trigger | Trigger-like | Unclassified = $ct2-effect Effect | |
− | + | | Flip | Lingering = $ct2-effect effect | |
− | + | }} }}<nowiki/> | |
− | + | * [[{{ #var: $ct2-veffect_link | $ct2-effect }}|$ct2-effect]]{{IfSemantics | |
− | + | | [[Effect type::{{ #var: $ct2-veffect_link | $ct2-effect }}| ]]{{ #if: {{{2|}}} || {{ #ifeq: $ct2-effect | Flip | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | }} | ||
− | * | ||
− | |||
| [[Flip Monster::Yes| ]][[Secondary type::Flip monster| ]] | | [[Flip Monster::Yes| ]][[Secondary type::Flip monster| ]] | ||
}} | }} | ||
}} | }} | ||
− | + | }}{{ #if: {{NAMESPACE}} || {{ #if: {{ #var: $ct2-veffect_link }} || [[Category:((CardTable2/effect)) transclusions with unusual effect type values]] }} }} | |
− | + | }}{{IfSemantics|{{ #set: Effect types | {{ #arrayprint: @ct2-effects || $ct2-effect | [[{{ #var: $ct2-veffect_link | $ct2-effect }}|$ct2-effect]] }} }}}}<noinclude></div></noinclude> | |
− | }}{{IfSemantics|{{ #set: Effect types | {{ #arrayprint: @effects || $effect | [[{{ # |