User:Ucucha/duplinks

From Wikipedia, the free encyclopedia
Jump to: navigation, search

User:Ucucha/duplinks.js is a script that highlights links that occur more than once in an article. Per WP:REPEATLINK, terms should generally be linked only once in an article, but there are a number of exceptions to this rule. To account for these exceptions, this script considers only links that are within paragraphs (<p>...</p> tags) and ignores any links inside an infobox or navbox. In addition, it highlights duplicate links within the lead and within the body of the article separately.

Installation[edit]

To install the script, add:

importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]

to Special:MyPage/common.js. There will be a link "Highlight duplicate links" in the toolbox on the left on every mainspace article. Once in Edit mode, clicking it will highlight the duplicate links in the edit preview by drawing a red border around them.

Bugs[edit]

Please report any bugs here or on this page's talk page.