Extension:MixedNamespaceSearchSuggestions

From mediawiki.org
MediaWiki extensions manual
Mixed Namespace Search Suggestions
Release status: stable
px
Implementation Search
Description Includes suggestions from all content namespaces in the search box, showing from which namespace each suggestion is from.
Author(s) Niklas Laxström (Nikerabbittalk)
Latest version 2017-11-08
MediaWiki 1.29+
Composer mediawiki/mixed-namespace-search-suggestions
License MIT License
Download
Example http://tieteentermipankki.fi
Quarterly downloads 3 (Ranked 141st)
Translate the MixedNamespaceSearchSuggestions extension if it is available at translatewiki.net

MixedNamespaceSearchSuggestions makes the search box autocomplete terms matching page names from content namespaces in addition to full page names. The namespace name is stripped from each title and shown in a byline next to it.

The extension was originally thought for wikis having many similar namespaces, where the user can't be expected to be able to prefix the correct namespace when searching for a title. $wgNamespacesToBeSearchedDefault is ignored and namespaces in $wgContentNamespaces are searched instead.

Installation[edit]

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