Discussion MediaWiki:Common.js

Lo contengut de la pagina non es disponible dins una autra lenga.
Un article de Wikipèdia, l'enciclopèdia liura.

Please change == Foncions generalas == to /* == Foncions generalas == */. Otherwise every page shows a java script error. Please do this with all "="—please change * … */ to /* … */. Thanks, DerHexer 13 d'oct de 2007 a 22:35 (UTC)

Another request: I've found some javascript bugs in the "addCustomButton" section. Could you please change every ' to \' ? Thanks, DerHexer (d) 25 de decembre de 2007 a 00:28 (UTC)

Update on commons.js[Modificar lo còdi]

Hello. I assigned Pmartin to a temporary global 'editinterface' group, so that he can update a script on several wikis. The script was broken by recent changes to the Special:Search page. I hope this was not controversial, but if you'd like to object, please leave me a message on m:User talk:Pathoschild. :) —Pathoschild 23:06:58, 30 oktober 2008 (UTC)" Pmartin 31 d'oct de 2008 a 01:31 (UTC)

Give search results even when page doesn't exist[Modificar lo còdi]

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 31 genièr de 2023 a 20.37 (UTC) (comments, translations and last instructions)[respon]

Prepare for T314318[Modificar lo còdi]

Please make changes like the following, https://ca.wikipedia.org/wiki/Especial:ComparePages?page1=MediaWiki%3ACommon.js&rev1=24309161&page2=Usuari%3AArlolra%2Fsandbox%2FMediaWiki%3ACommon.js&rev2=31054319&action=&unhide= https://ca.wikipedia.org/wiki/Especial:ComparePages?page1=MediaWiki%3ACommon.js&rev1=31055727&page2=Usuari%3AArlolra%2Fsandbox%2FMediaWiki%3ACommon.js&rev2=31058458&action=&unhide= For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ Thanks, Arlolra (d) 31 genièr de 2023 a 20.37 (UTC) :Done in Special:Diff/2365149 ABreault (WMF) (d) 23 febrièr de 2023 a 22.01 (UTC)[respon]