Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Installation guide  





2 Documentation  



2.1  Customization  





2.2  wikEd  







3 Presets  



3.1  Basic  





3.2  Formatter  





3.3  Wikichecker  





3.4  Complete  







4 Modules  



4.1  Community  





4.2  User  







5 Userbox  














Wikipedia:AutoEd






العربية
فارسی
Bahasa Indonesia


Simple English
 

Edit links
 









Project page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


AutoEd (source) is a user script that helps to automatically make certain changes in articles. It 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 primarily by Plastikspork.

AutoEd should not be used to make edits that only remove whitespace or that make no change in the actual appearance of the article. Exceptions exist, such as fixes for syntax errors or removal of invisible characters; see WP:COSMETICBOT for details and links.

Installation guide[edit]

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 discussion page for help.

  1. Sign into Wikipedia. (This feature is only available for registered users.)
  2. Make sure your web browser supports JavaScript. Unless you are using a decades-old web browser or have explicitly ordered it to disable JavaScript, you don't need to do anything.
  3. Go to your common.js page.
    • Expert users may wish to activate AutoEd only when a certain skin is active. So, instead they should go to the .js page corresponding to their current skin. See the "Appearance" tab of Special:Preferences for a list of all .js pages.
  4. Click "Edit" or "Create" on the .js page.
  5. Add one of the presets to the page and save it. To import all the "official" modules, add importScript('Wikipedia:AutoEd/complete.js');
    • If you want to use modules not included in presets, see § Customization, below.
    • To install the "complete" module on all wikis, import the following code to m:Special:MyPage/global.js: mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/complete.js&action=raw&ctype=text/javascript'); Make sure AutoEd's edits are in line with every wiki's own Manual of Style.
  6. Go to any page you can edit. Under the "More" or "Tools" drop-down menu tab at the top of the article, you should see a new entry labeled "auto ed". This entry should be visible in both the viewing and editing modes. If you don't see it, bypass your cache or ask us for help.

Documentation[edit]

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[edit]

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[edit]

AutoEd is also compatible with wikEd. For it to function properly, however, you need to add the following to your monobook.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 wikEd.

autoEdClick = false;

Presets[edit]

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 monobook.js page (if you're using a different skin, you probably know what to do) 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[edit]

The "basic" preset serves to clean up 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:

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

Formatter[edit]

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:

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[edit]

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:

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[edit]

This preset does just what it sounds like it should: It contains most of the modules created for AutoEd.

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

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

Modules[edit]

Community[edit]

This table lists the core community "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 Yes Replaces fullwidth characters with normal characters. May incorrectly replace interwikis
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 Removes unnecessary suffixes from "ISBN"
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

User[edit]

If you create new modules, feel free to add them onto this list alphabetically. If a module is in your userspace, please put your user name for "maintainer".

Userbox[edit]

There is a customizable AutoEd userboxatWikipedia:AutoEd/Userbox, for those interested in such things.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd&oldid=1218061511"

Category: 
Wikipedia scripts
 



This page was last edited on 9 April 2024, at 13:53 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki