Operator: HighInBC, Alphachimp, Krellis
Automatic or Manually Assisted: Automatic
Programming Language(s): Perl
Function Summary: Fix/reset the instructions comment block on Wikipedia:AIV if it is modified/removed
Edit period(s) (e.g. Continuous, daily, one time run): Continuous
Edit rate requested: Occasional, as needed whenever the instructions are broken, not more than once every 30 seconds.
Already has a bot flag (Y/N): Y
Function Details:
The instructions for creating a report on Wikipedia:AIV are contained in an HTML comment in the page source, so that reporters see them when editing the page. Unfortunately, despite all attempts to make the instructions clear and explicit, sometimes reports are placed incorrectly, often within the instructions block itself. This causes further confusion for later reporters, and also may cause reports to be accidentally ignored (since they will not be rendered if they are inside the comment). This request is for a new feature of the HBC AIV helperbots which would allow them to fix the instructions in these cases, automatically moving any mostly-correctly-formatted reports that were placed in the comments to the correct location in the process.
Due to the way MediaWiki parses edits inside HTML comments, signatures for reports made inside the instruction block are lost - they are not expanded by MediaWiki until the bot moves them out of the HTML comment, and then look like the bot's signature. The bot adds a small superscript to the signature in these cases, indicating that the original signature was lost when the bot moved the report out of the comments.
The instructions to use for resetting the page are read from a sub-page of AIV, Wikipedia:Administrator intervention against vandalism/instructions, once every 30 minutes. Once a consensus is reached over the instructions to use (I have begun discussion of this on WT:AIV), this page will need to be fully protected to prevent abuse.
This feature is controlled by a new parameter in the HBC AIV helperbot parameter string, FixInstructions, which enables the function when set to On or on, and disables it when set to any other value.
This functionality has been coded, and I have done a good bit of testing in my sandbox at User:Krellis/Sandbox/HBC Helper Testing. A list of some of the tests performed so far:
I believe this feature is ready for testing in the real-world environment, and am requesting approval to do so. Any test run will be operated under HBC AIV helperbot3, the instance that I operate. —Krellis (Talk) 20:07, 21 February 2007 (UTC)[reply]
First trial edit after enabling the function looks good: [1]. Will continue to monitor closely. —Krellis (Talk) 22:22, 21 February 2007 (UTC)[reply]
There was a bit of a SNAFU early this morning caused by HagermanBot. I actually consider this a bug in HagermanBot, and have reported it as such to Hagerman, but in the meantime, I have added some code to allow the bot to work around the issue in the future without making the situation worse. The sequence of diffs showing the problem is: [2] [3] [4] [5] [6] [7]
In the last diff, you can see that the bot actually worked properly once WJBscribe removed the duplication of the comment. I've tested my fix for this in my sandbox, and it now functions as expected, moving the report that was signed by HagermanBot out into the main reporting area and making any other repairs needed to the instruction block. I'll continue to monitor the test closely and report any further problems. —Krellis (Talk) 16:24, 22 February 2007 (UTC)[reply]
This code has been running for just about a week now, and there haven't been any further problems. The bot has had several chances to update the instruction block on Wikipedia:AIV, and has been successful in each (including several where it moved reports into the proper location so they could be addressed by admins): [8] [9] [10] [11] [12] [13]. I'm satisfied that it is working as designed, and believe it to be ready for final approval (and deployment to the other helperbot instances). Please let me know if there are any questions or concerns, and thanks for your help! —Krellis (Talk) 03:05, 28 February 2007 (UTC)[reply]