Manual:$wgOpenSearchTemplates

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎日本語
Search: $wgOpenSearchTemplates
Templates for OpenSearch suggestions.
Introduced in version:1.25.0
Removed in version:still in use
Allowed values:(array)
Default value:
[
	'application/x-suggestions+json' => false,
	'application/x-suggestions+xml' => false,
];

Details[edit]

Templates for OpenSearch suggestions, defaults to API action=opensearch.

Sites with heavy load would typically have these point to a custom PHP wrapper to avoid firing up mediawiki for every keystroke.

Placeholders: {searchTerms}