User:AnomieBOT

Documentation

[edit]

Technical details

[edit]

AnomieBOT is written in Perl, using a custom API class to access the MediaWiki Action API. It uses SQLite or MySQL for persistent data storage.

In addition to the standard "bot" mode which will only run approved tasks, individual tasks may also be run in a "test" mode that logs proposed edits to the local filesystem instead of actually editing Wikipedia or in an "RFBA trial" mode that will automatically stop after a certain number of edits.

Source code is available at User:AnomieBOT/source. The source may be reused under the same terms as Perl, which is currently available under the GPL and/or the Artistic License; the text of the files posted here on-wiki may also be reused per Wikipedia's licensing for text contributions.

Emergency shutoff

[edit]

Individual tasks may be stopped by writing any non-whitespace content to various pages under User:AnomieBOT/shutoff/; see the task list below for the specific page corresponding to each task. Many tasks also link the appropriate page from their edit summaries.

Exclusion compliance

[edit]

This bot is an exclusion compliant bot; see {{bots}} for details.

Bot accounts

[edit]

AnomieBOT uses multiple accounts for its various tasks:

Tasks

[edit]
The full list of tasks for all AnomieBOT bots is at User:AnomieBOT/TaskList.

Current

[edit]
Task Disable {{bots}} Approval Description
SourceUploader Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2008-08-15

Updates the pages under User:AnomieBOT/source to reflect the current source of the bot.


WatchlistUpdater Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2008-08-15

Updates algorithmically-defined "watchlists" (like User:Anomie/uw-templates) when pages are created or deleted. The bot only edits when something actually changes.


OrphanReferenceFixer Here Green tickY Approved 2008-09-04

Supplemental:
+ 2008-09-11
+ 2008-09-20
+ 2009-03-23

Applies the following corrections to pages in Category:Pages with incorrect ref formatting and/or Category:Pages with broken reference names. This is often enough to get them removed from the category.
  • <ref name=foo bar> → <ref name="foo bar">
  • <ref name="foo> → <ref name="foo">
  • <ref name=bar"> → <ref name="bar">
  • <ref name "foo"> → <ref name="foo">
  • <ref name-"foo"> → <ref name="foo">
  • <ref name+"foo"> → <ref name="foo">
  • <ref "foo"> → <ref name="foo">
  • <ref name="foo" name="bar"> → <ref name="bar">
  • <ref …></ref> → <ref …/>
  • Remove <ref …/> without name
  • Strip parameters other than name and group from <ref> and <references>
  • Rename refs with numeric names
  • Copy content for orphaned named refs from past page revisions
  • Copy content for orphaned named refs from linked articles
  • Move content for named refs out of infoboxen and other templates
Actions are periodically logged to User:AnomieBOT/OrphanReferenceFixer log.


IFDCloser Here Green tickY Approved 2008-12-01

Supplemental:
+ 2012-08-29

Peform the following tasks at WP:FFD:

  • Create the daily FFD subpage.
  • Fix the headers on the daily PUF subpages, if they get removed or damaged.
  • Close nominations where the file has been deleted.
  • Close nominations where the file does not exist.
  • Close nominations where the file is on Commons.
  • Subst {{ffd top}} and {{ffd bottom}}, when editing the page anyway.
  • Maintain the page Wikipedia:Files for discussion/Old unclosed discussions.


AFDMergeFromCleaner Here Green tickY Approved 2009-01-03

Remove instances of {{afd-merge from}} where the merge has been completed. Report instances of {{afd-merge from}} where the AFDed page is now a redirect to a different target.


RandomPagePicker Here Green tickY Approved 2009-01-14

Periodically choose a random article from a category or union/intersection of categories and write it to a page, as instructed by {{User:AnomieBOT/RandomPage}}.


OnThisDayTagger Here Green tickY Approved 2009-05-26

Process each anniversary article (e.g. Wikipedia:Selected anniversaries/October 31 for 2008-10-31, 2007-10-31, 2006-10-31, and so on) to extract the bolded links and tag the corresponding article talk pages with {{OnThisDay}}.


TalkTemplateMover Here Green tickY Approved 2009-07-09

Supplemental:
+ 2024-02-04

Find transclusions of {{translated page}} and other templates documented for talk pages mistakenly placed on article pages, and move them to the corresponding talk page.


