Wikipedia:Bots/Requests for approval/MelonBot 12


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol keep vote.svg Approved.

MelonBot
Operator: Happy‑melon

Automatic or Manually Assisted: supervised automatic

Programming Language(s): pywiki

Function Summary: converting templates to use accessdate and date consistently

Edit period(s): one time run

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

Function Details: Following from this discussion, and numerous others on that page, we conclude that the parameters accessyear, accessmonthday and accessdaymonth are more trouble than they're worth. They were created in the days of date autoformatting to force a display in ymd or dmy format; now this is deprecated in favour of setting dateformat in the template and passing the whole date in together as accessdate. As such, it is a very clear-cut process to convert from one to the other:
 * When the parameters accessdaymonth and accessyear are present in an instance of, mash the two together into accessdate and set dmy
 * Else if the parameters accessmonthday and accessyear are present, mash the two together into accessdate and set mdy

This should cover 99% of the simple cases; there are only a manageable number of instances out there, but they are currently broken, so speed is a consideration.

Discussion

 * I see no problem with this. Foxy Loxy  Pounce! 23:17, 30 January 2009 (UTC)
 * Looks simple enough, and as it's probably best to get these templates fixed ASAP:  Richard  0612  16:53, 1 February 2009 (UTC)
 * done for your delight and delectation :D Happy‑melon 17:39, 2 February 2009 (UTC)
 * Looks fine to me.  Richard  0612  17:52, 2 February 2009 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.