Last modified: 2014-07-25 01:54:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57243, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55243 - replaceCategoryLinks misplaces featured article links
replaceCategoryLinks misplaces featured article links
Status: NEW
Product: Pywikibot
Classification: Unclassified
textlib.py (Other open bugs)
unspecified
All All
: Lowest trivial
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:49 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-25 01:54 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:49:52 UTC
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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:49:54 UTC
textlib patch
Comment 2 Amir Ladsgroup 2014-07-24 13:32:29 UTC
Since interwikis moved to Wikidata and Link FA/GA/FL/etc. will move to wikidata in one month, this bug is not important

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links