Extension:MixedNamespaceSearchSuggestions

From Linux Web Expert

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 Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
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

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/MixedNamespaceSearchSuggestions</tvar>|Download]] and move the extracted <tvar name=name>MixedNamespaceSearchSuggestions</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MixedNamespaceSearchSuggestions
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'MixedNamespaceSearchSuggestions' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>