Manual:Pywikibot/archivebot.py/setup/zh

archivebot.py是一個存檔討論頁的程序，本文見說明如何在wiki上設定要讓機器人存檔的討論頁. 操作機器人的完整說明文件請見Manual:Pywikibot/archivebot.py.

如何設定討論頁
機器人只處理明確透過嵌入引用標記模板的頁面，且不活躍指定時間的討論頁. 常用的標記模板是. 該模板應該有以下所列的這些參數（大多是可選的）.

要存檔的章節必須是2級章節，由 所標記. 可設定不存檔特定的章節，見底下的說明.

模板參數
模板參數的意義如下所示：

頁面名稱模式的變數
In the  parameter in the template, following variables can be used.

如何避免被存檔
To prevent a section (thread) from being archived for a finite time, you can edit the section and insert a signature with a future timestamp. The bot will not archive the thread until that time. Make sure that the signature is well-formatted; it must include a user name and a date exactly in the same format as a proper signature, otherwise it will not be recognized by the bot.

You can block a thread from being archived effectively indefinitely, using a very distant future timestamp, such as " (UTC)".

To not confuse readers, the dummy signature may be written as a comment only with the dummy user name "DoNotArchiveUntil". Other comments will be ignored by the bot.

You might want to have on your wiki a substitutable template for this particular purpose. See English Wikipedia's template for an example: w:Template:DNAU.

參見

 * w:Help:Archiving a talk page - most of what is written there is not specific to English Wikipedia.
 * w:User:MiszaBot/config