Difference between revisions of "Template:BAM ability"

From Yugipedia
Jump to: navigation, search
(Replacing "&" with "and".)
(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 | {{ #replace: {{ #replace: {{ #var: $input }} | All }} | {{ #var: $action }} }} }}<!--
+
-->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!--
  
 
-->{{ #vardefine: $monster
 
-->{{ #vardefine: $monster

Revision as of 13:51, 3 October 2013

.