http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10976
Revision: 10976 Author: multichill Date: 2013-01-23 21:32:04 +0000 (Wed, 23 Jan 2013) Log Message: ----------- def delete now adds a {{speedydelete|1=<reason>|2=bot}} instead of {{delete|bot=yes}}
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-01-23 20:54:31 UTC (rev 10975) +++ trunk/pywikipedia/wikipedia.py 2013-01-23 21:32:04 UTC (rev 10976) @@ -3465,7 +3465,8 @@ output(u'Cannot delete page %s - marking the page for deletion instead:' % self.title(asLink=True)) # Note: Parameters to {{delete}}, and their meanings, vary from one Wikipedia to another. # If you want or need to use them, you must be careful not to break others. Else don't. - self.put(u'{{delete|bot=yes}}\n%s --~~~~\n----\n\n%s' % (reason, text), comment = reason) + # FIXME: Make some sort of configuration setting to keep track of the templates in different wiki's + self.put(u'{{speedydelete|1=%s --~~~~|bot=yes}}\n\n%s' % (reason, text), comment = reason) return else: raise