Extension:RPED

This is the Remote Page Existence Detection (RPED) extension.

What can this extension do?
Once equipped with a list of titles of pages existent on Wikipedia, this extension turns wikilinks to pages that don't exist on the local wiki different colors to reflect whether a page exists or not on Wikipedia.

Usage
Regular double-bracketed internal links will now link to Wikipedia when the article does not exist on the local wiki but exists on Wikipedia.

Situations may arise in which you have an option between having an article that is a one-line stub, or getting rid of that article so that wikilinks to it will link instead to the (much larger) Wikipedia article. Because high-quality, comprehensive articles may evolve from what begins as a one-line stub, you may wish to leave the one-line article in place and use a template like the following (after you upload Wikipedia-logo.png to your wiki):

Installation
Add this to your LocalSettings.php file:

Then run  to create the   table.

Next, populate the  table. It is recommended that you download  from the most recent data dump at http://download.wikimedia.org/enwiki/ and use a script such as   to import it into your database. Don't forget to change the values of,  ,  , and   in the   source code.

's parameters are as follows:
 * -t will start at the page title you specify, e.g.
 * -l will start at the line number you specify, e.g.

Configuration parameters
If you are also using Extension:PureWikiDeletion, then add this line to : This will cause RPED to regard blanked pages as nonexistent pages.

Remaining tasks
There is still much to accomplish:
 * ✅ Limit the special page Special:RPED to admins only
 * ✅ Provide a more efficient means of importing page name files into the table
 * ✅ Provide a means of aborting imports without having to manually drop the control table
 * ✅ Provide a means of adding/removing names from the page name table via API
 * ✅ Implement green links (rather than just blue)
 * ✅ Provide a different method of differentiating "green" links from "blue" (e.g. different font) for accessibility
 * Provide translation into other languages
 * Enable extension to act as a server for the page name list
 * Enable downloads of page name lists from other wikis with the extension