Wikipedia:Bots/Requests for approval/WildBot 7
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Withdrawn by operator.
Operator: Josh Parris (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): Python
Source code available: Once developed
Function overview: Simple link fixes and notification on the target of multiple broken #section links
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/FrescoBot 3
Edit period(s): Continuous
Estimated number of pages affected: About 1500 links have the http problem; Category:Pages containing links with bad anchors has nearly 2000 pages (I guess 20% of these pages have a link that can be fixed with a case-insensitive match, so 400-ish edits); and I don't know how many pages have multiple broken #section links targeting them, but there's at least two.
Exclusion compliant (Y/N): standard in pywikipedia
Assert Edit flags used (exists, user/bot, none): none
Already has a bot flag (Y/N): Y
Function details: This task includes a shopping list of fixes:
if an internal link is a redlink, and it starts with http:// , change it to an external link.- There are 1500 instances of this problem at the moment
select count(*) from pagelinks where pl_namespace=0 and pl_title like 'Http://_%';
- if a #section link is a case-insensitive match for an anchor on the page, change it to match that anchor.
- This is a reasonably common case within broken #section links (see Category:Pages containing links with bad anchors)
- Same-page links will be caught too
- Notification on the target page where there are the same broken #section links come from multiple pages.
- Used when a section-header is changed, and that breaks multiple pages linking to that page, for example: Page [[footy]] has the section ===Center=== changed to ===Centre===, and any pages like [[Linebacker]] which linked to [[footy#Center]] is now broken. The notice will encourage editors to put {{anchor}} in front of the new section name with the old section name in it, to allow backwards compatibility. This message will look something like:
Consider using {{anchor}} to create a target for other pages to #section link to without anything being visible in the article. Multiple pages have broken #section links to the same section in this page: This box was placed by WildBot, a bot designed to keep it up to date and then remove it when the links are fixed. If WildBot is malfunctioning, please leave a message. |
Assert Edit is not currently supported by pywikipedia's trunk release; it is in the rewrite release.
Discussion
editApproved for trial (45 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Preferably 15 each of fixes one, two, and three. — The Earwig (talk) 21:02, 13 March 2010 (UTC)[reply]
SELECT page_namespace, count(*) FROM page join pagelinks on page_id=pl_from WHERE pl_namespace=0 AND pl_title LIKE 'Http://_%'
group by page_namespace limit 10;
- Shows 4 hits in article space and 6 in File space. I don't think this point is worth pursuing. I'll keep at the others. Josh Parris 10:53, 14 March 2010 (UTC)[reply]
Section fixes
edit- http://en.wikipedia.org/w/index.php?title=Freedom_of_religion_in_the_United_States&diff=prev&oldid=350384250
- http://en.wikipedia.org/w/index.php?title=List_of_algorithms&diff=prev&oldid=350560233
- http://en.wikipedia.org/w/index.php?title=Glossary_of_climbing_terms&diff=prev&oldid=350676846
- http://en.wikipedia.org/w/index.php?title=University_of_Texas_at_Austin&diff=prev&oldid=350683122
- http://en.wikipedia.org/w/index.php?title=List_of_mascots&diff=prev&oldid=350685711 * Repeated message in summary. Fixed.
- http://en.wikipedia.org/w/index.php?title=Rob_Van_Dam&diff=prev&oldid=350686907
- http://en.wikipedia.org/w/index.php?title=Blaxy_Girls_discography&diff=prev&oldid=350693479
- http://en.wikipedia.org/w/index.php?title=Electroshock_%28wrestler%29&diff=prev&oldid=350693804
- http://en.wikipedia.org/w/index.php?title=Bratislava&diff=prev&oldid=350700554
- http://en.wikipedia.org/w/index.php?title=Madonna_%28entertainer%29&diff=prev&oldid=350701879 * Useless change. Fixed.
- http://en.wikipedia.org/w/index.php?title=Texas_A%26M_University&diff=prev&oldid=350703524
- http://en.wikipedia.org/w/index.php?title=We_Belong_Together&diff=prev&oldid=350708094
- http://en.wikipedia.org/w/index.php?title=Culture_of_Cuba&diff=prev&oldid=350709089
- http://en.wikipedia.org/w/index.php?title=Talk_%28song%29&diff=prev&oldid=350709431
- http://en.wikipedia.org/w/index.php?title=Yeah!_(Usher_song)&diff=prev&oldid=350711285
- http://en.wikipedia.org/w/index.php?title=Alan_Turing&diff=prev&oldid=350716022
- http://en.wikipedia.org/w/index.php?title=Alternate_history&diff=prev&oldid=350716079
These edits show this chunk of functionality is done. Josh Parris 02:46, 19 March 2010 (UTC)[reply]
Popular #section targets
editI will commence testing on this around the 10th of April. Josh Parris 23:58, 24 March 2010 (UTC)[reply]
- {{OperatorAssistanceNeeded}} Any updates? The bot has been blocked, what's going on? — The Earwig (talk) 20:22, 11 May 2010 (UTC)[reply]
- Bot's blocked and I haven't yet figured out what caused it to do the thing it was doing that caused the blocking. Still no progress on the #section bizzo (been quite busy), but I do intend to complete this. Josh Parris 23:28, 11 May 2010 (UTC)[reply]
- Thanks. Please reply when you've figured out what the problem is and when you're willing to get back to work on this task. ("I haven't yet figured out what caused it to do the thing it was doing that caused the blocking"... o_O) — The Earwig (talk) 20:16, 19 May 2010 (UTC)[reply]
- Beep. Hows it going with the trial? Tim1357 talk 13:45, 13 June 2010 (UTC)[reply]
- Thanks. Please reply when you've figured out what the problem is and when you're willing to get back to work on this task. ("I haven't yet figured out what caused it to do the thing it was doing that caused the blocking"... o_O) — The Earwig (talk) 20:16, 19 May 2010 (UTC)[reply]
- Bot's blocked and I haven't yet figured out what caused it to do the thing it was doing that caused the blocking. Still no progress on the #section bizzo (been quite busy), but I do intend to complete this. Josh Parris 23:28, 11 May 2010 (UTC)[reply]
A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified) Any updates? Mr.Z-man 15:50, 13 June 2010 (UTC)[reply]
Withdrawn by operator. Given the lack of progress and lack of time to devote to this at the moment. I intend to reopen this when I've got the time available to devote to this. Josh Parris 20:32, 19 June 2010 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.