Difference between revisions of "Template:BAM ability"
Dinoguy1000 (talk | contribs) (add some debug stuff) |
Dinoguy1000 (talk | contribs) ("Spells" to "Spell", change $prefix to $necro) |
||
Line 1: | Line 1: | ||
− | + | <!-- | |
− | -->{{ #vardefine: $ | + | before we start, normalize the input a bit: |
+ | * strip "Necro" | ||
+ | * "Monsters" and "Spells" to "Monster" and "Spell", respectively | ||
+ | * "Sea Serpent" and "Winged Beast" to "Sea_Serpent" and "Winged_Beast", respectively | ||
+ | |||
+ | -->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | Necro }} | Spells | Spell }} | Monsters | Monster }} | Sea Serpent | Sea_Serpent }} | Winged Beast | Winged_Beast }} }}(Input 1: {{ #var: $input }})<!-- | ||
+ | |||
+ | -->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}(Necro 1: {{ #var: $necro }})<!-- | ||
-->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!-- | -->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!-- | ||
Line 116: | Line 123: | ||
| Timidity = Loses [[Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play | | Timidity = Loses [[Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play | ||
| Promo | Special = | | Promo | Special = | ||
− | }}. {{ #if: {{ #var: $ | + | }}. {{ #if: {{ #var: $necro }} |
| This effect increases with each card in your [[Graveyard]]. | | This effect increases with each card in your [[Graveyard]]. | ||
}} | }} |
Revision as of 00:50, 3 October 2013
(Input 1: {{{1}}})(Necro 1: )(Target 1: {{{1}}})(Target 2: {{{1}}})(Action 1: ).