User:andrybak/Scripts/Archiver
Description | Simplifies manual archiving |
---|---|
Author(s) | Σ, Enterprisey, andrybak |
First released | 2022-10-02 |
Updated | October 1, 2024 (31 days ago) |
Skins |
|
Source | User:Andrybak/Scripts/Archiver.js |
Archiver is a user script for semi-automatically archiving multiple talk page sections at a time. The script doesn't require manually typing archive pagename in most cases.
How to install
[edit]On English Wikipedia it is recommended to install this script using the script-installer gadget, which can be turned on at:
- Preferences → Gadgets → Advanced → Install scripts without having to manually edit JavaScript files (documentation) (direct link)
Then you can go back to this page and click the big blue "Install" button in the infobox.
To install the script on another wiki (including your global.js), use the following snippet:
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Andrybak/Scripts/Archiver.js&action=raw&ctype=text/javascript');
Instructions
[edit]How to use the script after installation.
- Open the talk page you want to archive
- Click on "ⵙCA" (stands for "ⵙne Click Archiver") in "Tools"
- Click "[archive]" near the headers of sections you want to archive
- Click the big button "archive <number> selected threads" at the bottom of the page
- In the popup, check the full page name of the destination, which is calculated automatically.
Destination page calculation
[edit]To find the destination page for the archived sections, the script looks through subpages and tries to find an archive page with the highest number. Supported formats are /Archive 1
(most commonly used format), /Archive 2024
(format for annual archives) and a similar format with slashes instead of spaces (/Archive/1
, not supported for yearly subpages). The script doesn't use templates that configure automatic archiving by bots (like {{User:MiszaBot/config}}), which is done by other similar scripts.
History
[edit]- Currently, this script is a fork of User:Enterprisey/archiver (Special:Permalink/1113588553) – current diff
- Before incorporating changes of Enterprisey's version, this script was originally a fork of User:Σ/Testing facility/Archiver (Special:Permalink/1003561411) – current diff