User:JL-Bot

This bot has two approved tasks:
 * 1) Fixing internal links that are incorrectly formatted using the external link syntax
 * 2) Removing stale under-construction templates

It is written in Perl using the perlwikipedia framework.

Link Fixing
This bot corrects links, only within articles & templates, to Wikipedia & sister sites that are incorrectly formatted using the external link syntax. It is conservative in the patterns that it matches. The following replacements are made:


 *  [link:target name]  →  name 
 *  target[link:target]  →  target 
 *  target[link:target]  →  target 
 *  name[link:target]  →  name 
 *  <a href="link:target">name</a> </tt> →  name </tt>

where link:</tt> is to Wikipedia, Wikibooks, Wikinews, Wikisource, Wiktionary, Commons, Meta, or Mediawiki. It skips links to specific page revisions or otherwise have a query string.

It also fixes minor formatting errors with internal links, but only if an external to internal link fix is also made.

Stale Under-Construction Templates
It is not uncommon for under-construction templates to be applied to an article and the article be "abandoned" by the tagger.

This bot will check articles that include article under-construction templates (as well as their associated redirects) for the time stamp of the last edit. If the last edit was more than 7 days ago, it removes the template. These templates currently include:
 * Inprogress
 * Inuse
 * Inuse-section

It does not search the article history to see when the template was actually added. If an article is actively being edited, it leaves it to the article editors to decide if the template is still needed.
 * Isrev
 * Underconstruction

In addition, it will also check for articles that include non-article under-construction templates (as well as their associated redirects) and remove them from the article. These templates are not meant to be used in the article space. These templates currently include:
 * User page construction
 * UserWorkInProgress
 * Work in Progress
 * Workpage