שיחת מדיה ויקי:Common.js

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקימסע

Give search results even when page doesn't exist[עריכה]

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
// 
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 01:56, 17 בפברואר 2018 (IST) (comments, translations and last instructions)[תגובה]

Disable loading 'MediaWiki:MapFrame.js'[עריכה]

I disabled loading 'MediaWiki:MapFrame.js' per requested at meta. MediaWiki:MapFrame.js is loading external resources without agreement in access user. This is not acceptable for our privacy policy. You can find details in phab:T186247 --Rxy (שיחה) 01:56, 17 בפברואר 2018 (IST) I applied quick hack in MediaWiki:MapFrame.js for avoid breaking current pages. I reverted my disable loading that.--Rxy (שיחה) 03:23, 17 בפברואר 2018 (IST) :Thanks for acting here user:Rxy  — billinghurst sDrewth 15:12, 18 בפברואר 2018 (IST)[תגובה]