Feature Requests item #2125042, was opened at 2008-09-23 20:55 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2125042...
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
Priority: 6 Private: No Submitted By: Linar Khalitov (rubin16) Assigned to: Nobody/Anonymous (nobody) Summary: featured.py
Initial Comment: The script places {{Link FA|language}} near the interwiki link if the article is a featured article in that wikipedia. It would be nice if the bot wouldn't only add this template but also remove it when the article loses its featured status. This will help to avoid such situations as http://ru.wikipedia.org/w/index.php?title=0,(9)&curid=354454&diff=11... (here you can see the work of good.py, but it's based on the same system as featured.py). Is it possible to add such function? Thanks a lot.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-05-26 19:17
Message: done in r8189 by amir
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-04-12 13:57
Message: Reproted via mail: ---------------------------- Hello guys, if it's possible, can you adapt featured.py to check if the article is a former featured in X language and remove the Link FA template? Maybe using http://en.wikipedia.org/wiki/Category:Wikipedia_former_featured_articles for FA and http://en.wikipedia.org/wiki/Category:Delisted_good_articles for GA.
Best regards
--Manuel Taveras ----------------------------
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16) Date: 2008-10-06 14:54
Message: that turned out to be a wrong decision...
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16) Date: 2008-09-24 13:21
Message: File Added: featured.py
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16) Date: 2008-09-24 13:19
Message: I've changed the script a bit. As far as I am concerned this will prevent the bot from adding {{Link FA}} template if there already was {{Link GA}} template. <code> if atrans: text=atrans.get() m=re_Link_FA.search(text) #added good=re_Link_GA.search(text) if m: wikipedia.output(u"(already done)") #added if good: wikipedia.output(u"(GOOD ARTICLE)") else: </code> But this is not a complete decision: the best way is to overwrite the old template by new one but I don't know how to do it.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2125042...