Extension:ExternalArticlesNg

Automatically fetch article text from external wikis.

Improved version of Extension:ExternalArticles; you can now load content from more than one site and add a notice that content was imported.

Installation
wfLoadExtension('ExternalArticlesNg');
 * Download and place the files in a directory called  in your   directory.
 * Add the following code at the bottom of your :
 * Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration
You can have multiple sites in. First match wins.

Example:

$wgExternalArticles = [ # This rule is defined by default if you leave it empty. [ 		# URL to fetch from. 'url' => 'http://en.wikipedia.org/w/index.php?title=', # Only if the page name matches this preg_match 'rule' => '/^(Template|Module):.*$/', # If non-Null, it is added just above the textarea in a 		'text' => ' Note : the text was automatically preloaded from the Wikipedia template of the same name.', ], 	[ 		'url' => 'http://example.com/w/index.php?title=', 'rule' => '/.*/', 'text' => ' Note : the text was automatically preloaded from example page of the same name.'. 'Please make sure the spelling is correct as ExampleWiki often has terrible spelling!', ], ];

You may also want to add some CSS in your :

/*** Extension:ExternalArticlesNg ***/ .ExternalArticlesNg-preload-notice { border: 1px solid #aaa; background-color: #f9f9f9; padding: 5px; margin-bottom: .5em; }