Jump to content

User:Equazcion/OneClickArchiver

From Wikipedia, the free encyclopedia
User script
OneClickArchiver
Archive progress screenshot (bottom, click to see full).
The "Archive" link (top) shows at the extreme
right side of the screen.
DescriptionAdds archive links to discussions, allowing one-click archiving of individual sections
AuthorEquazcion
StatusStable
UpdatedOctober 22, 2013; 12 years ago (2013-10-22)
BrowsersFirefox, Chrome, Opera
SkinsVector
SourceUser:Equazcion/OneClickArchiver.js
Note: This script is no longer being actively developed.

OneClickArchiver allows you to instantly archive a single discussion with a click, via an "archive" link that displays for each section on discussion pages.

Noticeboards and other high-traffic discussion pages, normally archived automatically by bots, have gotten long and less manageable recently due to bot instability. OneClickArchiver was created to better enable experienced editors to clear out old discussions themselves, without having to rely on bots. Any discussion page can be set up to use OneClickArchiver.

Public noticeboards should only be archived by experienced editors who understand when archiving is or is not appropriate. Respect a public page's posted archiving policy regarding how long its discussions must be inactive before they are archived.
If you do not know how to do this, do not attempt to archive the page.

Archive page

[edit]

This script uses a page's MiszaBot configuration (see User:MiszaBot/config) to determine the archive page. You can enable OneClickArchiver support on a page without a MiszaBot configuration (such as your own user talk page) by using {{Archive basics}} and including its two required parameters. Clicking the archive link on pages without a MiszaBot configuration or {{Archive basics}} (with both required parameters) will not successfully perform an archive.

Further technical notes

[edit]
  • Activates only on pages that contain an "add section" tab.
  • Only uses the bot configuration's page name and counter number. It will not respect the max archive size, for example, so it will continue archiving to the same page until the counter is changed manually or by an archiving bot.
  • Its speed depends largely on the size of the archive and origin pages. Most pages archive quickly, but noticeboards that tend to get very long, like WP:ANI, can show a significant delay (in the neighborhood of 10-30 seconds, depending on how fast the servers are responding that day). The script code itself executes instantly, but the API's response time for page edits can cause delays.

Installation

[edit]

To use this script: Copy the line below, then [click here], paste the line, and hit the save button.

  • {{subst:iusc|User:Equazcion/OneClickArchiver.js}}
  • Report any issues on the talk page.

Usage

[edit]

Please consider not using any of these tools on talk pages you're otherwise not involved in. Also please respect local consensus regarding archiving old discussions; for instance, if you see parameters for an archive bot, that probably means you archiving (using these tools or otherwise) isn't necessary or even appreciated.[a] Also please consider not emptying out talk pages completely or reducing the number of topics below four (4). Some editors find a blanked-out talk page[b] visually jarring/unfamiliar and significantly less welcoming to newbie editors (keeping some existing discussions - even if very old - is a very user-friendly way of saying "you are welcome to contribute here"). Thank you for your understanding.

Notes

[edit]
  1. ^ In particular, if the bot has ceased working properly, consider fixing the problem instead of using these tools
  2. ^ or even, if using the legacy Vector skin, a page with no Table of Content; one appears automatically only on pages with four or more top-level sections