模板:Auto archiving/doc:修订间差异
wiki>기나ㅏㄴ 小 Reverted edits by ~2025-32439-91 (talk) to last version by Tacsipacsi: unexplained content removal |
小 导入1个版本 |
(没有差异)
| |
2025年12月16日 (二) 16:39的最新版本
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Auto archiving. It contains usage information, categories and other content that is not part of the original 模板 page. |
This template is used by User:ArchiverBot, which runs approximately once per day, to archive old discussion pages.
IMPORTANT: Make sure to establish consensus before using this template on any page other than your user talk page. Note that in some cases archiving is better handled manually than with a bot, so a discussion is required prior to enabling automatic archiving.
Usage
See Manual:Pywikibot/archivebot.py/setup for complete details on how this template can be used. Please note that the template should be added directly to the page to be archived; the bot reads the wikitext of the page, so it won't find the configuration if it's transcluded from another page (like a talk header).
Parameters that will most often be used here include:
- archive - The pattern corresponding to where threads will be archived. For simple cases this might simply be a page name: "
Project:Page name/Archives". In more complex cases the pattern might be based on the date: "Project:Page name/Archives/%(year)d/%(monthname)s". - algo - The maximum age of a thread before it can be archived. Note that this parameter corresponds to the last time a comment was added to a thread, not how long it has been since the thread was created. A value such as "
old(28d)" would indicate that threads must have been inactive for 28 days before they will be archived. - minthreadsleft - The minimum number of threads to leave on a page.
- minthreadstoarchive - The minimum number of threads to archive at once.
- archiveheader - When new archive pages are created, this content will be placed at the top of the new page.
Example
The following is an example showing usage of this template to archive old threads:
{{auto archiving
|archive = Project:PageName/Archives/%(year)d/%(monthname)s
|algo = old(14d)
|minthreadsleft = 2
|minthreadstoarchive = 1
|archiveheader = {{talk archive}}
}}