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. E.g., if you link to Foo on your local wiki but that page does not exist there, the link will still turn blue, and link to http://en.wikipedia.org/wiki/Foo, if that article exists 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. Interwiki links such as Foo will detect whether the page exists on Wikipedia and turn red or blue accordingly.

To use the API, first use Special:UserRights to grant RPED rights to the user who will be inserting/deleting page titles from. Then use commands such as this: http://libertapedia.org/w/api.php?action=rped&insert=Foo http://libertapedia.org/w/api.php?action=rped&delete=Foo

You can also use piped parameters to insert/delete more than one at a time, e.g.: http://libertapedia.org/w/api.php?action=rped&insert=Foo|Bar

RPED will automatically detect whether Extension:PureWikiDeletion is active and, if so, treat blanked local pages as nonexistent.

Recommended policy
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   or   to import it into your database. Don't forget to change the values of,  ,  , and   in the   source code, or 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.

's argument parser isn't in all that great a shape right now.

Alternatively, you can use. If you use this, make sure you make the necessary changes to  first. It works the same way as, except that if you want to start on a particular page title, you don't use -t; you just use the page title, e.g.:

$wgRPEDBrokenLinkStyle
This is the color for broken interwiki links, e.g. This page does not exist. Default:

$wgRPEDExcludeNamespaced
Is set to true, this will cause the extension to ignore interwiki links such as wikipedia:Wikipedia:AFD. This is useful because presently, the list of page titles that Wikimedia provides only contains page titles in the mainspace. Default:

$wgRemoteStyle
This is the color that links to Wikipedia, such as Comparison of Linux distributions, will appear when those pages are in the rped_table. Default: