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 Request Expired.

Operator: Mobius Clock (talk · contribs)

Automatic or Manually assisted: Automatic

Programming language(s): Python

Source code available: After cleanup, this will be a link

Function overview: Fixing articles that have <ref> tags and/or template parameters which create references, but no <references/> or ((reflist)), using this category.

Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Missing_reflist

Edit period(s): Periodically, category requires semi-constant clearing

Estimated number of pages affected: However many are in the category!

Exclusion compliant (Y/N): No, if necessary can be made so

Already has a bot flag (Y/N): Y

Function details: Although SmackBot was approved to do this, it hasn't run this task in a while, and given that there has been a direct request for this kind of thing, I thought it can't hurt to have more than one bot available. Basically the bot will run through the 'pages with missing reflist' category, and add said reflist if: the page actually has references, excluding those in HTML comments, or the page contains a template with a parameter that automatically adds a reference, and there is no reflist or <references/> tag. One ref-generating parameter in the German location infobox (see BOTREQ) prompted this task, if any others exist, please let me know. The BOTREQ referred to running through the transclusions of the given template; I did a dry run and found that less than 5% of the pages needed to be fixed, and therefore I thought it more efficient to do the whole category, and cross the whole thing off the 'things what need fixing plz' list, at least temporarily.

Discussion

[edit]

Approved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Lets see how this runs in the real world. Josh Parris 02:27, 18 May 2010 (UTC)[reply]

Trial complete. - Trial went without incident save for this slight bug, caused by the page having a template placed within the 'Further Reading' section or suchlike (i.e. in a bulleted/indented list). I've tweaked the regex to compensate, and ran a further test on a copy of an original page, which ran fine. - Mobius Clock 17:38, 18 May 2010 (UTC)[reply]
That's a high rate of occurrence of misplaced ==References==; would you be willing to detect that problem and record it on a list for humans to go and repair?
One edit reordered DEFAULTSORT away from the categories, that's probably undesirable - perhaps instead to put it at the end of the templates just before the categories. Josh Parris 07:07, 19 May 2010 (UTC)[reply]
When you say misplaced references, which ones are you referring to? If it's the ones I mentioned above (templates in lists), I did squash that bug. If you mean reordering DEFAULTSORT, I hadn't noticed that error; I've further modified the code, and now DEFAULTSORT will be left alone, and I've also tweaked things to avoid munging the order of page-footer items. I tried putting it after the templates, but that just looks wrong, I'd rather spend some time fixing any bugs and have the bot do a good job first time around rather than having to get humans to clean up after it. I have no problem with logging the bot's edits to a page on wiki, however, I just need to know which ones I should treat as 'suspect'. - Mobius Clock 09:07, 19 May 2010 (UTC)[reply]
Sure, bug squashed, but the bug was triggered by faulty ==Reference== placement; humans really ought to look at that kind of thing and repair it (see BetaCommand's comment below re vandalism). Josh Parris 13:02, 19 May 2010 (UTC)[reply]
On the edit above the stub template moved above the categories which is wrong. AWB places them under the categories per WP:LAYOUT. -- Magioladitis (talk) 09:31, 21 May 2010 (UTC)[reply]
Two things, I would use pywikipedia's noreferences.py with a tweak to the detection of refs. But PLEASE be careful. this is something I have been reviewing recently (excluding those created via templates) and have noticed a LOT of it is caused by vandalism 70%+. I would support adding refs to those articles that need it due to refs via template but thats it. βcommand 12:28, 19 May 2010 (UTC)[reply]
OK, I'll incorporate a logging system for odd results so they can be checked. And yeah, adapting the noreferences.py script probably is a good idea, I suppose I started off coding for the templated ones only and the code grew from there (I know, bad idea!). As most of the category consists of ref-from-template pages, I have no problem with only fixing those ones, as it seems others require human attention due to vandals borking things. - Mobius Clock 15:19, 19 May 2010 (UTC)[reply]
Assuming BetaCommand is happy, and that you've made the modifications necessary, are you ready for another trial? Josh Parris 11:11, 25 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) Ping. MBisanz talk 05:43, 7 June 2010 (UTC)[reply]
If I don't hear from the operator soon, I will archive it as withdrawn later this weekend. MBisanz talk 04:21, 22 June 2010 (UTC)[reply]
Request Expired. MBisanz talk 01:46, 28 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.