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 3e9b660029 Localisation updates from https://translatewiki.net.
Change-Id: I3ed2136ba2df7760d76ba68cfcfc8e32a66b5833
2024-04-24 07:51:12 +02:00
.phan Remove phan config leftover from BetaFeature mode 2022-03-23 17:40:30 +01:00
docs Convert to packageFiles 2023-07-03 19:24:03 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-04-24 07:51:12 +02:00
includes Inline trivial 1-use method, extract minor code duplication 2023-06-14 15:04:05 +00:00
modules Convert search preview tags into a list with a description 2023-09-21 14:03:17 +02:00
tests Re-order selenium namespace tests 2023-10-06 18:34:44 +02: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 2023-04-28 23:19:43 +00:00
docker-compose.yml JavaScript build: add tool and documentation 2017-07-20 15:50:17 +02:00
extension.json Convert search preview tags into a list with a description 2023-09-21 14:03:17 +02:00
package-lock.json build: Updating npm dependencies 2024-02-04 20:16:12 +00:00
package.json [build] Bump wdio-selenium to v2.3.0 2023-09-22 14:35:32 +02: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