User:AnomieBOT

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Documentation

Technical details

AnomieBOT is written in Perl, using a custom API class. For most access, it uses the MediaWiki API, but it also sometimes uses "action=raw" to download pages. 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

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

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

Bot accounts

AnomieBOT uses multiple accounts for its various tasks:

Tasks

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

Current

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 list at WP:FFD#Old discussions.


PUICloser Here Green tickY Approved 2008-12-30

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.


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

Find transclusions of {{translated page}} 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

Perform certain tasks for WP:WikiProject Deletion sorting:

  • Subst various AfD templates that should be substed
  • Archive discussions for closed AfDs

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


ArticleCreationGrapher Here Green tickY Approved 2010-08-29

Creates a graph showing article creation for a project.


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 accidental language 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

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

  • 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=.
    • 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:
  • If the above resulted in no changes, templates used in the article are in turn checked in the same manner.


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/SPERTable, and User:AnomieBOT/EDITREQTable.


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", or "/TemplateData"
  • Module pages ending in "/doc"

On demand

Task Disable {{bots}} Approval Description
WikiProjectTagger Here Green tickY Approved 2008-11-25

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.


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.


WikiProjectWorker Here Green tickY Approved 2009-04-08

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.


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

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

None at this time.

Past

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


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.


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.


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

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.

Barnstars and other rewards

The Citation Barnstar The Citation Barnstar
As I was busy with some very cumbersome (read: 200kB) merges and forks, these two orphaned reference fixes came after my edits, and I was quite impressed. This is an incredibly useful and robust bot. —Akrabbimtalk 15:18, 10 February 2010 (UTC)
The Citation Barnstar The Citation Barnstar
Thank you for rescuing my refs! KV5Squawk boxFight on! 16:34, 9 January 2009 (UTC)
The Citation Barnstar The Citation Barnstar
Thank you for rescuing my ref! • --MoHasanie (talk) 20:02, 12 June 2009 (UTC)
Rescuebarnstar.png The Citation Rescue Barnstar
For tirelessly and expertly rescuing countless orphaned references! — sligocki (talk) 16:43, 7 January 2010 (UTC)
Barnstar Chicago.png The Chicago Barnstar
You saved me several hours of ref fixing in my next WP:FAC (Millennium Park) by completing copied refs from other articles. This was quite a time saver and may help salvage WP:CHIFTD.TonyTheTiger (T/C/BIO/WP:CHICAGO/WP:FOUR) 02:03, 15 June 2010 (UTC)
Vitruvian Barnstar Hires.png
The da Vinci Barnstar is awarded to editors who have "enhanced Wikipedia through their technical work". For writing a new version of User:MediationBot so promptly and without error, and for continuing to provide your excellent bots to the English Wikipedia, I award Anomie and all the User:AnomieBOTs the da Vinci Barnstar. Thank you! For the Mediation Committee, AGK [] 14:44, 14 February 2011 (UTC)
MedCom laurel.png
Ukraine Barnstar.png Ukraine Barnstar
I hereby award you this Ukraine Barnstar for rescuing tons of references in Ukrainian related articles the past months! — Yulia Romero • Talk to me! 22:05, 10 March 2011 (UTC)
Brilliant Idea Barnstar Hires.png The Brilliant Idea Barnstar
Your autofixes for orphaned refs are fabulous! Keep up the great work. Jokestress (talk) 21:43, 18 July 2011 (UTC)
Thomas Jefferson by Rembrandt Peale, 1800.jpg Tom thanks you...
...for fixing all those broken refs in his article. Huzzah! Shearonink (talk) 05:31, 6 August 2011 (UTC)
Forks european.jpg United we stand, divided we fall
For all your hard work Lotje ツ (talk) 07:55, 15 September 2011 (UTC)
Youngkitten.JPG

Bots deserve kitten love too. :) This one does a lot of good work. :D

LauraHale (talk) 10:50, 13 November 2011 (UTC)

Barnstar of Diligence Hires.png The Barnstar of Diligence
Thanks for always doing such a great job finding orphans, undated citation needed templates, etc. I try to catch them at the time, and yet still find you catch some. I'll try harder! Great job at maintaining a quality impression for the readers. CaroleHenson (talk) 18:27, 27 November 2011 (UTC)
Barnstar of Diligence Hires.png The Barnstar of Diligence
Thank you for rescuing one of the references in the article List of former Hersheypark attractions. The assistance is always appreciated! Son (talk) 20:21, 17 February 2012 (UTC)
Choco chip cookie.png Thanks for the good work! Dating tags is very useful - we tend to forget it. Cheers, Edcolins (talk) 22:46, 18 February 2012 (UTC)
DDR RAM-1.jpg A small token for you
I am sending you some RAM as wikilove because food and drink would have been pointless for you and you most probably can't look after kitten so I am making my own to send you. Thank you for fixing citation link on Anil Kumble. I was a minute late. Vyom25 (talk) 14:22, 7 June 2012 (UTC)
Mobil 1 motor oil.jpg Drink up!
Hoping this helps to quench your bot thirst… Congrats on all the hard work ;-) benzband (talk) 12:47, 21 June 2012 (UTC)
The Citation Barnstar The Citation Barnstar
For rescuing orphaned refs on the Kaiser Tufail article. You got there before me :) Mar4d (talk) 16:10, 25 June 2012 (UTC)
Vitruvian Barnstar Hires.png The Technical Barnstar
With compliments! Mootros (talk) 06:43, 29 June 2012 (UTC)
Tireless Contributor Barnstar Hires.gif The Tireless Contributor Barnstar
Thanks Aldo samulo (talk) 05:52, 2 November 2012 (UTC)
Vitruvian Barnstar Hires.png The Technical Barnstar
Awesome programming! Flawless work. Ankit MaityTalkContribs 11:26, 10 May 2013 (UTC)
Tireless Contributor Barnstar Hires.gif The Tireless Contributor Barnstar
This bot does so much work that so many readers and editors ignore. I read in a BBC article that "Wikipedia would be in shambles without bots", and I must say, AnomieBOT is one of the main pillars that hold Wikipedia up, along with ClueBot NG and hundreds of other bots. Keep editing, my good robot friend, or this barnstar will stop rotating. K6ka (talk | contribs) 16:02, 30 January 2014 (UTC)

Here, a glass of yummy oil for the bot!

Hi! I was going to give AnomieBOT a cookie for fixing the broken ref on SSRI discontinuation syndrome - I would never have known as I just went straight for a single section, but I'm not sure he actually eats cookies. So I decided to give him a glass of motor oil instead; I hope he likes it! (And, for those who think I should have been a bit more environmentally sound, giving a bot a glass of oil is akin to give a human a cookie in terms of healthiness, no? :-) WnC? 15:52, 20 April 2009 (UTC)