Extension:GoogleCustomWikiSearch

What can this extension do?
The Google Custom Wiki Search extension allows MediaWiki integration with Google Custom Search or Google Site Search.

This extension was sponsored by the The Plant Encyclopedia and was developed by WikiWorks.

Usage
Defines a special page (Special:GoogleCustomWikiSearch) that performs a Google search on the wiki. Optionally, replaces the built-in search functionality with a Google search.

Download instructions
To be released soon.

Installation
To install this extension, add the following to LocalSettings.php:

Basic

 * $gcwsID - Google Custom Search ID - requires account with Google. The ID can be found in your GCS control panel under "basic information". Note that if this is left blank (not set in LocalSettings), the result SHOULD be a Google site search. But it may not work for you because of some Google bug.
 * $gcwsReplaceSearch - Set to  to completely replace the MediaWiki search engine with a Google search. Defaults to.
 * $gcwsTheme - Possible values are: 'BUBBLEGUM', 'ESPRESSO', 'GREENSKY', 'MINIMALIST', 'SHINY'. Defaults to 'V2_DEFAULT'.

Advanced
It should be set like this: Note: The first parameter to customSearchControl.draw must be set to 'cse' for the extension to work. That's usually the way Google provides the code anyway.
 * $gcwsCustomSearchOptions - For those who want additional customization, set this instead of $gcwsID (which will be ignored if this is set). Set this variable to equal the insertion code provided by Google.

Google Custom Search extensions

 * Extension:GoogleCSE - Doesn't seem to work with MW1.19+
 * Extension:Google Custom Search Engine - Requires some extra setup

Google Site Search extensions

 * Extension:GoogleSiteSearch - Try this if you can't get Site Search working with this extension