Wikipedia:Bots/Requests for approval/BattyBot 27
- 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 Approved.
Operator: GoingBatty (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:53, Monday December 30, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AWB
Source code available: AWB
Function overview: Fix links to http://www.neilbrown.newcastlefans.com/
Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 58#Changing the url suffix from .htm to .html for a specific site and Wikipedia talk:FOOTY#Neil Brown's site
Edit period(s): One time tun
Estimated number of pages affected: 1,000+
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: For all the instances of urls referencing Neil Brown's site to be changed from .htm to .html. The urls to be changed are of the form www.neilbrown.newcastlefans.com/
followed by a variable part and then .htm, e.g. www.neilbrown.newcastlefans.com/player/barriethomas.htm
. To make these changes, I would use the following regex:
- Find
(\/\/www\.neilbrown\.newcastlefans\.com\/(.*?).htm)(?!l)
- Replace
$1l
- Find
Discussion
editIs there any reason not to convert external links to use the {{NeilBrownPlayers}} template? I can foresee a time when the subdomain moves to its own domain, requiring another 1000 article changes; if the links were changed to use the template, that would require changing one template. Josh Parris 01:40, 31 December 2013 (UTC)[reply]
- I asked the same question at Wikipedia:BOTREQ#Changing_the_url_suffix_from_.htm_to_.html_for_a_specific_site. The consensus at Wikipedia talk:FOOTY#Neil Brown's site was that the template is not ready, and the links should be changed as is. Thanks! GoingBatty (talk) 02:03, 31 December 2013 (UTC)[reply]
- Fine, I guess multiple edits will only annoy the people who decided they want it fixed immediately. Approved for trial (20 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Josh Parris 22:31, 31 December 2013 (UTC)[reply]
- Trial complete. - see these edits. GoingBatty (talk) 00:57, 5 January 2014 (UTC)[reply]
- Fine, I guess multiple edits will only annoy the people who decided they want it fixed immediately. Approved for trial (20 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Josh Parris 22:31, 31 December 2013 (UTC)[reply]
That went well. Approved. Josh Parris 02:10, 5 January 2014 (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.