MediaWiki talk:Wdsearch.js

Latest comment: 1 month ago by Writ Keeper in topic azerbaijani i18n
Screenshot of the Earth test search, with this script adding links to Wikidata, Reasonator, Commons, and Wikipedia.

See screenshot at right. See more info via Magnus and Gerard.

USAGE

On en.wikipedia, add the following lines to your common.js page:

if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
	importScript('MediaWiki:Wdsearch.js');
}

On other Wikipedias, add these lines, instead:

if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
	mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript');
}

Interlingua translation

edit
	'ia' : {
		'commons_cat' : 'Categoria sur Commons',
		'wikipedias'  : 'Articulos de Wikipedia',
		'wikivoyages' : 'Guidas de viage sur Wikiviage',
		'wikisources' : 'Paginas de Wikisource',
		'header'      : 'Resultatos de Wikidata',
		'reasonator'  : 'Monstrar detalios sur Reasonator'
	},

Thanks :) McDutchie (talk) 02:02, 1 December 2025 (UTC)Reply

 Done Sohom (talk) 02:29, 1 December 2025 (UTC)Reply

Thumbnails

edit

Sister project icons need to be updated according to phab:T414805 (mw:Common thumbnail sizes).

Please change all <img src="..." /> to load 20px icons and enforce the original size using <img width= /> (for example <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/20px-Commons-logo.svg.png" width=12 border=0 />). --Matěj Suchánek (talk) 08:06, 29 April 2026 (UTC)Reply

Should be done. Izno (talk) 16:47, 29 April 2026 (UTC)Reply

azerbaijani i18n

edit

hello! can someone add this smol dictionary pretty please:

	'az' : {
		'commons_cat' : 'Vikianbar kateqoriyası' ,
		'wikipedias' : 'Vikipediya məqalələri' ,
		'wikivoyages' : 'Vikisəyahət bələdçiləri' ,
		'wikisources' : 'Vikimənbə səhifələri' ,
		'header' : 'Vikidatadan nəticələr' ,
		'reasonator' : '"Reasonator" vasitəsilə ətraflı məlumat'
	},

thanks in advance! əkrəm. 10:35, 14 May 2026 (UTC)Reply

 Done, thanks! Writ Keeper  14:45, 14 May 2026 (UTC)Reply