AltLinkTemplateSubster Here Green tickY Approved 2009-12-13

Replace all transclusions of {{cbb link}} or {{cfb link}} where the most specific alternative exists with the specific link, to reduce the #ifexist parserfunction load. Similar templates may be added in the future as needed.


BAGBot Here Green tickY Approved 2009-11-17

Supplemental:
+ 2010-12-01
+ 2011-09-05
+ 2011-09-09
+ 2011-09-26

Various BAG-related maintenance tasks:


CategoryCleaner Here Green tickY Approved 2009-12-13

Remove pages from categories where the page does not meet the page inclusion criteria. For example, Category:Wikipedia redirects is explicitly stated that it shouldn't contain any actual redirects.


TaskRedirectChecker Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2010-06-16

Check the permanent redirects under User:AnomieBOT/req/ to validate the anchor still exists in the target page. If the anchor can be found in an archive subpage, the redirect will be updated. Otherwise, the bot will ask for help on its talk page.

Note this doesn't handle {{anchor}} or the like, just TOC headers.


DeletionSortingCleaner Here Green tickY Approved 2010-07-06

Supplemental:
+ 2020-06-06

Perform certain tasks for WP:WikiProject Deletion sorting:

  • Subst various AfD templates that should be substed
  • Archive discussions for closed XfDs
  • Remove duplicate XfD listings

If necessary, the bot may be kept off a deletion sorting subpage by adding {{bots|optout=AnomieBOT/DeletionSortingCleaner}} to that page.


ITNCArchiver Here Green tickY Approved 2010-09-10

Daily at 0000 UTC:


AccidentalLangLinkFixer Here Green tickY Approved 2011-01-02

Periodically checks pages in Category:Pages automatically checked for incorrect links for categories and language links seemingly in running text, and adds the necessary ":" to make them wikilinks instead.


TemplateSubster Here Green tickY Approved 2010-10-06

Subst templates in Category:Wikipedia templates to be automatically substituted. See documentation for details.


CHUUClerk Here Green tickY Approved 2010-10-26

Supplemental:
+ Withdrawn

Perform basic clerking tasks at WP:CHU/U.


TagDater Here Green tickY Approved 2010-12-13

Supplemental:
+ 2012-01-20
+ 2011-10-13
+ 2015-03-28
+ 2024-03-10

Date maintenance tags in articles listed in first-level subcategories of Category:Wikipedia maintenance categories sorted by month and Category:Wikipedia categories sorted by month.

  • If a maintenance category is directly used on the page, and a corresponding template is already on the page, remove the direct category use.
  • For templates in Wikipedia:AutoWikiBrowser/Dated templates or User:AnomieBOT/Dating rules, and their redirects:
    • If a date exists in |1= or certain other parameters, move it to |date=.
      • Exception is made for if |1= is declared in templatedata as existing and not being an alias for |date=.
    • If the date is an incorrect format (e.g. MDY, DMY, YMD), correct it to the Month Year format needed by the templates.
    • If all else fails, add the current Month Year as |date=
  • For {{multiple issues}} and redirects:
    • For each parameter besides "article", "section", "expert", "text", and numbered parameters, correct the date format or fill in the current date as above.
  • For {{as of}}, {{update after}}, and their redirects:
    • If a |date= exists, remove it or move it to |1= if necessary.
    • If |1= contains a recognizable date instead of having the date specified with year in 1, month in 2, and day in 3, correct it. Supply the current year if necessary.
    • If no date is found or |1= is "today", "now", or certain other keywords, add the current date.
  • For {{disambiguation}} and its redirects:
  • For {{disambiguation cleanup}} and its redirects:
    • If it includes "cleanup" or aliases, remove them as redundant.
    • If it includes "one non-primary topic" or aliases, remove that and add {{one other topic}}.
  • If the above resulted in no changes, templates used in the article are in turn checked in the same manner.
    • Also, if the template has the output of {{subst:rfd}}, it will be bypassed if the bypassed redirect would be dated.


ACNClerk Here Green tickY Approved 2011-01-24

Update crosslinks on WP:ACN and WT:ACN when content is archived.


FlagIconRemover Here Green tickY Approved 2011-09-12

