MediaWiki:Wdsearch.js explained

/*USAGE:On en.wikipedia, add the following line:

if (mw.config.get('wgCanonicalSpecialPageName')

'Search' || (mw.config.get('wgArticleId')

0 && mw.config.get('wgCanonicalSpecialPageName')

false))

to your common.js page. On other Wikipedias, add

if (mw.config.get('wgCanonicalSpecialPageName')

'Search' || (mw.config.get('wgArticleId')

0 && mw.config.get('wgCanonicalSpecialPageName')

false))

instead. To change the header line to your language, have an admin add the appropriate line to this page.

You can set the variable "wdsearch_results" to change the maximum number of search results from the default 10.

/*global jQuery, mediaWiki, wd_auto_desc, wdsearch_results, importScriptURI *//*jshint strict:false, browser:true, quotmark:single */(function($, mw))(jQuery, mediaWiki);