User:WeggeBot/Archive

Include this page on your talk page, if you want it automatically archived by WeggeBot. Simply add  to your talk page. WeggeBot will recognize a number of options:


 * archiveage = «number» : days | weeks | months -- Archive sections where the newest timestamp is at number of days, weeks or monts old.
 * archivesize = bysize | bynum : «number» -- The maximum size of an archivepage. Bysize : number specifies a maximum size in kilobytes. Bynum : number specifies a maximum number of sections on each talk page.
 * archiveprefix = «text» -- Prefix for the archive pages.

The default values are:
 * archiveage = 2 : months -- Archive sections older than two months.
 * archivesize = bysize : 32 -- Start a new archive page if the size of the current page would exceed 32kb. Note that at least one discussion goes into each page, so any discussion section larger than 32kb will be archived. The same goes for the number of discussion sections per page, so there's no need for playing silly buggers with negative numbers.
 * archiveprefix = Archive -- New archivepages will be created as subpages to the current page with names "Archive 1", "Archive 2", ...

To archive discussions older than 3 weeks, limit archive page size to 24kb, and create a archive pages named "Talk page archive 1", "Talk page archive 2", ... add the following to the talk page:

Users wanting to have exactly 20 discussion thread on each archive page, wanting discussion threads to be archived after 2 months, and wanting talk page archives named "Old talk 1", "Old talk 2", .. should add the following to their talk page:

Any unspecified options will be pulled from the defaults mentioned above. When updating a talk page, the default values will be added to the inclusion text, making the default values explicit.

WeggeBot will archive all H2-sections (headline starting with ==) until the the next H2-section or the end of the page if the newest recognizable timestamp within that section is older than the maximum age specified by archiveage. In sections where no timestamps is recognized, an invisible comment ( ) is added to the section. On subsequent visits to the talk page, this timestamp will be used to determine if the section should be archived.