Manual:Pywikibot/archivebot.py/zh

archivebot.py是一個存檔討論頁的程式.

工作原理
此程序會檢查請求頁面的所有連入頁面（Special:Whatlinkshere）. 然後檢查所有的連入頁面（如果指定的參數則為特定頁面）並將舊討論存檔. 這將頁面分割成多個區塊，然後檢查每個區塊的時間戳. Threads older than a specified threshold are then moved to another page (the archive), the name of which can be based on either the thread's name or a counter that is incremented when the archive reaches a certain size. For a documentation on on-wiki setup, please see archivebot.py/setup.

参数
 Usage: archivebot.py [options] TEMPLATE_PAGE

Options: -help          show this help message and exit -calc:PAGE     calculate key for PAGE and exit -file:FILE     load list of pages from FILE -force         override security options -locale:LOCALE switch to locale LOCALE -namespace:NS  only archive pages from a given namespace -page:PAGE     archive a single PAGE, default ns is a user talk page -salt:SALT     specify salt -simulate      do not change pages, just simulate