Manual:Pywikibot/selflink.py

selflink.py is a pywikipedia script which checks pages to see if they self link, and then offers the operator a chance to do something about it. For instance, a self link to this page would be   This automatically emboldens the text, like, which is not usually desirable.

Syntax
The script is called by typing   The parameters allowed are the same as those employed by Manual:Pywikipediabot/pagegenerators.py. Consult that page for a complete list of possible parameters. Parameters are necessary for the operation of this script. If you type just  you will be given a dump of the help file informing you of the fact that you need to add a parameter.

Usage
Once the script starts searching through your pages, it will stop whenever it finds a self link and give you the opportunity to either leave it alone, change it to proper bold text (e.g., ), or simply unlink it (e.g.,.

You can also chose to "unlink all", but this is unadvisable. Some editors actively choose to use a self link in the leads of articles, since it has the same net effect as "proper" bolding. Thus, choosing to "unlink all" would put the script on "automatic" and potentially deprive some articles of bold text at the beginning of some articles. Since many wikis require this in their manuals of style, running this bot on automatic could do more harm than good.