code: def templatesCollector(text, open, close):
      
      others = []
      spans = [i for i in findBalanced(text, open, close)]
      spanscopy = copy(spans)
      for i in range(len(spans)):
          start, end = spans[i]
  
          o = text[start:end]
          ol = o.lower()
          if 'vaata|' in ol or 'wikitable' in ol:
              spanscopy.remove(spans[i])
              continue
          others.append(o)
      text = dropSpans(spanscopy, text)
  
      return text, others
docs: leaves related articles and wikitables in place