Extension:SearchExtraNS/en

From Linux Web Expert

MediaWiki extensions manual
SearchExtraNS
Release status: stable
Implementation Search
Description Searches extra specified namespaces if no direct match is found.
Author(s) Roland Unger, Hans Musil
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki
License GNU General Public License 2.0 or later
Download
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 SearchExtraNS extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

SearchExtraNS is an extension to improve search results.

Called after a search has no match for the exact result, but before any case variant is tested, it tries to find a direct match in extra specified namespaces, that is the namespace mentioned as prefix of the keyword. A side-effect is that the advanced search will no longer restrict results to the namespaces you select, but will always be extended to such namespace too.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/SearchExtraNS/en</tvar>|Download]] and move the extracted <tvar name=name>SearchExtraNS/en</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/SearchExtraNS%2Fen
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'SearchExtraNS/en' );
    
  • 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>