User:MusikAnimal/MoreMenu

From wikishia
User script
MoreMenu.js
File:Screenshot of MoreMenu script.png
Analyzing Jimbo's contributions
DescriptionUseful links to common tasks, user and page analytic tools and logs
AuthorMusikAnimal, Haza-w
StatusStable
Version4.2.5
UpdatedSeptember 23, 2015; Lua error in package.lua at line 80: module 'Module:Date' not found. (2015-09-23)
Browser supportAny modern browser or IE8+
Skin supportVector, Drop-down menus for Monobook and Modern
SourceUser:MusikAnimal/MoreMenu.js

MoreMenu is a script that adds page (and, if applicable, user) drop-down menus to the toolbar. It is a rewrite and expansion of Haza-w's Drop-down menus gadget and heavily based on it. Currently only the vector skin is supported, but for non-vector skins the original Drop-down menus is sourced.

Overview

This gadget adds up to two drop-down menus to the menu bar containing links to useful common tasks, user/page logs, analytic tools/statistics, and tools for administrators. For all but special pages the Page menu is visible. Similarly the User menu is visible only on pages pertaining to a user, including contributions pages.

File:MoreMenu gadget page analysis screenshot.png
Screenshot of the analytics menu of the page drop-down.

Some links are only available to users with certain rights (sysop for the block link, user creation log for account creators, etc). Some links are also visible only in certain namespaces, namely the Tools menu under Page.

In it's default state, hovering over the links will produce the following menus:

| style="width:50%; text-align:left; vertical-align:top;" |

User

| style="width:50%; text-align:left; vertical-align:top;" |

Page

  • Page logs…
    • All logs
    • Deletion log
    • Move log
    • Pending changes log
    • Protection log
  • Analysis
  • Tools
  • XfDs (if page has been nominated for AfD or Mfd in the past)
  • (Un)Delete page (sysop)
  • Edit intro (hidden if Gadget-edittop is enabled)
  • Latest diff
  • Merge page (sysop)
  • Move page
  • Protect page (sysop, reads as "Change protection" if page is already protected)
  • Purge cache
  • Subpages

Smart menus

File:MoreMenu gadget user active blocks screenshot.png
The Blocks menu of a user who is currently blocked. The (un)block item is only visible if you are an administrator.

Some menu items in the user menu appear based on conditions of that user, such as their user groups, or if they've have a current or previous blocks, etc. For an example, the RfX submenu lists only items that have been opened on the user. If no RfX has been opened on the user the RfX menu will be hidden altogether. Similarly the block log item in the Blocks submenu only appears if that user has been blocked in the past.

Setup

Installation

en.wikipedia.org

The easiest way to install the script is to enable it as a gadget: go to your gadget preferences and check the MoreMenu, adds Page and User dropdown menus to the toolbar... entry under Appearance and hit save.

Alternatively you can source the script directly by adding the following to your common.js:

{{subst:iusc|User:MusikAnimal/MoreMenu.js}}
Other WMF wikis

If installing the tool to your account on another Wikimedia Foundation wiki, then add the following to your personal JS:

// Linkback: [[User:MusikAnimal/MoreMenu]]
importScriptURI('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/MoreMenu.js');

You can add this script to all WMF wikis by adding the above to your global.js on MetaWiki, located at meta:Special:MyPage/global.js

FAQ

  • What happened to Haza-w's drop-down menu gadget?
    It's still here. This one is just an updated version for the Vector skin, with a lots of extra links. Non-vector skin users will still see Haza-w's.
  • Why aren't other skins supported?
    Other skins don't play as nice with this type of menu functionality. To outlay the links in a horizontal list (such as with Twinkle) would require a significant amount of space since there's so many links. Instead Haza-w's drop-down menus is sourced for non-vector skins.

Special thanks

To Technical 13 and Callanecc for their tremendous help.

Bugs/feature requests

Ask/request anything you'd like on the talk page.