private void generateTemplateIndices ( WikipediaTemplateInfo info , Set < String > templateNames ) { try { for ( String name : templateNames ) { int id = info . checkTemplateId ( name ) ; if ( id != - 1 ) { tplNameToTplId . put ( name , id ) ; } } } catch ( WikiApiException e ) { } }
Loads existing ids into the map . If no id exists a template will get a new one in the dump writer