Jump to content

MediaWiki talk:Monobook.js

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 7 years ago by Amire80 in topic Delete
This interface message is documented at mw:Manual:Interface/Monobook.js.

From MediaWiki:Monobook.js

[edit]

Please add the folowing code, thanks. This code is for show/hide structure used in en --Cool CatTalk|@ 20:36, 26 February 2006 (UTC)Reply

(Outdated code for "Dynamic Navigation Bars" is removed, you can find it hereAlex Smotrov 18:57, 13 December 2007 (UTC))Reply

Common script?

[edit]

Is it possible to have JavaScript common for all themes? I couldn't find such a feature and with current standings users of different than Monobook skins are discriminated... (Please answer at ru:Обсуждение участника:Paul Pogonyshev, English is OK for me.) -- 86.57.150.127 12:12, 31 August 2006 (UTC)Reply

A bit late to answer, but anyway: MediaWiki:Common.jsAlex Smotrov 18:57, 13 December 2007 (UTC)Reply

Remove ta[]

[edit]

Please remove all ta[] definitions: this is outdated way to define tooltips. Define missing tooltips using MediaWiki messages instead. For more info please see en:MediaWiki talk:Common.js/Archive Nov 2007#Update ta.5B.5D tooltipsAlex Smotrov 18:57, 13 December 2007 (UTC)Reply

Done, thanks, --birdy geimfyglið (:> )=| 18:54, 24 January 2008 (UTC)Reply

this needs to be moved to common.js to work:

[edit]

 // from http://de.wiktionary.org/wiki/MediaWiki:Common.js by [[wikt:de:User:Melancholie]] Interprojekt-Links ([[mediazilla:708|Bug 708]])
 
 document.write('<style type="text/css">#interProject, #sisterProjects {display: none; speak: none;} #p-tb .pBody {padding-right: 0;}<\/style>');
 function iProject() {
  if (document.getElementById("interProject")) {
   var iProject = document.getElementById("interProject").innerHTML;
   var interProject = document.createElement("div");
   interProject.style.marginTop = "0.7em";
   interProject.innerHTML = '<h5><a href="/wiki/Meta:SisterProjects">'+document.getElementById("sisterProjects").firstChild.innerHTML+'<\/a><\/h5><div class="pBody">'+iProject+'<\/div>';
   document.getElementById("p-tb").appendChild(interProject);
  }
 }
 addOnloadHook(iProject);

thanks, --birdy geimfyglið (:> )=| 17:53, 29 September 2010 (UTC)Reply

Done. Jafeluv 10:23, 1 October 2010 (UTC)Reply

Legacy JavaScript

[edit]

Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook() needs to be replaced with $(); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' ); and addPortletLink needs to be called with mw.util.addPortletLink. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. {{U|Technical 13}} (etc) 16:53, 18 January 2015 (UTC)Reply

The page has been blanked, so there's now nothing to migrate. It was very old stuff and I doubt it even worked this days. Regards, -- M\A 15:09, 30 January 2015 (UTC)Reply

Delete

[edit]

Is there any reason to keep this page? It has been blank for a long time. The only reason to keep it is to look at old versions of the JavaScript here... is that really useful? --Amir E. Aharoni (talk) 13:14, 28 February 2017 (UTC)Reply

OSZAR »