code: public static List<String> getTemplateNames(String text, String title) throws LinkTargetException, EngineException, FileNotFoundException, JAXBException{
  		return (List<String>) parsePage(new TemplateNameExtractor(), text, title, -1);
  	}
docs: Extracts template names from Wikitext by descending into every node and looking for templates.
  Results may contain duplicates if template appears multiple times in the article.
  
  @param text article text with wiki markup
  @param title article title
  @return list of template names
  @throws EngineException if the wiki page could not be compiled by the parser