Discûscioîn MediaWiki:Common.js

Contegnûi da pàgina no suportæ in de âtre léngoe.
Da Wikipedia

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 21:32, 31 zen 2023 (CET) (comments, translations and last instructions)[rispóndi]

Prepare for T314318

Please a make change like the following,

https://it.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.js&type=revision&diff=130157033&oldid=127743689

For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ

Thanks, Arlolra (discuscioìn) 21:32, 31 zen 2023 (CET)[rispóndi]

Change

[@ N.Longo] Hi, any possibility to make this change on our Wiki? Ti ghe la fae a fa sto cangiamento inta nostra Wiki? Alegri! Luensu1959 (discuscioìn) 09:42, 1 fre 2023 (CET)[rispóndi]
[@ Luensu1959] Salüu, niätri a nu puemu färu perché da ün/dui agni e pagine Common.js e Common.css i pöne cangiäre sulu i "aministratui de l'interfaccia" che chi i nu ghe sun. Mi a l'ò dunca dumandau au Mtarch11‎ che, in qualitae de aministratù glubäle, u duvrea avé ascì sti diritti e, sciben ch'u nu pö adueräri a piaxé, se a gh'è ina dumanda du prugettu - e a te ringrasiu pe l'avallu - a nu creddu propriu ch'a ghe secce de prublemi, bona! N.Longo (discuscioìn) 09:52, 1 fre 2023 (CET)[rispóndi]

Bain, alua a vegrema cse ch'u rispunda u Miché. A t'salütu Luensu1959 (discuscioìn) 10:25, 1 fre 2023 (CET)[rispóndi]
Ciao [@ Luensu1959, N.Longo], scusatemi per l'italiano, a parte il cambio previsto dal task 314318, volete anche il cambio che riguarda Wikidata poco sopra? Superpes15 (discuscioìn) 10:47, 2 fre 2023 (CET)[rispóndi]
Avendo già domandato238329 ad un altro utente se può occuparsi della questione attenderei prima una sua risposta per evitargli la scortesia, cordialità N.Longo (discuscioìn) 11:00, 2 fre 2023 (CET)[rispóndi]
[@ N.Longo] Sono stato contattato dal buon Mtarch, sennò non sarei intervenuto, che mi ha chiesto se potessi occuparmi delle modifiche :) Superpes15 (discuscioìn) 11:46, 2 fre 2023 (CET)[rispóndi]
Pe mi va bén, vanni avanti! --Luensu1959 (discuscioìn) 11:50, 2 fre 2023 (CET)[rispóndi]
In tal caso; il cambio da fare è solo l'ultimo, grazie mille N.Longo (discuscioìn) 11:55, 2 fre 2023 (CET)[rispóndi]