Wikipedia:WPCleaner/Page analysis



The Analysis window is used to repair all the links to disambiguation pages on the opened article. You reach this window by clicking on the Full analysis button of the main window. This window looks like this:

This window contains the following parts:
 * On the top part of the window:
 * The title of the page that you are repairing, i.e. User:NicoV/Antalla.
 * [[Image:WPCleaner_-_Tools_Menu_(en).png|right]] The Tools menu is used to fix redirect links and view the page with the templates' code included.
 * [[Image:WPCleaner_-_Options_Menu.png|right]] The Options menu is used to select what type of pages are shown in the list and what type are counted.
 * The Sort menu is used to choose how the list of links is sorted. Sort orders can be configured to suit your needs. (See Sorting options).
 * The Close after sending checkbox specifies if the window will be automatically closed after sending the page to Wikipedia.
 * The Add a note on talk page checkbox specifies if you want to post a comment on the talk page of the article after sending the page to Wikipedia.
 * The Update disambiguation warning on talk page checkbox specifies if you want to update the disambiguation warning on talk page if it's already there.
 * The Create disambiguation warning on talk page checkbox specifies if you want to add the disambiguation warning on talk page if there are still links to disambiguation pages.
 * The Automatic comment checkbox specifies if you want to use the default comment when updating the page on Wikipedia.


 * On the right part of the window, there is the text of the current page and a set of buttons:
 * You can right click in the text on an internal link, a template   or an external link   to bring up a contextual menu that has useful features.
 * The Gnome-go-first.svg, Gnome-go-previous.svg, Gnome-go-next.svg and Gnome-go-last.svg buttons find other occurrences of the links you have selected in the list.
 * The Gnome-edit-undo.svg and Gnome-edit-redo.svg buttons undo or redo a modification you have made.
 * The Gnome-format-indent-more.svg button lets you see and edit the table of contents of the article.
 * The Gnome-tools-check-spelling.svg button activates some spelling and typography checks.
 * The Nuvola apps kpager.svg buttons lets you add categories for a redirect page.
 * The Approve icon.svg button validates your modifications. It updates the count of links found for each disambiguation page in the left list, updates the main display, and memorizes the new text (for Undo/Redo).
 * The Gnome-document-send.svg button updates the page on Wikipedia. It is unavailable until a modification has been made on the page.
 * The Gnome-edit-delete.svg button deletes the page on Wikipedia.
 * The Gnome-dialog-warning.svg button updates the disambiguation warning on the talk page.
 * The Gnome-view-refresh.svg button reloads the page from Wikipedia (your current modifications will be lost).
 * The Gnome-emblem-web.svg button opens the current page in your web browser.
 * The Gnome-emblem-documents.svg button opens the current page history in your web browser.
 * The Add to Watch list button adds the page on your local WPCleaner watch list.
 * The Disambig colour.svg button opens a new window to analyze the page as a disambiguation page.
 * The (??) ⇒ (en) button helps translating an article coming from an other language, by translating internal links, templates and categories.
 * The time of the last modification of the page is displayed (in orange or in red if modifications are recent).
 * If the page is protected, the protection level is displayed.


 * On the left part of the window, there is a list of links found in the page:
 * In the above example, you can see that the page Antalla contains links to 2 disambiguation pages (Algheden and Barentu), followed by the number of occurrences (in this case, one each). You can right click on any item in the list to bring a contextual menu with useful features.
 * Above the list are the Gnome-system-run.svg button, which allows you to analyze the selected page(s) in the list, the Disambig colour.svg button which allows you to analyze the selected page(s) as a disambiguation page, and the Add to watch list button which allows you to add the selected page(s) to your local watchlist.
 * Below, the list of links, there is a list of errors detected by the Check Wikipedia project.

By selecting a page (or several) in the left list, the matching links are highlighted in the text (in bold, with either red, orange, or blue), and the display is shifted (if necessary) to show the first link found. Dealing with the individual situations is described below.

Dealing with links displayed in red
By selecting a page in the left list, some matching links are highlighted in the text in bold and in red. This is used when WPCleaner thinks that the links need to be repaired. By clicking with the right button of your mouse, a contextual menu is displayed, letting you do semi-automatic modifications.



The available options in this menu are:
 * Link to: Move the link to another page, but keep the displayed text. Links to wiktionary pages are also available when necessary.
 * Replace with: Move the link to another page, and change the displayed text.
 * Add to preferred disambiguations: Add a link to the list of preferred links to solve this disambiguation. Preferred links appears first in the Link to and Replace with options.
 * Reverse to ...: Swap the link and the text ( becomes  ).
 * Remove link: Remove the link to the disambiguation page, keeping only the displayed text.
 * Mark as normal link : Mark the link as being correct.
 * Mark as needing help : Request for help to fix this link and, by default, let you write a comment in the talk page.


 * Current chapter: Display the current chapter.


 * Analyze: Analyze the page of the selected link. This allows you to study the content of the page before repairing the link.
 * External Viewer : Display the page of the selected link in your web browser.
 * History : Display the history of the selected link in your web browser.
 * Disambiguation analysis: Analyze the page of the selected link as a disambiguation page.
 * Reload links: Reload the list of links.

In the Antalla example, the repairing can be done this way:
 * When the page is initially displayed, Algheden and Barentu are automatically selected in the left list and highlighted in the text.
 * By right-clicking on the link, the contextual menu is displayed. By highlighting Link to, we can see the available pages to link to. In this case, Barentu, Eritrea is the correct page. You may fix the link by selecting Link to &rarr; Barentu, Eritrea in the menu.
 * Click on Approve icon.svg to validate the modification. The number of links found is updated in the left list. The link to Algheden stays highlighted in the text.
 * By right clicking on the link, the contextual menu is displayed. The repairing is not obvious in this situation; we don't know what is the correct link. Ask for help by choosing Mark as needing help.
 * Click on Approve icon.svg to be sure that all links have been repaired.
 * Click on Gnome-document-send.svg to update the page on Wikipedia.
 * That's it; the Antalla page is almost repaired ! [[Image:Face-smile.svg|20px|:-)]]

Dealing with links displayed in orange
By selecting a page in the left list, some matching links are highlighted in the text in both bold and orange. This is when the link is either to a redirect page, is broken, or has been marked as needing help. Broken links are signified with a strikethrough. Redirect links can be bypassed either by right-clicking the link in the page text and choosing an option, or clicking on Tools menu on the top left of the window, and selecting the specific page. Links for which help is requested can be dealt with like links displayed in red.

Please note that there are many instances where links to redirect pages or red links should not be 'repaired'.

For guidance, please see the appropriate sections in WP:Redirect or WP:RED.

Dealing with links displayed in blue
By selecting a page in the left list, some matching links are highlighted in the text in both bold and blue. This is when WPCleaner thinks that the link does not need to be repaired, either because it has been previously identified as correctly directing to a disambiguation page, or is just a normal link.

Special situations
In some situations, WPCleaner doesn't find the links to disambiguation pages in the page text. This could be for multiple reasons:
 * The link is in a template used in the page. In this situation, it's the template that needs to be repaired to remove the disambiguation link from the page.
 * A special situation. If you believe that this situation can happen quite frequently, you can tell me so that I add this situation.

Several features are available to help in these situations:
 * Finding a word in the text: either by using Ctrl+F in the text of the page, or by right clicking on the left list (Option Find text in the contextual menu).
 * Analyzing templates used in the page: by right clicking on the left list (Option Analyze templates in the contextual menu). This feature displays a separate window listing all the templates in the page that have links to the selected disambiguation page. By double clicking on the template name, a window is displayed to repair the links in the model.