Gadgets/Reftoolbar


More general info about Gadgets

Setup

edit

To setup the gadget (VisualEditor variant) in new project:

  1. Add the source code
    • To turn it as a gadget that user can select in their preferences (requires sysop rights):
      1. create MediaWiki:Gadget-RefToolbarVE.js with the following code:
        mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');
        
      2. create MediaWiki:Gadget-RefToolbarVE with short description
      3. add it to MediaWiki:Gadgets-definition
    • To test it (if you aren't sysop):
      1. add the source code to your personal JS (Special:MyPage/common.js).
        mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');