User:ListasBot

From Wikipedia, the free encyclopedia
ListasBot
This user is a bot
(talk · contribs)
OperatorMikaey
AuthorMikaey
Approved?Yes
Flagged?Yes
Automatic or manual?Automatic
Programming language(s)C#
Exclusion compliant?Yes
Source code published?Yes
Emergency shutoff-compliant?Yes
Note: This bot will stop running if you leave a message on its talk page, until the owner sees it and allows the bot to continue running. If you feel that you must block this bot, please leave a message on its talk page stating as such, as the bot may not know to stop when it has been blocked.

What is ListasBot?[edit]

ListasBot is a bot that is designed to make changes to talk pages. Originally, it was designed to help out with the backlog at Category:Biography articles without listas parameter, but its functions have been expanded to include helping with the backlog at Category:Biography articles without living parameter, making general fixes to the parameters in a {{WPBiography}} template, and fixing incomplete redirects.

ListasBot's functions are as follows:

  • ListasBot 1: Attempt to fill in the 'listas' parameter on {{WPBiography}} templates, and/or bring them in line with the guidelines at Wikipedia:Categorization of people#Ordering names in a category.
    1. If there is a DEFAULTSORT tag on the page, use that to fill in the listas parameter.
    2. If there is another template that has the 'listas' parameter in it, use that to fill in the listas parameter.
    3. If the page is a category talk page, use the title of the page to fill in the listas parameter.
    4. If the title of the page is a single word, use the title of the page to fill in the listas parameter.
    5. If the bot found something to use for the listas parameter, remove any accented characters or ligatures from the string and replace them with their unaccented or separated counterparts.
    6. If the bot found something to use for the listas parameter, remove any instances of DEFAULTSORT on the page, and bring all other listas parameters in any other templates into sync with what was found.
  • ListasBot 2: Attempt to set 'living=yes' on {{WPBiography}} templates, and add/remove other parameters in the template.
    1. If the mainspace page or the talk page is a member of Category:Living people or Category:Possibly living people, set 'living=yes'.
    2. If the template has an 'importance' parameter, change it over to a 'priority' parameter.
    3. If the template does not have a 'priority' parameter, add a blank one (as requested by User:Magioladitis). (inactive due to changes in WikiProject Biography)
    4. If the template does not have a 'class' parameter, add a blank one (as requested by User:Magioladitis).
    5. Remove any other parameters that are not listed at Template:WikiProject Biography/doc.
    6. If the template has parameters set to 'no' or nothing, and the documentation at Template:WikiProject Biography/doc says "Answer yes, otherwise remove this line", remove it.
    7. Reorder all parameters to match the listing at Template:WikiProject Biography/doc, but only if some other change was going to be made to the page.
    8. If the page has a {{WikiProjectBannerShell}} or {{WikiProjectBanners}} template on it, and 'living' or 'activepol' is set to 'yes' in the {{WPBiography}} template, then set 'blp=yes' or 'activepol=yes', respectively, on the appropriate banner shell.
  • ListasBot 3 (INACTIVE due to community request): Fix incomplete redirects -- e.g., those where an article was redirected, but its talk page was not.
    • Primary working list: Any list of talk pages
    1. If the article page ("A") is a redirect ("B"), and Talk:B does not exist, move Talk:A to Talk:B.
    2. If the article page ("A") is a redirect ("B"), and Talk:B exists, replace Talk:A with a redirect to Talk:B.
      • If Talk:A consists of anything more than templates and whitespace, or if the page contains an {{archive box}} of some sort, then save the contents of the page to User:ListasBot/old talk pages, so that a human can review it and decide whether or not the content of Talk:A needs to be merged into Talk:B.
  • ListasBot 4: Amended version of ListasBot 1.
    1. If the mainspace page has a DEFAULTSORT tag on the page, use that page's DEFAULTSORT value to fill in the listas parameter.
  • ListasBot 5: Amended version of ListasBot 2.
    1. If a {{WPBS}} or {{WPB}} template has 'blp=yes', but a {{WPBiography}} has 'living=no', report it to User:ListasBot/Reported biography pages.
    2. If ListasBot 2 would have made changes to the page, then make the following changes:
      1. If a {{WPBS}} or {{WPB}} has 'activepol=yes', then set 'activepol=yes' in {{WPBiography}}, and vice-versa.
      2. If a {{WPBS}} or {{WPB}} has 'activepol=no', remove it.
      3. If a {{WPBS}} or {{WPB}} has 'blp=yes', then set 'living=yes' in {{WPBiography}}, and vice-versa.
      4. If a {{WPBS}} or {{WPB}} has 'blp=no', remove it.
      5. If a {{WPBS}} or {{WPB}} has no '1=' parameter, combine all templates that are nested inside the template into the '1=' parameter, separated by line breaks.
      6. If a {{WPBS}} or {{WPB}} has 6 or more banners in it, set 'collapsed=yes'.
      7. Remove any instances of "nested" from any other templates.
  • ListasBot 6: Amended version of ListasBot 1.
    1. If the mainspace page has a {{Persondata}} tag on the page, use the NAME parameter from the {{Persondata}} tag to fill in the listas parameter.

