Extension:RelatedSites

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
RelatedSites
Release status: betaCategory:Beta status extensions
Implementation Parser extension Category:Parser extensions, Hook Category:Hook extensions
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+Category:Extensions with manual MediaWiki version
PHP 5.4+
Database changes No
License GNU General Public License 2.0 only
Download Category:Extensions in Wikimedia version control
  • $wgRelatedSitesPrefixes
Quarterly downloads 0
Translate the RelatedSites extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

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

  • Download and move the extracted RelatedSites folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedSites
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'RelatedSites' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

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".

Category:All extensions Category:Beta status extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Hook extensions Category:OutputPageParserOutput extensions Category:ParserAfterTidy extensions Category:Parser extensions Category:SidebarBeforeOutput extensions