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
https://bugzilla.wikimedia.org/show_bug.cgi?id=55243
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- textlib patch
https://bugzilla.wikimedia.org/show_bug.cgi?id=55243
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1320
https://bugzilla.wikimedia.org/show_bug.cgi?id=55243
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Lowest CC| |ladsgroup@gmail.com Severity|normal |trivial
--- Comment #2 from Amir Ladsgroup ladsgroup@gmail.com --- Since interwikis moved to Wikidata and Link FA/GA/FL/etc. will move to wikidata in one month, this bug is not important
https://bugzilla.wikimedia.org/show_bug.cgi?id=55243
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|General |textlib.py
pywikipedia-bugs@lists.wikimedia.org