Why is ListasBot removing the |priority= tag?[edit]

As of October 2009, WikiProject Biography is no longer using overall priorities for the entire project; instead, they have moved to individualized priorities for the task forces underneath them. Template:WikiProject Biography/doc has been updated to reflect this, and Category:Biography articles needing priority parameter replacement has been created to support this change. Therefore, the bot was reprogrammed to remove the |priority= parameter when it shows up without a value. If a priority has been assigned to the page, the bot will leave the parameter intact.

Why did ListasBot tag a page with Category:Pages with incorrect WPBiography tags?[edit]

NOTE: As of 4/20/09 22:00 UTC, ListasBot should no longer be tagging pages with Category:Pages with incorrect WPBiography tags.

This was programmed into ListasBot as a contingency to be used when it couldn't find a WPBiography tag on the page. This was initially put in to handle situations where a user put {{WPBiography}} instead of just {{WikiProject Biography}}. Essentially, this means that a person needs to look at the page and figure out why the wiki thinks it's a biography page, but there's no {{WPBiography}} template on it. The {{WPBiography}} scenario is one reason that we know of. Another reason could possibly be when a page is redirected to another page, and the original page has a WPBiography template on its talk page, but the destination's talk page doesn't.

How do I get ListasBot to stop tagging my page with Category:Pages with incorrect WPBiography tags?[edit]

ListasBot is exclusion compliant. This means that, if ListasBot is tagging your page, and you don't want it to, just put {{bots|deny=ListasBot}} somewhere in the affected page. Please note that it's discouraged, however, as this doesn't help with the backlog.

Did ListasBot get the listas tag wrong?[edit]

Please note that, in almost all cases, ListasBot is simply copying something that it found somewhere else. Filters are applied to it, such as replacing non-alphabetical characters with their alphabetical equivelants, but in the end, it almost always started out with something that it found somewhere else on the page. ListasBot never guesses as to how the name should be arranged in a sort key.

This list details where ListasBot can find a potential value to use for the listas parameter, and how often that ends up being used (the figures are guesstimates):

  • From a {{DEFAULTSORT}} tag in the corresponding article (95%)
  • From the sort key (the third parameter) of a {{Lifetime}} in the corresponding article (2%)
  • From the NAME parameter of a {{Persondata}} in the corresponding article (1%)
  • From the title of the article, when the title is a single word (1%)
  • From the title of the category, when the page is a category talk page (<1%)
  • From the listas parameter of another WikiProject banner on the talk page (<1%)

Before leaving me a message telling me the bot got the listas parameter wrong, please look at the bot's edit summary. In all but the last case, the bot will notate in the edit summary where it got its listas value from. This generally needs to be fixed, and not the bot's behavior. However, if the bot says it used a certain source, you've checked that source, the source was right, and ListasBot put something completely different in, please leave a note on the bot's talk page about it, and I'll look into it.

Who runs ListasBot?[edit]

ListasBot is run by Mikaey.