AutoEd is a script that helps to automatically make certain changes in articles, and also allows for easy design, use, and customization of user scripts related to automated article cleanup. It is based on CodeFixer, Plastikspork's script, and Formatter, but allows for further customization and the easier creation of new functions. It is currently maintained by Drilnoth and Plastikspork over at the English Wikipedia any changes there will be made here thereafter.

Installation guide change

It is VERY easy to install AutoEd and you don't need a shred of technical ability! If you can follow a recipe for making a peanut butter and jelly sandwich, you can install this script. Instructions are below. If you get anxious, ask on the on the discussion page for help.

To install the AutoEd script:

  1. If you have JavaScript enabled, go here to access your skin's .js file.
    • If you do not have JavaScript enabled and either do not wish to or cannot, go to Special:Preferences and click on the Appearance tab. In the very first section, Skin, locate the skin that is selected and click on the Custom JS next to your selected skin.
  2. Click Edit on the page that opened.
  3. Add the following code to the page and save it: importScript('Wikipedia:AutoEd/complete.js');
    • This will enable all AutoEd functions. If you want only some of them, see #Customization section below.
  4. Reload the cache.
    • If you are using Internet Explorer, press Ctrl-F5
    • If you are using Firefox/Safari for Windows, hold down Shift while clicking Reload (or press Ctrl-Shift-R); for Mac, press Command-R.
    • If you are using Opera/Konqueror, press F5.
  5. To test it out go to any random article. If you look at the tabs at the top of the article, you should see a new tab labelled "auto ed" between move and history.
    • This tab should be visible both in the viewing and editing mode. Clicking on it in either modes will cause the AutoEd script to run, showing you the preview of the version after the run. If you like it, save it.
  6. Go copy edit!

Documentation change

