code: public boolean revisionContainsTemplateFragment(int revId, String templateFragment) throws WikiApiException{
      	List<String> tplList = getTemplateNamesFromRevision(revId);
      	for(String tpl:tplList){
      		if(tpl.toLowerCase().startsWith(templateFragment.toLowerCase())){
      			return true;
      		}
      	}
      	return false;
      }
docs: Determines whether a given revision contains a template starting witht the given fragment
  
  @param revId
  @param templateFragment
  @return
  @throws WikiApiException