mediawiki/extensions/AdvancedSearch - Gitiles

MediaWiki extension AdvancedSearch

Clone this repo:
  1. 95363fd Localisation updates from https://translatewiki.net. by Translation updater bot · 2 days ago master wmf/branch_cut_pretest
  2. 939a98b Localisation updates from https://translatewiki.net. by Translation updater bot · 5 days ago wmf/1.43.0-wmf.27
  3. 586cd46 build: Updating npm dependencies by libraryupgrader · 10 days ago
  4. 51d15f9 build: Swap modifier in less file to make disable more accurate by Umherirrender · 11 days ago
  5. 0a8597b Use ?? instead of default value in getRawVal() by Fomafix · 2 weeks ago wmf/1.43.0-wmf.26

AdvancedSearch

The AdvancedSearch extension enhances Special:Search by providing an advanced parameters form and improving how namespaces for a search query are selected.

Dependencies

This is a mediawiki extension. Consequently its functionality is tested in integration with a mediawiki installation and the global libraries it provides. The dependencies in package.json try to mimic up-to-date versions of these dependencies for e.g. IDE support, but will not actually be obeyed when using AdvancedSearch in a wiki.

Configuration

For configuration options please see the settings documentation.

Adding More Fields

Please see the "Adding Fields to AdvancedSearch" documentation to learn how you can add new fields for other search keywords to AdvancedSearch.

Development

This project uses npm and grunt to run JavaScript-related tasks (e.g. linting). Docker and docker-compose can be used to ease installation.

Installation

docker-compose run --rm js-build npm install

Run Linting

docker-compose run --rm js-build grunt

Running the QUnit tests

Run MediaWiki and then hit this page in your browser:

index.php?title=Special%3AJavaScriptTest%2Fqunit%2Fplain&filter=ext.advancedSearch