User:Bility/Archive Talk Sections

This script adds links to your talk page sections for one-click archiving or deleting. It removes the section from your talk page and can append it to an archival sub-page. To use this script, copy/paste the following code into your JavaScript page:

Usage
The script will add links that say "archive" and "x" next to the ones that say "edit" in the section headers on your talk page. When you click the "archive" link, that talk page section will be removed and archived on a sub-page of your choosing. The "x" link will just remove the section without archiving it. You will also find a link to adjust the script settings in the upper right hand corner of your talk page, labeled "Archive Section Settings". This link brings up a dialog where you can set the archive page names and how how big you want to allow your archive pages to get.

For automated archive page naming, you don't have to adjust anything and it will put your talk sections at "/Archive n", where n is an increasing number. Alternatively, you can use a custom page name that you will have to manually update when the page reaches its maximum size.

Details
Here are some things you may want to know about this script.


 * Limitations
 * The script will only deploy on your main user talk (i.e. "User talk:your name").
 * You must be autoconfirmed to use the script.
 * Only sections with level two headings can be archived or deleted.


 * Other
 * This script creates a page in your user sub-pages at "User:your name/archiveTalkSectionsSettings.js" to store your settings.


 * Problems/bugs (let me know if you can help!)
 * If your script settings get updated automatically—which happens when you use the default naming and a new archive is created—the script settings dialog will be out of date and you will need to clear your cache (+).

Contact
If you need help or have suggestions or bugs, you can contact me here on this talk page or my main talk page.