Extension:GoogleSiteSearch

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

Configuration
The following configuration parameters are available:


 * The ID of the created Google custom search engine. Required.
 * The ID of the created Google custom search engine. Required.


 * Whether to replace the the MediaWiki search results. If, only the CSE search results are shown. If false, the CSE results are shown above the MediaWiki results. Optional, defaults to.
 * Whether to replace the the MediaWiki search results. If, only the CSE search results are shown. If false, the CSE results are shown above the MediaWiki results. Optional, defaults to.


 * Whether to prepend (not append) rather than replace the Google search results. Defaults to . Note that under some circumstances, for example when they're too many or no search results, the relevant hook may not fire and Google search results will not be appended.
 * Whether to prepend (not append) rather than replace the Google search results. Defaults to . Note that under some circumstances, for example when they're too many or no search results, the relevant hook may not fire and Google search results will not be appended.


 * An array of optional Custom Search element attributes. For example, to make links open in a new window/tab:
 * 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: