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 Approved.

Operator: Matt (talk)

Automatic or Manually Assisted: Automatic

Programming Language(s): C#

Function Overview: Cleanup to pages using the WPBiography template.

Edit period(s): On-demand, but would probably run near-continuous for about a week at a time

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

Function Details: As requested by User:Magioladitis here. ListasBot would remove the "nested" parameter from any WPBiography banners, as well as change any "importance" parameters over to "priority" parameters (again, only in the WPBiography banners). It would run concurrently with ListasBot's already approved functions (traversing Category:Biography articles without listas parameter), and once completed with that list, it would be assigned to do the same thing to Category:Biography articles with listas parameter -- thus touching all biography articles at least once.

Added 4/12/09: ListasBot would also add "living=yes" to the WPBiography template if the article (or its talk page) is a member of Category:Living people or Category:Possibly living people.

Added 4/13/09: ListasBot adds "priority=" to articles that are missing a priority or importance parameter, and removes the "needs-infobox" and "needs-photo" parameters where they are empty or set to "no". It removes any parameters from the template that are not listed in Template:WikiProject Biography/doc. It also reorders all the parameters in the template to match the listing at Template:WikiProject Biography/doc, but only if it would have made other changes to the page.

Added 4/14/09: ListasBot has a hardcoded list of the parameters usable by ((WPBiography)), taken from Template:WikiProject Biography/doc. Any parameter where the documentation says "Set this to 'yes' or remove it" is removed if it is blank or "no", plus a few extras as requested by User:Magioladitis.

Discussion[edit]

Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.Quadell (talk) 17:49, 13 April 2009 (UTC)[reply]

Before starting one more tiny addition: If there is no "priority" parameter, then add an empty priority parameter ("|priority=") after the "class" parameter exactly as KingbotK plugin does. This is useful to encourage people of WPBiography to assess articles. -- Magioladitis (talk) 18:08, 13 April 2009 (UTC)[reply]

Trial complete. Bot performed as expected. Magioladitis's request for the priority parameter was included in this trial. Had to make a change partway through to handle situations (such as this one) where there are duplicate parameters in the template, so that if one instance had a value attached to it and the other didn't, the instance that had a value attached to it got saved. Also modified the code to rearrange all the parameters so that they are in the same order as is listed in Template:WikiProject Biography/doc (which is how I made sure that "priority" would be listed after "class") and to discard duplicate instances of parameters in a template -- but only if the bot was going to make changes to the page anyway. -- Matt (talk)

Can you also delete the parameters "needs-photo=" and "needs-infobox" where the are empty and/or tagged with "no"? (I hope you don't hate me with all these requests!). I checked the edits. They look wonderful. -- Magioladitis (talk) 00:39, 14 April 2009 (UTC)[reply]
Aargh! So many requests! My head is going to explode! hehehe, just kidding. Done. Matt (talk) 01:09, 14 April 2009 (UTC)[reply]
You rock. Let's wait for Quadell or another BAG member if you need another bunch of trials or you can start. -- Magioladitis (talk) 09:45, 14 April 2009 (UTC)[reply]

I went through the edits and I like what I see. I'm going to give it a couple days before approval, in case someone else sees a problem I didn't. (Magioladitis still found a good suggestion for improvement just this morning.) – Quadell (talk) 14:30, 14 April 2009 (UTC)[reply]

 Approved. Looks good. – Quadell (talk) 16:14, 16 April 2009 (UTC)[reply]


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.