MediaWiki eztabaida:Common.js

message: /**
 * "Orrialde gorde" botoia ezgaitzen die lankide anonimoei aurretik "aurreikuspena erakutsi" botoia sakatu dezaten
 * Copyright Marc Mongenet, 2006 (fr.wikipedia.org)
 * An13sa-k Euskarazko Wikipediara ekarria
*/
function forcePreview() {
  if (wgUserName != null || wgAction != "edit") return;
  saveButton = document.getElementById("wpSave");
  if (!saveButton) return;
  saveButton.disabled = true;
  saveButton.value = "Gorde (aurreikuspena ikusi lehenengo!)";
  saveButton.style.fontWeight = "normal";
  document.getElementById("wpPreview").style.fontWeight = "bold";
}
--An13sa ✎ 13:38, 9 Apirila 2010 (UTC)
replies: text: Jarriko dugu? -Theklan ·  ·  14:53, 9 Apirila 2010 (UTC)

message: 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:   . 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 10:46, 12 abendua 2013 (UTC) (comments, translations and last instructions)
replies: text: Thank you! I think this is very useful. I've informed Basque wikipedians through the "Village pump" section, I'll implement this tool as soon as the community approves. --Xabier Armendaritz  2013-12-12, 10:46 (UTC)
replies: text: : Nice to see it enabled already. I hope it will get even more useful soon. :) --Nemo bis (eztabaida) 10:48, 14 abendua 2013 (UTC)</pre>
thread_title:  Give search results even when page doesn't exist 

message: 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* (eztabaida) 19:16, 11 abuztua 2014 (UTC)
thread_title:  Announced JavaScript change for badges implementation 

message: 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 (eztabaida) 21:15, 31 urtarrila 2023 (CET)
replies: text: Done in Special:Diff/9212023 ABreault (WMF) (eztabaida) 23:30, 23 otsaila 2023 (CET)
thread_title:  Prepare for T314318