Remove flag icons from certain infoboxes and layout templates per community consensus.


NobotsHallOfShame Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2011-09-11

Update a list of {{bots}} usage.


TFDClerk Here Green tickY Approved 2011-11-08

Peform the following tasks at WP:TFD:


PERTableUpdater Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2011-12-04

Update User:AnomieBOT/PERTable, User:AnomieBOT/TPERTable, User:AnomieBOT/EPERTable, User:AnomieBOT/SPERTable, User:AnomieBOT/COIREQTable, and User:AnomieBOT/PREQTable.


ShowByDateSubster Here Green tickY Approved 2012-03-21

Replace expired instances of {{show by date}} with the "after" text. Should an instance need to be not substed, use |nosubst=yes or |demo=yes.


NewArticleAFDTagger Here Green tickY Approved 2012-04-15

If a new article has been deleted in the past via AFD, add {{old AfD multi}} to its talk page.


DatedCategoryCreator Here Green tickY Approved 2012-05-30

Supplemental:
+ 2012-06-04

Create needed categories under Category:Wikipedia maintenance categories sorted by month and Category:Wikipedia categories sorted by month.


DRVClerk Here Green tickY Approved 2012-08-19

Peform the following tasks at WP:DRV:

  • Create the daily DRV subpage.
  • Create the monthly DRV subpage.
  • Fix the headers on the daily DRV subpages, if they get removed or damaged.
  • Maintain the lists at WP:DRV#Active discussions and WP:DRV#Recent discussions.
  • Remove headers from closed non-current discussions.


TemplateTalkRedirectCreator Here Green tickY Approved 2013-11-05

Create redirects for non-existing talk pages of certain pages:

  • Template pages ending in "/doc", "/sandbox", "/testcases", "/TemplateData", or "/styles.css"
  • Module pages ending in "/doc", "/sandbox", or "/styles.css"


IMONumberRedirectCreator Here Green tickY Approved 2015-04-07

Create redirects for IMO numbers, based on categorization in Category:IMO numbers.


EnDashRedirectCreator Here Green tickY Approved 2016-03-08

Supplemental:
+ 2020-06-19

Create redirects for articles with titles containing en-dashes from the corresponding title with ASCII hyphens. Update these redirects later as targets change.


CFDClerk Here Green tickY Approved 2016-11-19

Peform the following tasks at WP:CFD:


CategoryLister Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2017-01-22

Copy category membership to pages under User:AnomieBOT/C, based on configuration in User:AnomieBOT/CategoryLister/Categories.


PeerReviewArchiver Here Green tickY Approved 2017-02-18

Archive old requests for Peer Review:


POTDPageCreator Here Green tickY Approved 2017-02-10

Create Template:POTD protected/YYYY-MM-DD two days before the corresponding date, in time for it to be transcluded onto WP:Main Page/Tomorrow.


TFDTemplateSubster Here Green tickY Approved 2020-02-02

Subst templates to implement the results of a deletion discussion, based on listing at User:AnomieBOT/TFDTemplateSubster.


WikiUninterestingNumbers Here Green tickY N/A, only edits bot's/owner's userspace. Begun 2024-01-28

Create a page listing some interesting numbers:

  • Smallest number that is not the primary topic.
  • Smallest number without its own article.
  • Smallest number without an article or redirect.

This assumes that all number articles will be at or have a redirect from a title like 42 (number).

On demand

[edit]
Task Disable {{bots}} Approval Description
AutoAssessor2 Here Green tickY Approved 2008-12-07

Redirects and disambiguation pages will be automatically assessed with class=redirect/disambig and importance=NA, stubs will be automatically assessed with class=stub if not already assessed, and non-article pages will be automatically assessed with the appropriate class and importance=NA.


TemplateReplacer15 Here Green tickY Approved 2009-03-07

Replace all transclusions of one template with another (or with several others depending on template parameters, etc), when a template must be renamed. Normally, this will be the result of a TFD, but it could be used for any clear-cut case. It will not be done just to replace a template redirect when the redirect is going to remain.


TemplateReplacer16 Here Green tickY Approved 2009-05-03

