The Bots and Nobots templates tell bots and other automated editing tools and scripts that they either should or should not edit a page that has the template. The templates can be used to block most bots (all bots that have implemented this functionality) or specific bots by name or function. These templates should be used carefully outside userspace to avoid blocking useful bot edits.
Important notes
Most bots will NOT understand these templates when they are indirectly transcluded.
Most bots will not disregard the template if it is inside of <nowiki> ... </nowiki> tags. For example, if you are discussing the templates with another editor, please use the {{tl}} template, e.g. {{tl|Nobots}}, which will show {{Nobots}}, rather than <nowiki>{{Nobots}}</nowiki>, which will possibly be parsed as intending to ban bots from the page.
Usage
Place the template anywhere on a userpage or user subpage to opt out from routine bot edits, under rule 9 of Wookieepedia:User page and profile policy.
Syntax
| Code | Description |
|---|---|
{{Nobots}}
|
Ban all compliant bots (shortcut that takes no parameters) |
{{Bots}}
|
Allow all bots (shortcut that takes no parameters) |
Where <botlist> is a comma-delimited string of bot usernames (AWB can be used for all AWB-based bots):
| Code | Description |
|---|---|
{{Bots|allow=<botlist>}}
|
Ban all compliant bots not in the list |
{{Bots|deny=<botlist>}}
|
Ban all compliant bots in the list |
{{Bots|allow=SineBot,Legobot}}
|
|
{{Bots|deny=AWB}}
|
<botlist> can also be "none" or "all" as in the following examples:
| Code | Description |
|---|---|
{{Bots|allow=all}}
|
Allow all bots |
{{Bots|allow=none}}
|
Ban all compliant bots |
{{Bots|deny=all}}
|
Ban all compliant bots |
{{Bots|deny=none}}
|
Allow all bots |
Bots are not bound to observe the nobots template; it will depend on their functionality, their owners and their terms of approval.
Incorrect syntax
This syntax looks correct, but depending on the individual bot may not have the intended effect. This statement may deny neither Bot1 nor Bot2, only one of the two bots, or both bots as intended.
- Incorrect syntax
{{Bots|deny=Bot1|deny=Bot2}}
- Correct syntax
{{Bots|deny=Bot1,Bot2}}
Implementation
- Pywikibot supports bots and nobots since r4096. The templates may be ignored using a parameter.
- Since version 3.2.0.0 AutoWikiBrowser fully supports {{Bots}} and {{Nobots}}. Additionally, pseudo-username AWB can be specified to ban all AWB-based bots from the page. However, AWB has an option to ignore these templates.