Template:Nobots/doc

__NOWYSIWYG__

Description
These templates tell bots and automated editing tools/scripts that they should or should not edit that page. The templates can be used to block most bots (all bots that have implemented this functionality) or specific bots by name or function. For example, this can be used to opt-in or opt-out from user talk bot messages or to cause maintenance bots to avoid certain pages. These templates should be used carefully outside userspace to avoid blocking useful bot edits.

Explicitly opting-in has the advantage of possibly receiving useful changes or targeted posts that might otherwise be skipped by the bot assuming a default "opt-out" behavior. Users should be aware that by opting-out of bot posts, they will not be notified of matters relating to material they have edited or uploaded, which are tagged or scanned by bots per policy.

In particular, in the encyclopedia spaces:
 * Avoid using the template as a blunt instrument
 * Address the root problem with the bot owner or bot community
 * Remove the template tag once the underlying problem has been resolved.

Syntax:
                 Ban all compliant bots (shortcut)                    Allow all bots (shortcut)

   Ban all compliant bots not in the list     Ban all compliant bots in the list

Where is a comma-delimited string of bot usernames (AWB can be used for all AWB-based bots):       

 can also be "none" or "all" as in the following examples:        Allow all bots       Ban all compliant bots

        Ban all compliant bots        Allow all bots

Bots are not bound to observe the nobots tag; it will depend on their functionality, their owners and their terms of approval. The bots that currently support exclusion are listed at exclusion compliant bots.

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

Instead, write:

       CORRECT

Implementation

 * Pywikipediabot supports bots and nobots since r4096. The templates may be ignored using a parameter.
 * Since version 3.2.0.0 AutoWikiBrowser fully supports and  . 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.
 * Opt out message notification was introduced here April 3, 2008. Individual bot/script implementation will vary and notice above of implementation may not include this feature.

Python
This code assumes that the mwparserfromhell library was installed and imported in the current script.