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 ; }
Determines whether a given revision contains a template starting witht the given fragment