MediaWiki talk:Monobook.js
Please add the folowing code, thanks. This code is for show/hide structure used in en --Cool CatTalk|@ 20:36, 26 February 2006 (UTC)
- (Outdated code for "Dynamic Navigation Bars" is removed, you can find it here ∴ Alex Smotrov 18:57, 13 December 2007 (UTC))
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)
- A bit late to answer, but anyway: MediaWiki:Common.js ∴ Alex Smotrov 18:57, 13 December 2007 (UTC)
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 tooltips ∴ Alex Smotrov 18:57, 13 December 2007 (UTC)
- Done, thanks, --birdy geimfyglið (:> )=| ∇ 18:54, 24 January 2008 (UTC)
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)
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}} (e • t • c) 16:53, 18 January 2015 (UTC)
- 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)
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)