This script can aid in making edits by using regular expressions to replace certain lines of text (typically errors) in articles with other, correct lines of text. The main setup creates a single tab at the top of the page entitled "auto ed". Clicking this tab will open the editform (if it isn't already open) and run the script, making various fixes depending on what modules you are using, and finally clicking the "diff" button so that you can see the changes. Right now the modules are very limited and customization isn't fully implemented, but the presets described below present an easy way to use the script without needing to know JavaScript or understanding the technical details of the script.

Customization change

Wikipedia:AutoEd/Customization will contain details on how to customize this script and create new modules and presets. It is not yet completed, but currently contains some basic information about variables and choosing your own modules which may be useful.

wikEd change

AutoEd is also compatible with wikEd. For it to function properly, however, you need to add the following to your skin's .js page. This disables the diff page from opening automatically, but at this time is required in order for AutoEd's changes to be made correctly in WikiEd.

autoEdClick = false;

Presets change

Although each user can customize AutoEd to fit their personal tastes, and can even use its core coding to help build other scripts, AutoEd has a number of "preset" customizations which can be used without any knowledge of JavaScript. So far the "basic", "wikichecker", "formatter", and "complete" presets have been created, although what they do will continue to expand and more presets can be created by any user or upon request.

To install a preset, just add the code given in each section to your skin's .js page and purge your cache by following the instructions on that page. The script should then be installed and ready for use; if it doesn't seem to be working, please mention this on the talk page so that we can try to fix it.

Basic change

The "basic" preset serves to cleanup various problems with wikitext, headlines, templates, and ISBNs.

importScript('Wikipedia:AutoEd/basic.js');

Once installed, the "auto ed" tab should appear on all non-talk pages. Clicking it will run the following fixes:

  • HTML entities like Ö will be replaced with their unicode characters like Ö.
  • Some headline names will be fixed to comply with the manual of style (e.g., "Weblinks" becomes "External links")
  • HTML code like <i> or <h1> will be replaced with the equivalent wikitext.
  • <br> HTML tags will be fixed to use correct HTML or XHTML syntax.
  • A space will be added before the slash in <references/> so that it looks more like standard XHTML.
  • The unneeded "Template:" prefix will be removed from template names.
  • Unicode control characters will be removed. These characters are hard to remove by hand because they all "invisible", but they can cause problems and unnecessarily increase the page's size.
  • ISBNs will be modified to allow WikiMagic to work. See WP:ISBN for details.
  • Some wikilinks will be simplified. For example, [[dog|dogs]] becomes [[dog]]s. Wikilinks which link to the current article are also removed.
  • Redirects to {{Reflist}} are changed to actually use the main {{Reflist}} template (this can help certain scripts which don't detect the redirects as being the same as the main template).
  • Substituted {{Reflist}} templates are replaced with the non-substituted version.
  • Bold text is removed from the beginning and end of headlines; this is typically unnecessary formatting.
  • Colons are removed from the end of headlines; it is typically bad form to have a colon after the section name to "introduce" the section's main text.

If you want, you can view the code for this preset at Wikipedia:AutoEd/basic.js

Formatter change

This preset is designed to function as a replacement for the Formatter script, and it includes most all of the functions of that script, plus a few more.

importScript('Wikipedia:AutoEd/formatter.js');

This script features all of the functions of the basic script except for template and ISBN cleanup, along with the following:

  • Whitespace is cleaned up.

It also differs from the basic version because the name of the tab at the top of the screen is changed to "format".

The code for this preset can be viewed at Wikipedia:AutoEd/formatter.js.

Wikichecker change

This preset is designed to fix as many of the errors listed at Wikipedia:WikiProject Check Wikipedia as is possible for a semi-automated script.

importScript('Wikipedia:AutoEd/wikichecker.js');

This script features all of the functions of the basic script along with the following:

  • HTML tables will be converted to wikitables. This change often needs fine-tuning to make sure that there aren't any problems, which is why it isn't included in the basic script.
  • <br> tags will be removed from the ends of image descriptions, wikilinks, and templates, and when they are at the end of lines in bulleted lists. This change can sometimes cause errors so more detailed manual checking is needed than with some fixes.

It also differs from the basic version because it provides a link in the automatic edit summary to the WikiProject Check Wikipedia page and the name of the tab at the top of the screen is changed to "check".

The code for this preset can be viewed at Wikipedia:AutoEd/wikichecker.js.

Complete change

This preset does just what it sounds like it should: It contains almost all of the modules created for AutoEd. The only current exception is Fullwidth, which has a higher-than-normal number of false positives. You can still use this module by following the instructions at Wikipedia:AutoEd/Customization.

importScript('Wikipedia:AutoEd/complete.js');

The code for this preset can be viewed at Wikipedia:AutoEd/complete.js.

Modules change

Community managed change

This table lists the core community managed "modules" available for use.

Module Basic Formatter WikiChecker Complete Description
ExtraBreaks No No Yes Yes Removes some extra <br> and <br /> tags
Fullwidth No No No No Replaces "fullwidth" characters with normal characters
Headlines Yes Yes Yes Yes Cleans up headline names and syntax
HTMLToWikitext Yes Yes Yes Yes Converts HTML code to corresponding wikitext
ISBN Yes No Yes Yes Fixes ISBN links to allow WikiMagic to work
Links Yes Yes Yes Yes Cleans up some common problems with external links
TablesToWikitext No No Yes Yes Converts HTML tables to wikitables (usually needs additional editing to make sure that there aren't errors).
Templates Yes No Yes Yes Cleans up some template syntax
UnicodeControlChars Yes Yes Yes Yes Removes "invisible" unicode control characters
UnicodeHex No No No Yes Converts hex encoded characters in wikilinks to unicode
Unicodify Yes Yes Yes Yes Converts HTML entities to unicode characters
Whitespace No Yes No Yes Adds and removes whitespace in certain locations
Wikilinks Yes Yes Yes Yes Cleans up and simplifies internal links
Dashes Yes Yes Yes Yes reformats dashes per WP:MOSDASH. Created by GregU.

User managed change

The following list contains user managed and maintained scripts available for INDIVIDUAL USE, they are NOT INTEGRATED into the main AutoEd packages.

Userbox change

There is a customizable AutoEd userbox at Template:AutoEd userbox, for those interested in such things.