public static List < String > getTemplateNames ( String text , String title ) throws LinkTargetException , EngineException , FileNotFoundException , JAXBException { return ( List < String > ) parsePage ( new TemplateNameExtractor ( ) , text , title , - 1 ) ; }
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 .