User:MummificationBot

From RationalWiki
Jump to navigation Jump to search

Basic instructions; copy/paste this at the top of a talkpage:

{{Talkpage/Pibot
|algo = old(30d)
|archive = {{subst:NAMESPACE}}:{{subst:PAGENAME}}/Archive%(counter)d
}}

This will archive sections that have been inactive for 30 days.

Full parameters can be seen at the archive.py help page.

You can use Talkpage/PibotHidden if you don't want the green box with a list of archives.

Prevent archiving[edit]

The easiest way is to add (sticky) add the end of a title, for example:

== Hi there (sticky) ==

You can also "schedule" a section for archival with a fake timestamp in comments:

<!-- Prevent Archive 21:09, 1 December 2016 (UTC) --> 

Means the bot won't archive it until the 1st of December 2016 plus whatever you set algo to.

Tech notes[edit]

Uses the Pywikibot's (2.0rc3) archive.py script being run as:

python2.7 pwb.py archivebot.py Talkpage/PibotHidden 2>&1
python2.7 pwb.py archivebot.py Talkpage/Pibot 2>&1

Doesn't seem to like Python 3.4...