Manual:$wgImportSources

From MediaWiki.org
Jump to: navigation, search
Interwiki: $wgImportSources
List of interwiki prefixes for wikis we'll accept as sources for Special:Import (for sysops and users given appropriate permissions).
Introduced in version: 1.3.0 (r3119)
Removed in version: still in use
Allowed values:
Default value: array();

Other settings: Alphabetical | By Function


Details[edit | edit source]

Array of interwiki prefixes for wikis we'll accept as sources for Special:Import (for sysops and appropriate permissions). Since complete page history can be imported, these should be 'trusted'.

[[m:Help:Help]] m:Help:Help
[[w:Interwiki]] w:Interwiki

If a user has the 'import' permission but not the 'importupload' permission, they will only be able to run imports through this transwiki interface.

Example[edit | edit source]

This is an example of what to add to your LocalSettings.php page. You can change the values of the array (wikinews, wikiquote, etc.) or add more entries as necessary:

$wgImportSources = array(
      'wikinews',
      'wikiquote',
      'prefixyouwant',
      'anotherprefixyouwant',
      'thirdprefixyouwant',
      'wikipedia'
);


Language: English  • français • 日本語