Extension:RelatedSites

From Linux Web Expert

MediaWiki extensions manual
RelatedSites
Release status: beta
Implementation Parser extension , Hook
Description Adds a link to related sites on the sidebar
Author(s)
  • Roland Unger
  • Hans Musil
  • Matthias Mullie
Latest version 2.0
MediaWiki 1.25+
PHP 5.4+
Database changes No
License GNU General Public License 2.0 only
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the RelatedSites extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

One of the Wikivoyage extensions, formerly used to add a link to a same-named article on a related site on the sidebar. The extension was removed from Wikivoyage in 2018 as much of its functionality overlaps the "In other projects" sidebar entry from Extension:Wikibase.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/RelatedSites</tvar>|Download]] and move the extracted <tvar name=name>RelatedSites</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedSites
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'RelatedSites' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration

$wgRelatedSitesPrefixes is an array of interwiki prefixes of sites you would like to give prominence to. For example, for Wikivoyage this is:

$wgRelatedSitesPrefixes = [ 'wikipedia', 'commons' ];

Make sure you also have these prefixes set up in $wgExtraInterlanguageLinkPrefixes .

Feedback

Create a task on Phabricator tagged with "MediaWiki-extensions-RelatedSites".