Github mirror of MediaWiki extension AdvancedSearch - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
转到文件
Translation updater bot e9068d6889 Localisation updates from https://translatewiki.net.
Change-Id: Ib4f973853b7785f6c613837a1135ddfd63762713
2024-05-14 09:24:23 +02:00
.phan Remove phan config leftover from BetaFeature mode 2022-03-23 17:40:30 +01:00
docs Add/update documentation of public JavaScript hooks 2024-04-18 11:26:37 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-05-14 09:24:23 +02:00
includes Stop using the Xml class in this codebase 2024-04-29 12:33:11 +02:00
modules Add/update documentation of public JavaScript hooks 2024-04-18 11:26:37 +02:00
tests Merge "Streamline default configs in widgets" 2023-12-14 09:41:21 +00:00
.eslintrc.json build: Update devDependencies 2022-03-17 22:24:56 +00:00
.gitignore Add /tests/selenium/log to .gitignore file 2020-10-15 20:45:09 +00:00
.gitreview Add .gitreview 2017-06-01 22:48:52 +02:00
.phpcs.xml Fix all PHPCS violations, as of version 32.0.0 2020-10-29 07:31:22 +01:00
.stylelintrc.json stylelint: Enable selector-pseudo-element-colon-notation 2023-03-30 00:06:29 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:41:16 +00:00
Gruntfile.js build: Use conf.MessageDirs for banana path config 2023-09-18 19:40:12 +01:00
LICENSE Address some non-security issues from T168860 2017-07-17 18:36:54 +02:00
README.md Improve documentation for adding fields. 2019-05-18 13:37:24 +02:00
composer.json build: Updating dependencies 2024-05-10 00:29:36 +00:00
docker-compose.yml JavaScript build: add tool and documentation 2017-07-20 15:50:17 +02:00
extension.json Update UserOptionsLookup's FQN 2023-11-29 12:38:05 +00:00
package-lock.json build: Updating dependencies 2024-05-10 00:29:36 +00:00
package.json build: Updating dependencies 2024-05-10 00:29:36 +00:00

README.md

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