Bugs item #1987869, was opened at 2008-06-08 06:14 Message generated for change (Comment added) made by cosoleto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1987869...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Works For Me
Priority: 5 Private: No Submitted By: Nightshadow28 (nightshadow28) Assigned to: Nobody/Anonymous (nobody) Summary: featured.py sorts wrongly 3 letters language code & cat tag
Initial Comment: featured.py sorts wrongly 3 letters language code and category tag.
If featured.py uses with -top option, the bot sorts wrongly 3 letters language code and category tag. (r5522, Python 2.5, ubuntu 8.04)
[http://ja.wikipedia.org/w/index.php?title=%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%B8%...]
* The category tag ([[Category:第二次世界大戦]], means "World War II") should be placed before {{Link_FA}} and interwiki tag. * ext, gan and szl has been put on the wrong place.
Thanks.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-06-14 10:34
Message: Logged In: YES user_id=181280 Originator: NO
I think your copy of PyWikipediaBot isn't correctly up to date. This bug is fixed in r5522.
import wikipedia p=wikipedia.Page(wikipedia.Site('ja'), '%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%B8%96%E7%95%8C%E5%A4%A7%E6%88%A6') t_prev = p.getOldVersion(oldid="20098903") q = wikipedia.replaceCategoryLinks(t_prev+(u"{{%s|%s}}"%('Link FA', 'af')), p.categories()) wikipedia.showDiff(t_prev, q)
Result with latest and r5522 version:
- [[Category:???????|*]] - + + {{Link FA|af}} + + [[Category:???????|*]]
Result with r5000:
- [[Category:???????|*]] - + + [[ext:II Guerra Mundial]] + [[gan:???????]] + [[szl:II wojna swjatowo]] + {{Link FA|af}} + + [[Category:???????|*]] - [[ext:II Guerra Mundial]] - [[gan:???????]] - [[szl:II wojna swjatowo]]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1987869...