Extension:GoogleSiteSearch

The GoogleSiteSearch extension allows you to add Google Custom Search Engine (CSE) results to "Special:Search" additionally to MediaWiki search results, or optionally, replace them altogether.

For an example, please see this search result on finnix.org.

Configuration
The following configuration globals are available:
 * - The ID of the created Google custom search engine. Required.
 * - Whether to replace the the MediaWiki search results. If true, only the CSE search results are shown.  If false, the CSE results are shown above the MediaWiki results.  Optional, defaults to false.
 * - An array of optional Custom Search element attributes. For example, to make links open in a new window/tab:

In addition, the HTML built by the extension is customizable via the GoogleSiteSearchHTML hook. For example:

Internationalization
Translation of the extension strings is managed by Translatewiki.net (direct extension link). Please contribute translations there.

Internationalization of the Google results themselves is handled by passing the user's (or site default's) language preference to Google CSE. This is handled automatically and requires no configuration.