MediaWiki talk:Gadget-dropdown-menus.js

New version for vector skin does not work on other Wikis
Hi there!

First of all many thanks for you efforts on the Vector version of the gadget MusikAnimal (which is now located and loaded from MediaWiki:Gadget-dropdown-menus-vector.js). It's much appreciated!

Sadly I have to report, that the new vector version apparently does not work on other Wikis (in contrast to the old Monobook version which is now moved to MediaWiki:Gadget-dropdown-menus-nonvector.js).

I was loading the script globally in my  over at Meta (via  . However since the new Vector version was activated the script seems to have stopped working on every Wiki except enwiki (I'm mainly using dewiki, commons and mediawiki besides enwiki).

Could you please have a look what's wrong? From what I get the new script version should work on other Wikis in principle? Regards, --Patrick87 (talk) 02:30, 21 January 2015 (UTC)


 * Now that I think of it, it's probably not a fault of the actual script at all (and I was searching in the wrong place all along). The only thing that presumably fails is  in the loader script on the front page (since other Wikis don't have the script added as a gadget). Is there a possibility to make this work cross-wiki while keeping the skin-dependent switching? Otherwise I'd probably just add the direct link to the script in my global.js --Patrick87 (talk) 02:38, 21 January 2015 (UTC)
 * Hi, for performance reasons here on enwiki we load hidden gadgets as a module rather than import the raw scripts. For cross-wiki you can source User:MusikAnimal/MoreMenu.js with:

mw.loader.load( '//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/MoreMenu.js' );
 * which will work across supported skins. Load time might be marginally slower, though :) However if you just use vector you might as well source the vector version directly with:

mw.loader.load( '//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-dropdown-menus-vector.js' );
 * Hope this helps! Best &mdash;  MusikAnimal talk 03:23, 21 January 2015 (UTC)

Pagenames with question marks
A current MediaWiki bug affecting this gadget is discussed at Village pump (technical)/Archive 135 PrimeHunter (talk) 03:47, 27 February 2015 (UTC)