docs: def template_to_dict_alt(tree, title):
      """
      Returns parse tree template as {<title>: <parts>}
      This is a more general parse tree infobox template parser.
      """
      box = []
      part = []
  
      for item in tree.iter():
  
          if item.tag == 'part':
              if part:
                  box.append(part)
              part = []
  
          if item.tag == 'name' or item.tag == 'value':
              for attr in item.keys():
                  part.append({attr: item.get(attr)})
  
              if item.text:
                  part.append(item.text.strip())
  
              if item.tail:
                  part.append(item.tail.strip())
  
      if part:
          box.append(part)
  
      return {title.strip(): box}