MediaWiki Diskussion:Common.js

Seiteninhalte werden in anderen Sprachen nicht unterstützt.
Us der alemannische Wikipedia, der freie Dialäkt-Enzyklopedy

Note that the custom $ function may be interfering with modern jQuery-based stuff (bugzilla:29595), these probably should be either replaced with real jQuery calls or giving the $ function a non-interfering name. --Brion VIBBER 22:27, 27. Jun. 2011 (MESZ)[Antwort gee]

Cha des öber richte? Bi däm Bug goot's drum, dass di automatischi Suechfunktion numme uff de letschte Änderige funktioniert, uff allene andre Syte werde kei möglichi Ergebniss aazeigt. Isch euch vilycht auch scho emool uffgfalle. --Terfili 08:31, 28. Jun. 2011 (MESZ)[Antwort gee]
Äh, nai, wieso automatischi Suechfunktion nume uf dr letschte Anderige? --Holder 09:04, 28. Jun. 2011 (MESZ)[Antwort gee]
Jetz verstand, wu s Probläm isch, aber ich cha des nit richte. Ich waiß nit, was gmaint isch mit "replaced with real jQuery calls or giving the $ function a non-interfering name". --Holder 09:11, 28. Jun. 2011 (MESZ)[Antwort gee]

Hi,

I've reviewed this site script and made the neccecary fixed to bring this code up 2 date with the latest MediaWiki release and fixed most issues you were experiencing. I would have performed the update myself but due to the AbuseFilter I am unable to. Please copy the contents of Benutzer:Krinkle/MediaWiki:Common.js to MediaWiki:Common.js. Krinkle 00:12, 5. Jul. 2011 (MESZ)[Antwort gee]

Apparently these fixes have been rolled back a while ago (per notes on bugzilla:29595), apparently because lots of code that lives in other scripts didn't get fixed. I'm to take a quick zip through and see if I can get em fixed. --Brion VIBBER 22:37, 14. Nov. 2011 (MEZ)[Antwort gee]
Ok I think I've got these all worked out now. I've also removed the If-search.js script that was being pulled in from the master copy on de.wiktionary.org; that script itself is broken (it's what stopped search suggestions from working) and appears to be of limited/no use at present.
Currently I see working search suggestions, the title replacements work, and the SSL mixed-mode warnings I was seeing on https://als.wikipedia.org/ appear to now be resolved. Please give a shout if anything else is broken! --Brion VIBBER 23:52, 14. Nov. 2011 (MEZ)[Antwort gee]

Give search results even when page doesn't exist[Quälltäxt bearbeite]

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");
}
--[[m:User:Nemo_bis|Nemo]] ~~~~~ ([[w:en:MediaWiki talk:Wdsearch.js|comments, translations and last instructions]])
</div>
<!-- EdwardsBot 0661 -->

Announced JavaScript change for badges implementation[Quälltäxt bearbeite]

Hi! I want to let you know that in near future badges will be deployed on Wikidata and the Wikipedias. They help us with displaying the good and featured article icons next to the sitelinks and will replace the javascript hack which is used at the moment together with the Link GA and Link FA templates. To avoid an overlap where the current system and the new feature conflict, I will add a minor fix to your Common.js which adds the class names to the interwiki links. This is part of my task as a global edit interface editor for the Wikidata team. Thanks, Bene* (Diskussion) 21:04, 10. Aug. 2014 (MESZ)[Antwort gee]

Hi Bene*. Thank you for your help. Fell free to fix our common.js as necessary. Best regards. --Holder (Diskussion) 06:38, 12. Aug. 2014 (MESZ)[Antwort gee]
Ach schau an, ich sehe gerade, ich hätte Dir auch auf Deutsch schreiben können ... --Holder (Diskussion) 07:20, 12. Aug. 2014 (MESZ)[Antwort gee]

letzte Zeile ( importScript('Benutzer:Schnark/js/artikel-statistik.js'); )[Quälltäxt bearbeite]

@Holder:, Die letzte Zeile muss mit ersetzt werden mw.loader.load('/w/index.php?title=Benutzer:Schnark/js/artikel-statistik.js&action=raw&ctype=text/javascript' ); WikiBayer (Diskussion) 14:39, 31. Dez. 2021 (MEZ)[Antwort gee]

Prepare for T314318[Quälltäxt bearbeite]

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 (Diskussion) 02:16, 31. Jan. 2023 (MEZ)[Antwort gee]

Done, thank you very much. --Holder (Diskussion) 15:08, 31. Jan. 2023 (MEZ)[Antwort gee]
Thanks, just missed the variable declaration Special:Diff/1032606 ABreault (WMF) (Diskussion) 00:05, 24. Feb. 2023 (MEZ)[Antwort gee]