Sample Page

ArticleLinkDiffs (source) shows a summary of added and removed article link instances at the top of diff pages. Links are shown in a modern presentation using cards (clickable visual containers). The presentation displays well in either light or dark mode.

If link errors are caught, they will be displayed as well. Currently, the script will catch incomplete links (those not having the expected “]]” end brackets).

If no article links were added or removed in a diff, and no link errors are caught, nothing will be displayed.

This script is useful for comparing article link changes in articles, templates, database reports, and any page that contains internal links to articles (mainspace pages, to be precise).

Notes:

  • Only bracketed links are considered when processing differences. Other forms of specified links, such as disambiguation links in hatnotes or “author-link=” within citations, are not considered at this time.
  • Performance may be sluggish when used on some diffs of very long pages, typically database reports, especially upon first report generation or a generation taking place after a database error.

Installation

To install the script, add the line:

{{subst:lusc|User:StefenTower/ArticleLinkDiffs.js}}

to Special:MyPage/common.js.

Or to install on all Wikimedia wikis, add:

mw.loader.load("//en.wikipedia.org/w/index.php?title=User:StefenTower.ArticleLinkDiffs.js&action=raw&ctype=text/javascript"); // [[w:User:StefenTower/ArticleLinkDiffs]]

to meta:Special:MyPage/global.js.