GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wikimedia-gadgets/MoreMenu: The missing navigation system for MediaWiki

BranchesTags
Open more actions menu

Latest commit

 

History

205 Commits
205 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
dist
dist
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
credentials.json.dist
credentials.json.dist
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
toolinfo.json
toolinfo.json
 
 

Repository files navigation

MoreMenu

Node.js CI

A MediaWiki gadget to add dropdown menus with links to common tasks, user and page analytic tools and logs.

Documentation: https://meta.wikimedia.org/wiki/MoreMenu

Refer to https://meta.wikimedia.org/wiki/MoreMenu#Installation for on-wiki installation.

Contributing

  • npm install to install dependencies.
  • npm run test to run tests.
  • npm run build to compile the source files to the dist/ directory. These are the files that should be deployed to the wiki.

While developing, you can load the uncompiled code served from your local to the wiki. To do this, add the following to your global.js:

moreMenuDebug = true;
mw.loader.using(['mediawiki.user', 'mediawiki.util', 'mediawiki.api', 'mediawiki.Title'], function () {
	mw.loader.load('http://localhost:5501/dist/MoreMenu.messages.en.js');
	mw.loader.load('http://localhost:5501/src/MoreMenu.user.js');
	mw.loader.load('http://localhost:5501/src/MoreMenu.page.js');
	mw.loader.load('http://localhost:5501/src/MoreMenu.js');
});

moreMenuDebug = true; is not necessary but provides useful output, particularly when debugging why certain links aren't showing up.

Then start your server with:

node bin/server.js

Browsing the wiki, you should have a MoreMenu served from your local uncompiled code. Develop and test features as needed. You only need to run npm run build when you're ready to commit changes.

Deployment

You must have interface-admin rights to use the deploy script. Visit https://meta.wikimedia.org/wiki/Special:BotPasswords to obtain credentials, then cp credentials.json.dist credentials.json and change the details accordingly:

{
   "username": "Exampleuser@somedescription",
   "password": "mybotpassword1234567890123456789"
}

To deploy, run node bin/deploy.js "[edit summary]". The edit summary is transformed to include the version number and git SHA, e.g. "v5.5.5 at abcd1234: [edit summary]".

Files in the dist/unversioned/ directory must be synced manually.

About

The missing navigation system for MediaWiki

meta.wikimedia.org/wiki/Special:MyLanguage/MoreMenu

Topics

wikimediawikipediawikipedia-gadget

Resources

Readme
MIT license
Activity
Custom properties

Stars

11 stars

Watchers

3 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

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.