Wikipedia talk:WikiProject User scripts/Scripts/Compact Navigation

From Wikipedia, the free encyclopedia
Jump to: navigation, search


Script: Wikipedia:WikiProject User scripts/Scripts/Compact Navigation
Author: AA
Requires: Firefox (will not work with IE6 or IE7)
Tested: Firefox, 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.


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 → 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 importStylesheetAlex 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[edit]

"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? 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:
//Linkback: [[Wikipedia:WikiProject User scripts/Scripts/Compact Navigation]]
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 Face-smile.svg meteor_sandwich_yum (talk) 04:57, 22 December 2013 (UTC)