Wikipedia:Bots/Requests for approval/Theo's Little Bot 15
- 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: Theopolisme (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 22:03, Sunday May 26, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python + mwclient
Source code available: as usual, on github
Function overview: Replaces accidental uses of {{citation}} or {{cite}} (i.e., those that include no other parameters) with {{citation needed}} (see details at Category:Pages with empty citations)
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Empty_citation
Edit period(s): Monthly
Estimated number of pages affected: <700 on first run
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: From the botreq:
- Source category: Category:Pages with empty citations
- Namespace include: Article (main)
- Namespace exclude: Talk, Wikipedia, Wikipedia Talk, etc
- Search string: "{{cite}}","{{citation}}"
- replace string: "{{citation needed}}"
- Currently affected pages:~700
- Bot frequency: One shot - followed by monthly sweep.
Discussion
edit- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. ·Add§hore· Talk To Me! 16:07, 27 May 2013 (UTC)[reply]
- Very useful bot, surprised it has not been done already? -198.228.216.23 (talk) 21:49, 27 May 2013 (UTC)[reply]
- Trial complete. [1] Theopolisme (talk) 23:43, 27 May 2013 (UTC)[reply]
- When the cite or citation template is right before a period can the bot move it to right after the period?[2] Or other punctuation? Would this be too much? -68.107.136.227 (talk) 23:03, 28 May 2013 (UTC)[reply]
- My bot tasks generally run without genfixes, since I use custom Python modules that don't interface with AWB or one of the other "cleaner-upper" scripts out that. My dev machine is currently having some trouble, but I'll look into it when I can get it up and running. Theopolisme (talk) 03:21, 29 May 2013 (UTC)[reply]
- Programming wise I think it can make a simple task too much, but I thought I would ask. I am fine if it just does the citation fix, a very useful bot task. -68.107.136.227 (talk) 05:43, 29 May 2013 (UTC)[reply]
- I will wait until User:Theopolisme has come back regarding the above before taking any further action. ·Add§hore· Talk To Me! 09:34, 29 May 2013 (UTC)[reply]
- @Addshore: I'm hopeful that my dev machine will be back online by tonight/tomorrow--CPU just flat out died, so I'm going to probably end up buying a new computer and transferring files from the old hard drive. Here's hoping nothing goes wrong... Theopolisme (talk) 14:16, 29 May 2013 (UTC)[reply]
- All I can say is bad luck :/ ·addshore· Talk To Me! 14:29, 29 May 2013 (UTC)[reply]
- @Addshore: I'm hopeful that my dev machine will be back online by tonight/tomorrow--CPU just flat out died, so I'm going to probably end up buying a new computer and transferring files from the old hard drive. Here's hoping nothing goes wrong... Theopolisme (talk) 14:16, 29 May 2013 (UTC)[reply]
- I will wait until User:Theopolisme has come back regarding the above before taking any further action. ·Add§hore· Talk To Me! 09:34, 29 May 2013 (UTC)[reply]
- Programming wise I think it can make a simple task too much, but I thought I would ask. I am fine if it just does the citation fix, a very useful bot task. -68.107.136.227 (talk) 05:43, 29 May 2013 (UTC)[reply]
eBay says new computer will be here anywhere from June 3rd-7th...I set up a temporary environment on another computer, so I've pushed this commit which adds the citation-after-a-period functionality per request. Cheers, Theopolisme (talk) 16:03, 30 May 2013 (UTC)[reply]
- Have you tested the regex Theopolisme? :) ·addshore· talk to me! 08:33, 1 June 2013 (UTC)[reply]
- @Addshore: Yeah, why? Theopolisme (talk) 13:12, 1 June 2013 (UTC)[reply]
- Approved. ·addshore· talk to me! 13:52, 1 June 2013 (UTC)[reply]
- @Addshore: Yeah, why? Theopolisme (talk) 13:12, 1 June 2013 (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.