Extension:LinkSuggest2

Category:Unmaintained extensions#LinkSuggest2 Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
LinkSuggest2
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Page action Category:Page action extensions
Description Provides the user with article title suggestions as they type in wikilinks.
Author(s) TK-999 (TK-999talk)
Latest version 0.1
MediaWiki 1.19+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgLinkSuggestMaxSuggestions
  • $wgEnableEditFormLinkSuggest
Quarterly downloads 0
Translate the LinkSuggest2 extension if it is available at translatewiki.net
Category:All extensions

The LinkSuggest2 extension provides the user with article title suggestions as they type in wikilinks. It is functionally identical to Extension:LinkSuggest, but has been rewritten from the ground up to support recent versions of MediaWiki.

Installation

  • Download and move the extracted LinkSuggest2 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/LinkSuggest2
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LinkSuggest2' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

$wgLinkSuggestMaxSuggestions
The maximum amount of suggestions to show for each link (default 3).
$wgEnableEditFormLinkSuggest
Whether to enable LinkSuggest on edit forms (default true).

Extending

The extension exposes a simple API which can be used by other extensions to add LinkSuggest support to arbitrary elements:

LinkSuggest::singleton()->addSelectors( array(  '#foo', '.bar', '.my-extension textarea' ) );
Category:All extensions Category:BeforePageDisplay extensions Category:EditPage::showEditForm:initial 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:GetPreferences extensions Category:Page action extensions Category:Unmaintained extensions