Difference between revisions of "Template:CardTable2/effect"
Dinoguy1000 (talk | contribs) (because of how we're sanitizing input) |
Dinoguy1000 (talk | contribs) (it isn't useful to categorize card templates in this tracking category) |
||
(33 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }}<!-- standard implementation --> |
− | |{{ | + | }}<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 | |
− | + | | {{ #vardefine: $ct2-effect_link | {{ #switch: $ct2-effect | |
− | + | | Activation requirement | Activation condition = Activation condition | |
− | + | | Condition | Cost | Effect | Maintenance cost | Summoning condition = $ct2-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/> | |
− | + | * [[{{ #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 }} || {{ #ifeq: {{NAMESPACE}} | {{ns:10}}<!-- Template --> || [[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> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |