Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1320/
Reported by: silvonen
Created on: 2011-06-12 10:47:24
Subject: replaceCategoryLinks misplaces featured article links
Original description:
I don't know if this is a known problem, but the function replaceCategoryLinks in pywikibot/textlib.py moves featured/good article templates \(e.g., \{\{Link FA|en\}\}\) above categories, although these templates are usually placed between categories and interwiki links. This has caused problems in one of the bot scripts that we use in the Finnish Wikipedia.
I am attaching a patch proposed by zache.
>python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9291, 2011/06/10, 04:46:24\)
Python 2.5.4 \(r254:67916, Jan 29 2009, 12:02:11\) \[MSC v.1310 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Version: unspecified
Severity: trivial
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1320