Template:Auto-archive/doc

This template is used to set up the user:cewbot for automatic archiving. The robot runs the program once a day.

Usage
This template must be embedded directly into the page you want to archive. Including it in a header subpage will not work; instead, it will archive the header subpage itself. The robot will only work on pages that explicitly transcluding this template, and will archive discussions that are not active for the specified time.

It is usually presented as,.

Example

 * : Archive discussions that no one has responded to in a week.
 * : Archive discussions that no one has responded to in a month.
 * : Archive to the subpage using the pattern by year and month.

How to avoid being archived
You can use Pin message.

TemplateData
{	"description": "Configurations for robot archiving discussions", "params": { "archive_after_last_comment": { "label": "Length of time", "description": "Archive discussions that no one has responded to in this time." ,			"default": "1 week", "type": "date", "required": false, "example": "\"7d\", \"7 days\", \"1w\", \"1 week\", \"1m\", \"1 month\"" },		"archive_to_subpage": { "label": "Archive to which subpage", "description": "If this parameter is not set, the robot will automatically detect the name and the latest index of the subpage. If there is no such page, a new one will be created. It is recommended to use auto-detection so that you can skip to the next number when the archive page is too large. The \"%1\" will be replaced by the latest index. There is always only \"%1\", there is no \"%2\"." ,			"default": "Archive %1", "type": "wiki-page-name", "required": false, "example": "Archive %1" },		"section_level": { "label": "Archiving chapter level", "description": "Generally archiving level 2 chapters", "default": "2", "type": "number", "required": false, "example": "3" }	} }