Fandom

Wikia Developers Wiki

ShareMenu

915pages on
this wiki
Add New Page
Talk5 Share

ShareMenu is a menu that can be installed that is intended as a place for small utilities, such as Translator, to leave their control buttons.

Developer Information

To add a button to the share menu, do the following:

  1. Use the jQuery ready method to wait until '#PowerShareMenu' is ready.
  2. Amend your button's code to '#PowerShareMenu'.

For an example, look the source of a script that uses ShareMenu. I.E. TumblrShare.

Make sure it is noted in the script's documentation page that the script uses ShareMenu. Link to the ShareMenu page to ease installation.

End-User Information

ShareMenu is a unified menu for various scripts to add their interfaces.

Installation Instructions

Wiki-Wide

  1. Add the following to your MediaWiki:Common.js:
    importScriptPage('MediaWiki:ShareMenu/code.js', 'dev');
  2. Wait up to half an hour for all the caching problems to be dealt with.
  3. Click the New Page button to ensure that the feature was installed correctly. If it was not, describe the failure on this page in the "Known Problems" section with extreme detail. If it was installed correctly, enjoy.

User-Specific

  1. Add the following to your global.js:
    importScriptPage('ShareMenu/code.js', 'dev');
  2. Wait up to half an hour for all the caching problems to be dealt with.

Dependent Scripts

The following scripts depend on ShareMenu:

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.