Revision: 5652 Author: nicdumz Date: 2008-06-29 07:46:34 +0000 (Sun, 29 Jun 2008)
Log Message: ----------- Do not add <references/> in templates
Modified Paths: -------------- trunk/pywikipedia/reflinks.py
Modified: trunk/pywikipedia/reflinks.py =================================================================== --- trunk/pywikipedia/reflinks.py 2008-06-29 07:33:44 UTC (rev 5651) +++ trunk/pywikipedia/reflinks.py 2008-06-29 07:46:34 UTC (rev 5652) @@ -498,8 +498,10 @@ % page.aslink()) continue
- if self.norefbot.lacksReferences(new_text, verbose=False): - new_text = self.norefbot.addReferences(new_text) + # Do not add <references/> to templates ! + if page.namespace != 10: + if self.norefbot.lacksReferences(new_text, verbose=False): + new_text = self.norefbot.addReferences(new_text) editedpages += 1 self.put_page(page, new_text) if self.limit and editedpages >= self.limit:
pywikipedia-l@lists.wikimedia.org