This is documentation for the AutoArchive script, written by User:Ale jrb at my request and further tweaked by me. - ALLSTRecho wuz here  08:23, 14 July 2009 (UTC)

What is it?

edit

AutoArchive is a handy tool that pastes in the MiszaBot auto-archiving template.

How does it do it and how do I help it do it?

edit
  • The AutoArchive script places a link at the top of all Wikipedia pages.
  • This link says, 'auto-archive'.
  • While it will work on all Wikipedia pages, it's only meant to be used on talk pages where discussions between users are to be archived. Examples, of course, would include article talk pages and user talk pages.
  • While at a talk page and by simply clicking the 'auto-archive', the script will automatically open the talk page for editing, will automatically paste in 2 templates at the very top and will automatically fill out the edit summary.
  • The 2 templates pasted are {{talkheader}} and the MiszaBot template.
  • The reason I included the talkheader template is because it, itself, automatically includes links to any related archives so there's no need for a separate archives box to list any archives present.
  • Then all you have to do is fill out the MiszaBot template parameters for your desired results.
  • If you don't need or want the talkheader template, just remove it.
  • Once you're done with the parameters, click Save.
  • MiszaBot will eventually get around to carrying out what you told it to do via its template.


Installation

edit

Of course, none of the above will work if you don't install the script first. To do so, simply copy and paste the following code into your monobook.js page:

//Creates link that when clicked on at an article's talk page it auto-opens article talk page for editing,
//pastes in MiszaBot archiving parameters and fills out the edit summary. All you have to do is adjust
//those parameters to your liking and click Save.
importScript('User:Allstarecho/autoarchive.js');

...then click Save.

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button. Firefox: hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Opera users have to clear their caches through Tools→Preferences; see the instructions for Opera. Konqueror and Safari users can just click the Reload button.

Additional note: This script has only been tested using the WikiPedia monobook skin. I do not know if it will work with other skins. If you use a different skin from monobook and this script works for you, please let me know.