User:ChiBot/Archiving


 * Note: This page details how you can customize how automated archiving is handled. You can, however place  at the top of your talk page for fast setup, or just modify one of the examples and use it.

ChiBot examine backlinks to User:ChiBot/config and archive old discussions on those pages. This is done by breaking a page into threads, then scanning each thread for timestamps. Threads older than a specified threshold are then moved to another page (the archive), which can be named either basing on the thread's name or the name can contain a counter which will be incremented when the archive reaches a certain size.

Format
Transcluded template may contain the following parameters:

Parameters
Meanings of parameters are:

Variables
Variables below can be used in the value for "archive" in the template above:

The ISO calendar starts with the Monday of the week which has at least four days in the new Gregorian calendar. If January 1st is between Monday and Thursday (inclusive), the first week of that year started the Monday of that week, which is in the year before if January 1st is not a Monday. If it's between Friday and Sunday (inclusive) the following week is then the first week of the year. So up to three days are still counted as the year before.

Static archive
This example will archive all threads which have been inactive for at least 7 days from User talk:Example to User talk:Example/Archive.

Incremental archive
This example will archive all threads which have been inactive for at least 31 days from User talk:Example to User talk:Example/Archive 1, provided that at least 4 threads are left on the page. Just before that archive has 70 kilobytes, the counter will be changed to 2, and threads will be then archive to User talk:Example/Archive 2, and so on, each new archive being created with the header Archive.

Date-based archives
This example will archive all threads which have been inactive for at least 5 days from User talk:Example to User talk:Example/Archives/2024/August. As the month and year change, the archive page will change accordingly, and each new archive will be created with the header MonthlyArchive.