GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing meta.wikimedia.org — MoreMenu - Meta-Wiki
MoreMenu is a script that adds "Page" and, if applicable, "User" dropdown menus to the toolbar. It is the successor to Haza-w's Drop-down menus gadget and was heavily influenced by it. OverviewThis gadget adds up to two dropdown 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. The User menu is visible only on pages pertaining to a user, including contributions pages. Some links are only available if you have certain rights (block for block links, for example). Additionally, menu items in the User menu may appear based on conditions of the user you are viewing, such as their user rights, or if they've had current or previous blocks, etc. For example the Block log item in the Blocks submenu only appears if that user has been blocked in the past. Some links are also visible only in certain namespaces and on certain projects. InstallationInstalling globally (recommended)Add the following to your global.js: mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js'); This will import all the core modules and give you a functioning script and make it available on all wikis. English Wikipedia extensionIf you are a user of the English Wikipedia, browse to your common.js and import the enwiki extension, which adds menu items for RfAs/RfBs and XfDs, where applicable. mw.loader.using(['mediawiki.util', 'mediawiki.api'], function () { mw.loader.load('https://en.wikipedia.org/w/?title=MediaWiki:Gadget-MoreMenu.enwiki.js&action=raw&ctype=text/javascript'); }); Similar extensions can be added for any wiki, or may already exist on your wiki. See Customization below for more. Menus jumping on page loadIf you use the Vector skin, you prevent the tabs at the top ("Edit", "View history", etc.) from jumping around. For English users, add the following to the top of your global.css: @import url('https://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-MoreMenu-pagestyles.en.css&action=raw&ctype=text/css'); For non-English, replace the Installing as a gadgetYour local wiki may have MoreMenu available in the gadget preferences. Installing globally is recommended, however, so that MoreMenu is available on all wikis. If you are an interface administrator and would like to install MoreMenu as a gadget on your wiki, follow these steps:
LocalizationTranslations are pulled from Please submit changes to the English translations as a pull request on the GitHub repository. CustomizationOptions
These options should be set at the top of your global.js, like the following: MoreMenu = { disableAutoRemoval: true, }; MoreMenu can be extended with custom links and functionality. Links should be added only after the Adding custom links
Here are the descriptions for each parameter:
ExamplesTo add a link to https://example.org under the "Page" menu, add the following code to your common.js page: mw.hook('moremenu.ready').add(function (config) { MoreMenu.addLink( 'page', 'Example', 'https://www.example.org' ); // add more MoreMenu.addLink(); instances here... }); The Say you wanted to show a link to the user's "Requests for Adminship" pages under the "Analysis" submenu: mw.hook('moremenu.ready').add(function (config) { MoreMenu.addSubmenuLink( 'user', 'analysis', 'RfAs', mw.util.getUrl('Special:PrefixIndex/Wikipedia:Requests for Adminship/' + config.targetUser.name) ); // add more links here... }); Now let's say you wanted to add a "RfXs" submenu, with links to RfAs, request for bureaucratship, etc., and only show these links if those pages exist. See Links to pages matching a pattern for how to do this! AdvancedIn addition to See MoreMenu/Advanced for more information. Peer gadgetThis documentation is for setting up MoreMenu as a gadget on your local wiki. See Menus jumping on page load for user installation.
When top-level menus are added in the Vector skin, the "Read", "Edit", and "View history" tabs will shift. This means that if you are working very quickly, you might accidentally click in the wrong place before MoreMenu finishes loading. To prevent this, you can use a peer gadget to keep the space available. First, check Special:PrefixIndex/MediaWiki:Gadget-MoreMenu-pagestyles to see if there is CSS code for your language already that you can copy to your wiki. If there isn't, you'll need to calculate the widths. Once the gadget is enabled, you can run Once you have the widths, create /*** VECTOR ***/ /* User menu */ .client-js .skin-vector.ns-2 #p-views, .client-js .skin-vector.ns-3 #p-views, .client-js > .skin-vector.mw-special-Contributions #p-views, .client-js > .skin-vector.mw-special-DeletedContributions #p-views, .client-js > .skin-vector.mw-special-Block #p-views { padding-right: 3.68em; } /* Page menu */ .client-js .skin-vector:not(.ns-special) #p-views .vector-menu-content::after { content: ''; display: inline-block; width: 3.85em; } Then update your gadget configuration accordingly: * MoreMenu-local[ResourceLoader|dependencies=mediawiki.api,mediawiki.util,user.options|peers=MoreMenu-local-pagestyles]|MoreMenu-local.js * MoreMenu-local-pagestyles[hidden]|MoreMenu-local-pagestyles.css Bugs/feature requestsAsk/request anything you'd like on the talk page. Retrieved from "https://meta.wikimedia.org/w/index.php?title=MoreMenu&oldid=29980211" | ||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||