Manual:Pywikibot/solve disambiguation.py/en



solve_disambiguation.py is a Python bot script to help a human solve links to disambiguation pages by presenting a set of options.

Type in the disambiguation page on the command line. The program will pick up the page, and create a menu of all outbound links found on the page, with a unique number adjacent to each link. It will then automatically loop over all pages which refer to the disambiguation page, and show 30 characters of context on each side of the reference to help you make the decision between the alternatives. It will ask you to type the number of the appropriate replacement, and perform the change.

It is possible to choose to replace only the link (just type the number) or replace both link and link-text (type ' ' followed by the number).

Multiple references in one page will be scanned in order, but typing ' ' (next) on any one of them will leave the complete page unchanged. To leave only some reference unchanged, use the ' ' (skip) option.

Command line options (in addition to the general options for all bots):

To complete a move of a page, one can use: