User:MusikBot II/TemplateProtector
NOTE TO ADMINS: Is the bot protecting a page you don't want protected? Set the exclusions or regex_exclusions options in the configuration. Contact MusikAnimal if you need assistance. |
TemplateProtector
Automatically protects high-risk templates and modules, as specified in the configuration.
To disable, set /Run to anything other than true
(link)
Errors are logged at /Error log
Configuration
[edit]The configuration file lives at /config. Any changes will require the intervention of an administrator. You can make requests either on the config talk page or using the {{edit fully-protected}} template. Please include links to relevant discussions.
thresholds
[edit]This contains the thresholds for each available protection level. The available protection levels (keys) include sysop
and autoconfirmed
. The values represent the threshold, which is the number of transclusions at which the page should be placed under the specified protection. If the bot should never use a given protection level, set the threshold to null
. Naturally, thresholds should increase relative to the protection level. For instance, if autoconfirmed
is to 500, then template
should be greater than 500.
Any changes to the thresholds should represent established consensus.
exclusions
[edit]This is a list of pages that the bot should ignore entirely. The key should be the fully qualified page title, including the namespace. Spaces and underscores within the page title can be used interchangeably. The value is a string that can be used to leave a comment summarizing why you excluded the page. If you feel no comment is needed, leave a blank string as the value, as with ""
.
regex_exclusions
[edit]Excludes pages matching the given regular expression. Add (?i)
at the front of your regex string to make it case-insensitive. Escaped characters must be double-escaped when entering it, e.g. type \\s
instead of \s
.
ignore_offset
[edit]This specifies the number of days the bot should wait after a previous protection level change (by another admin) before taking further action. For example, if the value is 7
, and User:Admin adds or changes the protection of Template:Foo, the bot will ignore Template:Foo entirely for a week.
namespaces
[edit]IDs of namespaces the bot should check. This should only include namespaces where such pages are commonly transcluded.
summary
[edit]The protection summary. The same summary will be used regardless of the protection level or what namespace the page is in.