Cuntierra MediaWiki:Common.js

Page contents not supported in other languages.
Dae Wikipedia, s'entziclopedia lìbera.

Give search results even when page doesn't exist[modìfica su còdighe de orìgine]

Screenshot of the Earth test search, with this script adding links to Wikidata, Reasonator, Commons, and Wikipedia.

Hello, I propose to enable the tool created by Magnus Manske (creator of MediaWiki) to provide results from other languages and Commons (via Wikidata) when a page doesn't exist here: links are added to Special:Search and noarticletext. This helps to encourage translation and to make readers use your wiki more, because they can be sure to find something even if it's not local (rather than searching directly on the biggest wiki). The Italian and Polish Wikipedias, among others already enabled it by default.
Examples: [1] [2] [3]. More information: Magnus blog.
How to: just add the following line at the end of Common.js.

// Results from Wikidata
// [[File:Wdsearch_script_screenshot.png]]
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
	importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}

--Nemo 13:17, 13 Fre 2015 (CET) (comments, translations and last instructions)[risponde]

Anon tips and donation banner[modìfica su còdighe de orìgine]

Hello, I propose to remove the entire block with the wikimediafoundation.org links and banners. Those donation notices are superseded. In fact, they make Wikipedia slower for unregistered users, so they cost more money than they bring, because the WMF has to spend millions on mw:Site performance. The WMF already runs banners for all the money they need, such permanent banners are inefficient. --Nemo bis (talk) 13:17, 13 Fre 2015 (CET)[risponde]