Quantum redactiones paginae "Disputatio MediaWiki:Common.js" differant

Page contents not supported in other languages.
E Vicipaedia
Content deleted Content added
thanks
m typo
Linea 20: Linea 20:
:What I can't do is to correct the formatting on this page. I must be missing something simple. <nowiki>~~~~</nowiki>
:What I can't do is to correct the formatting on this page. I must be missing something simple. <nowiki>~~~~</nowiki>


:: It was my fault, unclosed pre. Nice to see Latoin in the avant-garde. :) --[[Usor:Nemo bis|Nemo bis]] ([[Disputatio Usoris:Nemo bis|disputatio]]) 10:50, 14 Decembris 2013 (UTC)
:: It was my fault, unclosed pre. Nice to see Latin in the avant-garde. :) --[[Usor:Nemo bis|Nemo bis]] ([[Disputatio Usoris:Nemo bis|disputatio]]) 10:50, 14 Decembris 2013 (UTC)

Emendatio ex 10:51, 14 Decembris 2013

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
// [[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 ~~~~~ (comments, translations and last instructions)

I've made this addition -- seems like a Very Good Idea, especially since we have a lot of pages with no equivalents on other wikipedias.
Anyone who understands the matter better, pleasee check that I have done the right thing!
What I can't do is to correct the formatting on this page. I must be missing something simple. ~~~~
It was my fault, unclosed pre. Nice to see Latin in the avant-garde. :) --Nemo bis (disputatio) 10:50, 14 Decembris 2013 (UTC)[reply]