http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9019
Revision: 9019 Author: jayvdb Date: 2011-03-05 06:57:47 +0000 (Sat, 05 Mar 2011) Log Message: ----------- Use new <pagequality ..> syntax introduced in r52744 (July 2009)
Modified Paths: -------------- trunk/pywikipedia/djvutext.py
Modified: trunk/pywikipedia/djvutext.py =================================================================== --- trunk/pywikipedia/djvutext.py 2011-03-02 06:46:39 UTC (rev 9018) +++ trunk/pywikipedia/djvutext.py 2011-03-05 06:57:47 UTC (rev 9019) @@ -140,7 +140,7 @@ djvutxt = self.get_page(pageno) if not djvutxt: djvutxt = pywikibot.translate(pywikibot.getSite(), self.blank) - text = u'<noinclude>{{PageQuality|1|%s}}<div class="pagetext">\n\n\n</noinclude>%s<noinclude><references/></div></noinclude>' % (self.username,djvutxt) + text = u'<noinclude><pagequality level="1" user="%s" /><div class="pagetext">\n\n\n</noinclude>%s<noinclude><references/></div></noinclude>' % (self.username,djvutxt)
# convert to wikisyntax # this adds a second line feed, which makes a new paragraph