Extension:MixedNamespaceSearchSuggestions

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
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)
MediaWiki 1.29+
Composer mediawiki/mixed-namespace-search-suggestions
License MIT License
Download
Example http://tieteentermipankki.fi
Hooks used
BeforePageDisplay
Translate the MixedNamespaceSearchSuggestions extension if it is available at translatewiki.net
Check usage and version matrix.

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.

Installation[edit source]

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