Extension:Multi-Category Search

Description
Fast and simple extension, that lists pages included in several specified categories at once. By default, user can specify up to 5 such categories, and optionally up to 3 categories to exclude from search. The maximum number of categories is set in two corresponding variables in source code, so you can easily change it at any time. On many requests, drop-down lists support was added in version 1.3.

Purpose and usage
The extension is indispensable if you need, for example, to find all articles about american comedy movies released in 1990 on your wiki. Then you go to page Special:MultiCategorySearch, specify three categories: "USA films", "Comedy films" and "1990 films", and click on search button. That's it - you get the list of movies.

Installation

 * 1) Download the extension code.
 * 2) Unzip and save the code files in your wiki's   directory in a   subdirectory.
 * 3) Changes your wiki's LocalSettings.php to include the line:

Configuration
General configuration settings are set in variables in the beginning of MultiCategorySearch_body.php file. Here are sample settings and their description.

Maximum number of categories, that user can search for: var $inCategoriesNumber = 5; Maximum number of categories, that user can exclude from search: var $exCategoriesNumber = 3; Default method of HTTP parameters passing. Change to 'get', if you need it. var $paramsPassMethod = 'post'; When set to true, inserts MediaWiki:Edittools at the bottom of search form. But remember, that EditTools require Extension:CharInsert to be installed and AJAX to be enabled (global $wgUseAjax variable must be set to true in LocalSettings.php file). var $insertEditTools = false; When set to true, allows to use custom drop-down lists for categories selection. Options for drop-down lists must be manually set in the body of showDropdownLists function in the end of MultiCategorySearch_body.php script. var $useDropdownLists = false;

Version history

 * 1.33 — Listing of articles, that are not included in specified categories, is now available even if no category was selected to search in.
 * 1.31 — A minor bug fixed.
 * 1.3 — Optional drop-down list selection added.
 * 1.21 — Edittools support added; DE and NL translations added; table prefixes recognition enabled.
 * 1.01 — A minor bug fixed.

Contacts
If you would like to report a bug, request a feature, or could help with localization (extension messages translation), please, send me a letter to [mailto:codedriller@gmail.com codedriller@gmail.com]. By the way, if you need advanced bot functionality for your wiki, take a look at free DotNetWikiBot Framework, that I maintain.