When consensus exists for deprecating external link parameters from an infobox, the bot will go through all transclusions of the infobox, remove the external link parameters, and add the corresponding external link or external link template to the article's External links section if that section does not already contain the corresponding link. An External links section will be created if necessary. Any issues encountered will be logged. Each page will only be processed once (a local database holds the pageids of all successfully-processed pages).


SafesubstFixer Here Green tickY Approved 2010-05-05

Replace {{{subst|}}} in specifically named templates with <includeonly>safesubst:</includeonly>. If appropriate, may also insert <includeonly>safesubst:</includeonly> into {{#if and other parser functions, or specifically named template invocations.


ReplaceExternalLinks4 Here Green tickY Approved 2011-11-02

Replace URL redirector links with direct links to the target URL.


ReplaceExternalLinks5 Here Green tickY Approved 2011-12-04

Add archiveurl for dead or dying links, when an archive can be found at archive.org or webcitation.org, and optionally tag unarchived links with {{dead link}} or a similar template.


RedirectBypasser Here Green tickY Approved 2012-06-06

Bypass redirects in certain limited cases, currently:

  • To prevent confusion when a username is being usurped.

In development

[edit]
Task Disable {{bots}} Status Description
SandboxCleaner Here Green tickY On hold

Clears a sandbox page to predefined content once every 12 hours (at or shortly after 00:00 and 12:00 UTC), and checks once per hour to ensure the header is present on the page. As with User:SoxBot IV, this task takes instruction from User:X!/Sandbots.css.


BadImageTagger Here Green tickY On hold

Add {{restricted use}} to files listed at MediaWiki:Bad image list, and remove it from files not listed at that page.

Awaiting approval

[edit]

None at this time.

Past

[edit]
Task Disable {{bots}} Status Description
TemplateReplacer Here Green tickY Completed 2008-09-04

Replace {{WP MMOG}} (and old redirects) with {{WikiProject Video games}}. Also canonicalizes redirects to {{WikiProject Video games}} on the pages it edits for this reason, since it's editing them anyway.


TemplateReplacer2 Here Green tickY Completed 2008-09-08

Replace {{WikiProject Nintendo}} (and old redirects) with {{WikiProject Video games|tf=Nintendo}}. Also canonicalizes redirects to {{WikiProject Video games}} on the pages it edits for this reason, since it's editing them anyway.


TemplateReplacer3 Here Green tickY Completed 2008-09-21

Per Wikipedia:Bot requests/Archive 22#Template:Female adult bio, go through all uses of {{Female adult bio}} to remove the obsolete orientation parameter.


TemplateReplacer4 Here Green tickY Completed 2008-11-01

Replace {{WikiProject Neurology}} (and old redirects) with {{WPMED|neurology=yes|neurology-imp=}}.


AutoAssessor Here Green tickY Completed 2008-10-30

Assess existing {{Physics}} and {{WPAstronomy}} on talk pages of redirect/disambig pages with class=redirect/disambig and importance=NA.


ReplaceExternalLinks Here Green tickY Completed 2008-11-12

Replace links to the domains w*.allmusic.com with just "allmusic.com", as those other domains no longer function.


TemplateReplacer5 Here Green tickY Completed 2008-11-25

Replace {{Segaproject}} (and old redirects) with {{WikiProject Video games|tf=Sega}}. Also preserve Sonic task force taging and canonicalizes redirects to {{WikiProject Video games}} on the pages it edits for this reason, since it's editing them anyway.


TemplateReplacer6 Here Green tickY Completed 2008-12-02

Convert {{Infobox Aircraft}} in article space to the new {{Infobox Aircraft Begin}}{{Infobox Aircraft Type}} system.


TemplateReplacer7 Here Green tickY Completed 2008-11-25

Replace {{Fluid}} (and redirects) with {{physics|fluid-dynamics=yes}} and {{Relativity banner}} (and redirects) with {{physics|relativity=yes}}.


WikiProjectTagger Here Green tickY Inactive 2024-01-29

Tag articles in specified categories with a WikiProject template. Redirects and disambiguation pages will be automatically assessed with class=redirect/disambig and importance=NA, stubs will be automatically assessed with class=stub, and non-article pages will be automatically assessed with the appropriate class and importance=NA.


PUICloser Here Green tickY Inactive 2016-05-03

Supplemental:
+ 2012-08-29
+ 2013-05-07

Peform the following tasks at WP:PUF:

  • Create the daily PUF subpage.
  • Fix the headers on the daily PUF subpages, if they get removed or damaged.
  • Close discussions where the file has been deleted.
  • Close discussions where the file does not exist.
  • Close discussions where the file is on Commons.
  • Subst {{puf top}} and {{puf bottom}}, when editing the page anyway.
  • Maintain the list at WP:PUF#Holding cell.


TemplateReplacer10 Here Green tickY Completed 2008-12-29

Replace {{Zeldaproj}} (and redirects) with {{WikiProject Video games|tf=Nintendo}}. Also canonicalizes redirects to {{WikiProject Video games}} on the pages it edits for this reason, since it's editing them anyway.


TemplateReplacer11 Here Green tickY Completed 2009-01-11

For all pages in Category:Film articles using old needs infobox parameter, replace the needs infobox parameter with needs-infobox, remove the obsolete importance parameter, and canonicalize redirects for {{Film}}.


TemplateReplacer12 Here Green tickY Completed 2009-01-19

Replace {{Film needs cast section}}, {{Filmimage}}, and {{Film needs synopsis}} (and redirects) with {{Film}} with appropriate needs-X parameters. Also, perform some cleanup to {{Film}} on pages edited for this reason.


TemplateReplacer13 Here Green tickY Completed 2009-03-29

Replace the obsolete {{Infobox Film}} website, imdb_id, and amg_id parameters with {{official}}, {{imdb title}}, and {{amg movie}} in the External links section, respectively.


TemplateReplacer14 Here Green tickY Completed 2009-03-26

Replace the obsolete {{Infobox Television}} imdb_id and ttv_com_id parameters with {{imdb title}}, and {{tv.com}} in the External links section, respectively.


WikiProjectWorker Here Green tickY Inactive 2024-01-29

Perform various tasks at the request of the affected WikiProjects:

  • Add or remove banners on a specific set of pages (e.g. pages in a category, pages transcluding a template).
  • Adjust banner parameters, particularly assessments and task forces.
  • Fix banner shells on pages edited for the above reasons.


PageCreator Here Green tickY Completed 2009-06-20

Create redirects from isotopes for WP:WikiProject Elements.


PageMover Here Green tickY Completed 2009-12-14

Move date articles (e.g. February 12, 2005) in Category:Days in 2003 and Category:Days in 2005 from article space to subpages of Portal:Current events.


PageCreator2 Here Green tickY Completed 2010-06-22

Create redirects from titles with the correct (but not well supported) Romanian S-comma and/or T-comma diacritics to the existing titles using S-cedilla and/or T-cedilla.


ArticleCreationGrapher Here Green tickY Inactive 2022-01-25

Creates a graph showing article creation for a project.


ReplaceExternalLinks2 Here Green tickY Completed 2012-04-04

Process pages with geocities.com or oocities.com links to revert oocities.com spam, add archiveurl for geocities cites on archive.org or webcitation.org, change archived geocities links to archive.org or webcitation.org, and tag unarchived geocities links with {{dead link}}.


EditorReviewArchiver Here Green tickY Inactive 2014-05-29

Archive reviews at WP:Editor review.


ReplaceExternalLinks3 Here Green tickY Completed 2011-12-28

Process pages linking to http://www.nr.nps.gov/:

  • Replace links beginning with "http://www.nr.nps.gov/multiples/" with the corresponding link starting "http://pdfhost.focus.nps.gov/docs/NRHP/Text/".
  • Replace {{cite web}} templates with url http://www.nr.nps.gov/ with {{NRISref}}.
  • Tag other {{cite web}} templates and non-{{cite web}} links with {{NRIS dead link}}.


TalkTagger Here Green tickY Completed 2013-07-17

Tag talk pages with {{Reliable sources for medical articles}} when they meet the criteria laid out by WP:WPMED.

Withdrawn

[edit]
Task Disable {{bots}} Status Description
TemplateReplacer8 Here Green tickY Withdrawn

Remove {{Catwikiproject}} after Wikipedia:Templates for deletion/Log/2008 November 4#Template:Catwikiproject


TemplateReplacer9 Here Green tickY Withdrawn

Update GA=yes and FC=yes to {{dyktalk}} as appropriate.


Developed by StudentB