Extension:RelatedSites

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
RelatedSites

Release status:Extension status beta

ImplementationTemplate:Extension#type Parser extension, Hook
DescriptionTemplate:Extension#description Adds a link to related sites on the sidebar
Author(s)Template:Extension#username
  • Roland Unger
  • Hans Musil
  • Matthias Mullie
Latest versionTemplate:Extension#version 2.0
MediaWikiTemplate:Extension#mediawiki 1.25+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0
Download
ParametersTemplate:Extension#parameters
  • $wgRelatedSitesPrefixes
Hooks usedTemplate:Extension#hook
ParserBeforeTidyManual:Hooks/ParserBeforeTidy
OutputPageBeforeOutput
SidebarBeforeOutputManual:Hooks/SidebarBeforeOutput

Translate the RelatedSites extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

One of the Wikivoyage extensions. Apparently used to Add a link to a same-named article on a related site on the sidebar. See for example "Related sites" on the sidebar in wikivoyage:North America.

Installation[edit]

  • Download and place the file(s) in a directory called RelatedSites in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'RelatedSites' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

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

$wgRelatedSitesPrefixes = array( 'wikipedia', 'dmoz', 'citizendium', 'commons' );

Feedback[edit]

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