Extension:Interwiki

From MediaWiki.org
Jump to: navigation, search
This extension should not be confused with Extension:InterWiki.
MediaWiki extensions manual - list
Crystal Clear action run.png
Special:Interwiki

Release status: stable

MediaWiki extension Interwiki.png
Implementation Special page
Description Adds a special page to view and manipulate the interwiki table.
Author(s) Stephanie Amanda Stevens, SPQRobin
Last version 2.0 (see #Download)
MediaWiki 1.6+ (see #Download)
Database changes no
License GNU General Public License 2.0 or later
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

see "Download" section
(Change log)

Example See #Sites using this extension
Added rights

interwiki

Check usage (experimental)
Bugs: list open list all report

This is an extension to add a Special:Interwiki page to MediaWiki, to view and edit the interwiki table, and a log of any actions made with it. It was made by Stephanie Amanda Stevens a.k.a Phroziac, because she was annoyed at forgetting the interwiki prefixes. It's made for MediaWiki 1.6 onwards.

Since Interwiki version 2.0, it works with the $wgInterwikiCache, and the CSS uses ResourceLoader. This version is only compatible with MW 1.19+.

Contents

[edit] Download

These are recommended revisions of SpecialInterwiki to use per MediaWiki version. If a revision does not work with a certain MediaWiki version, please report. In ViewVC, make sure to click the revision download link for each file, not the HEAD download link.

[edit] Installation

  1. Create a new folder Interwiki in your extensions directory.
  2. Download the required extension files (see #Download), and put these files in the new Interwiki folder.
  3. Make one of the following additions to your LocalSettings.php file, based on the version you are using:
    If you are using the more recent versions of this extension (which have this extension merged into the Interwiki extension itself), add this to your LocalSettings.php, somewhere near the bottom:
    require_once("$IP/extensions/Interwiki/Interwiki.php");
    
    If you are using the older versions of this extension (which uses a SpecialInterwiki.php page in its files), add this to your LocalSettings.php, somewhere near the bottom:
    require_once("$IP/extensions/Interwiki/SpecialInterwiki.php");
    
  4. Under that line, you have to add who can use Special:Interwiki.
If you want that sysops can use it:
$wgGroupPermissions['*']['interwiki'] = false;
$wgGroupPermissions['sysop']['interwiki'] = true;
If you want an additional user group: (those with the 'userrights' permission can assign this group - bureaucrats by default)
$wgGroupPermissions['*']['interwiki'] = false;
$wgGroupPermissions['interwiki']['interwiki'] = true;
To enable transclusion from other sites, you'll need to set $wgEnableScaryTranscluding to true.
$wgEnableScaryTranscluding = true;
Note
This extension's entry in the list of Special pages is not the name of the extension. The entry in the list is defined by the interwiki message item defined per locale in SpecialInterwiki.i18n.php. For English locales, its value is View and edit interwiki data.

[edit] Setting up interlanguage links

To set up interlanguage links using this extension, make sure that $wgInterwikiMagic is set to true and $wgHideInterlanguageLinks is set to false (they are like this by default, you don't need to change them usually). Then go to Special:Interwiki as a user with the appropriate permissions. For example, if the French version of your wiki was located at http://fr.foowiki.tld/wiki/, you could add http://fr.foowiki.tld/wiki/$1 to the interwiki table with values trans 0 and local 0. Then the interlanguage link to the French version would work.

[edit] Sites using this extension

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox