Category:Bots/Archival
Jump to navigation
Jump to search
This bot task is not fully performed by an active bot. There is currently none capable of doing it, although a bot may be extended to perform this task regularly sometime in the future. |
Pages in this category are tagged for automated archival. They must contain the following configuration tag with the appropriate information on the configuration page. Pages without a correct configuration tag will be skipped.
<!-- <bot type="archival" configuration="{config}/Archival#Wikisource:Scriptorium" /> -->
A bot will regularly go through this category and archive sections that are tagged with the following bot tag, where "section_name" is the name of the section to archive to (and is listed in the configuration).
<!-- <bot action="archival" section="section_name" /> -->
Bot procedure
[edit]This is a detailed outline of the steps a bot may follow when activated. This section exists to aid in the creation of a script to perform this task.
- Search and verification
- Retrieve the list of pages in Category:Bots/Archival.
- Load the first page in the queue.
- Check if a valid archival tag is used (regex: (?://|/\*|<!--)?\s*<(bot\s*type="archival"\s*configuration="{config}[^"]*")[^/>]*)/?>\s*(?:\*/|-->)?)).
- If it isn't, add an appropriate note of this (regex: <!-- bot:error:invalid configuration tag:"$1" -->).
- If so, proceed.
- Check if any sections contain an action tag (regex: (?://|/\*|<!--)?\s*<(bot\s*action="archival"\s*section="([^"]*)"[^/>]*)/?>\s*(?:\*/|-->)?).
- If not, add an appropriate note of this (regex: <!-- bot:error:invalid archival tag:"$1" -->).
- If so, proceed.
- Check each tag and ensure that the section matches one listed in the configuration.
- If not, add an appropriate note of this (regex: <!-- bot:error:invalid section parameter:"$2" -->).
- If so, proceed.
- Archival
- Remove from the current page
- Count the number of sections that are correctly tagged.
- Remove the appropriate sections from the page.
- Save with the edit summary "[bot] automated archival of n sections", where n is the aforementioned count.
- Archive
- Place them at the bottom of the appropriate section in the archive.
- Remove the bot action tags.
- Save with the edit summary "[bot] automated archival of n sections", where n is the aforementioned count.
- Update the topic listing.
- Remove from the current page
- Proceed to the next page.
Pages in category "Bots/Archival"
The following 5 pages are in this category, out of 5 total.