Extension:LinkSuggest

Other languages:
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
LinkSuggest
Release status: stable
LinkSuggestExample.png
Implementation Search
Description Provides the user with article title suggestions as they type a link in wikitext.
Author(s)
Latest version 2.1.0 (2021-01-29)
MediaWiki 1.36+
License GNU General Public License 2.0 or later
Download
  • $wgLinkSuggestFromNamespaces
Translate the LinkSuggest extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

The LinkSuggest extension suggests links to editors on edit view (?action=edit). Registered users are able to turn LinkSuggest off via Special:Preferences.

InstallationEdit

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

ConfigurationEdit

$wgLinkSuggestFromNamespaces

Array that defines a list of namespaces to get suggestions from if you don't type a namespace.

Default value:

$wgLinkSuggestFromNamespaces = [ NS_MAIN ];

Adding namespaces to this list will cause LinkSuggest to load suggestions from pages on those namespaces, when you don't type the namespace. This cause suggestions to get pages "Apple" and "Project:Apple" if you type "Appl" and $wgLinkSuggestFromNamespaces is [ NS_MAIN, NS_PROJECT ].

Related extensionsEdit

  • WikiEditor - Has similar functionality built in. Clicking on the link icon from the tool-bar shows a search box, typing into this will search the available pages. This extension is now bundled with MediaWiki.