User:Commander Keane/Disambiguation

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Proj: Dab's
Repair collab.
Template list
DPL count
My bot

Next WP:DPL dump: checklist[edit]

When the new database dump for WP:DPL finally arrives it is my intention to enhance each of the disambiguation pages to allow 100% completion of the dump (a feat which has failed to be accomplished in the past 3 dumps, maybe more). The checklist includes:

  • Checking the style of each dab, and if it needs work tagging with {{disambig-cleanup}}
  • Ensuring each dab has it's own talk page. Often a dab is a result of a previous page move and still doesn't have it's own talk page. For example, until about 10 minutes ago Talk:Continuity used redirect to Talk:Continuity (fiction).
  • If redirection is a good idea, starting discussion on the dab's talk page about redirection to see if there is consensus to do so.
  • Adding the {{WPDPL}} template to the talk section of each dab, with a "Disambiguation pages with links" talk section promoting discussion about link repair.

Useful links[edit]

Edit summaries[edit]

  • disambiguation link repair ([[Wikipedia:Disambiguation pages with links|You can help!]])
  • [[Wikipedia:Manual of style (disambiguation pages)]]

The pywikipedia bot[edit]

I use the pywikipedia bot (specifically Solve for much of the link repair that I do. All of the discussion here is about using the bot for link repair.

How it works[edit]

  • Solve visits a disambigaution page that you specify, and numbers each of the wikilinks.
  • It then visits pages from the "What links here" of the dab, and presents them to you one at a time
  • It shows you 60 characters around the link that needs to be repaired, and lets you type in an option. You can unlink it, skip it, or type in a number corresponding to a wikilink from the dab
  • The bot will find the next link to be repaired in the article, or save and move onto the next article.


The installation process was a little confusing to me the first time I did it, so I thought I'd provide some simple (hopefully) instructions for Windows users. I still recommend you read through all the docuemtnation at WP:BOTS, Meta:Using the python wikipediabot. You can't use the bot effectively unless you know what disambiguation link repair is all about, I'd say at least a month of DPL is needed before you progress to the bot.

  • After creating a new user that the bot will operate under (eg Commander Keane bot) visit the talk of WP:BOTS, and state your case for having a bot. Once you are cleared for a trial run place the bot in the Bots running without a flag section.
  • Download and install Python [1]
  • Download and intall TortioseCVS [2]
  • Create a new folder on your computer (I just made up a new one on the desktop). Right-click on the folder and click "CVS checkout...".
  • Fill in this info, then hit OK:
Protocol: Password server (:pserver:)
Port <leave blank>
Repository folder: /cvsroot/pywikipediabot
User name: anonymous
Module pywikipedia
  • The bot is now in a "pywikipedia" folder within the folder you created a minute ago. Go into the "pywikipedia" folder, copy all the files and paste them into your python folder. For me that was "C:\Program Files\Python24".
  • In the Python folder, create a new file called "", you need to write in some info, for example the contents of my "" are:
mylang = 'en'
usernames['wikipedia']['en'] = 'Commander Keane bot'
  • Double click on the "" file.
  • Now you can use the bot. You can update the bot at anytime by right clicking on your python folder (eg Python24) and selecting CVS Update.

How to use the bot[edit]

Starting the bot[edit]

Solve is the part of the bot that does link repair. You can open it simply by double clicking it, or from the command prompt:

  • Start | Run | "cmd" (to open the command prompt)
  • "cd C:\progra~1\python24" (to get to the python folder)
  • "python"

Even though it takes much longer, by using the command prompt you can specify options. For example:

  • "python -main"

will let you only work on the main namespace. You can't use options like this when you just double click on the "" icon. Also, you can make an icon to do the the four steps above, then the bot (with the -main option) will only be a double click away). Ask me if you are interested in that.

Either way, the bot will ask "Which page to check:". Type in the dab's name and away you go.


This a selction of questions which I have asked (mainly the very generous and ever knowledgeable RussBlau).

How do you stop the bot beeping?[edit]

In the "" file, add the line " ring_bell = False;"

Can you personalise the edit summary?[edit]

Yes. In the "" file, add the line:

disambiguation_comment['wikipedia']['en'] = "Robot-assisted disambiguation ([[WP:DPL|you can help!]]): %s"