Difference between revisions of "Template:BAM ability"
(Replacing "&" with "and".) |
Dinoguy1000 (talk | contribs) (since we're no longer doing anything with the "All" in $input, just strip it to start with like we do "Necro") |
||
Line 2: | Line 2: | ||
before we start, normalize the input a bit: | before we start, normalize the input a bit: | ||
− | * strip "Necro" | + | * strip "All" and "Necro" |
* "Monsters" and "Spells" to "Monster" and "Spell", respectively | * "Monsters" and "Spells" to "Monster" and "Spell", respectively | ||
− | -->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{{1}}} | Necro }} | Spells | Spell }} | Monsters | Monster }} }}<!-- | + | -->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | All }} | Necro }} | Spells | Spell }} | Monsters | Monster }} }}<!-- |
-->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!-- | -->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!-- | ||
Line 32: | Line 32: | ||
}}<!-- | }}<!-- | ||
− | -->{{ #vardefine: $target | | + | -->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!-- |
-->{{ #vardefine: $monster | -->{{ #vardefine: $monster |
Revision as of 13:51, 3 October 2013
.