https://bugzilla.wikimedia.org/show_bug.cgi?id=55243
Web browser: --- Bug ID: 55243 Summary: replaceCategoryLinks misplaces featured article links Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
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