code: private void processPages()
  	{
  		PageIterator pageIter = new PageIterator(getWiki(), true, pageBuffer);
  
  		int pageCounter = 0;
  
  		while (pageIter.hasNext()) {
  			pageCounter++;
  
  			if (pageCounter % VERBOSITY == 0) {
  				logger.info("{} pages processed ...", pageCounter);
  			}
  
  			Page curPage = pageIter.next();
  			int curPageId = curPage.getPageId();
  
  			fillMapWithTemplateData(curPage.getText(), pageFilter, curPageId,
  					TPLNAME_TO_PAGEIDS);
  		}
  	}
docs: Extracts templates from pages only