Wikipedia talk:WikiProject User scripts/Scripts/Compact Navigation

Documentation
Script: WikiProject User scripts/Scripts/Compact Navigation

Author: AA

Requires: Firefox (will not work with IE6 or IE7)

Tested: Firefox 2.0.0.3, 3.0

Install by adding the following lines into your monobook.js:

importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); importScript('Wikipedia:WikiProject User scripts/Scripts/Compact Navigation');

Hides the individual tabs and adds a new tab ('actions') that has a "pulldown" menu. Additionally, the first two tabs have pulldown menus with links to both article and talk pages to allow appropriate actions to be performed on them.

Discussion
Doesn't seem to work, at least in Firefox and Opera. There is "quicknav" tab on top, but no pulldown menu ∴ Alex Smotrov 15:45, 27 September 2007 (UTC)
 * hmmm...what version of Firefox are you using? It's working for me in 2.0.0.3. → AA (talk) — 16:19, 27 September 2007 (UTC)
 * I'm using 1.5 but that doesn't matter. I looked more closely at your code and then your subpages...finally found out that your code relies on

importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
 * in your monobook.js. After adding that line your script works. I think it's an interesting idea that could be used to add more usefull links. By the way, after you fix the script, you might want to mention that it still wouldn't work in IE6 (and probably in IE7) simply because of  ∴ Alex Smotrov 17:12, 27 September 2007 (UTC)
 * Ah - many thanks for that. I did initially use "Add LI menu" but that would only add to the end of the tab list so incorporated the code into this script. Didn't realise the css import was still required. It is my first script, but I'll bear that in mind for the future. Cheers. → AA (talk) — 22:29, 27 September 2007 (UTC)

Confusing message
"please add Wikipedia:WikiProject User scripts/Scripts/Compact Navigation as a comment to allow tracking of number of users" — what exactly does this mean? Can it just link to editing a section on this talkpage where signatures should be added, or what? $$\sim$$ Lenoxus " * " 02:34, 30 May 2008 (UTC)


 * Hey Lenoxus (wow, nobody must check these talk pages, huh?).
 * They're talking about JavaScript comments, not talk page comments. JavaScript comments are bits of text you can put into a javascript file that won't do anything (so you can explain what a passage of code does, for example). The Wiki software implements something called "backlinking"; it scans user pages for the backlink comment and totals the matches it finds. Copy and paste this on your monobook.js skin page, right after the script, and you should be golden:




 * meteor_sandwich_yum (talk) 07:59, 10 December 2013 (UTC)
 * Ha, I just learned JavaScript last school term, so the joke's on one or other other of us... ± Lenoxus (" *** ")
 * Ah, lucky guess is all meteor_sandwich_yum (talk) 04:57, 22 December 2013 (UTC)