MediaWiki:Gadget-RegexMenuFramework.js

From Wikipedia, the free encyclopedia

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button. Firefox: hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

/* Script:  [[m:User:Pathoschild/Scripts/Regex menu framework]]
  * RegexMenuFramework: creates a sidebar menu of user-defined regex tools
  * Documentation: [[m:User:Pathoschild/Scripts/Regex menu framework]]
  * Written by: Pathoschild
  * 
  <source lang="javascript"><nowiki>
*/
// load script
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript');
 
// default menu links
function gadget_rmflinks() {
        regexTool('Custom regex','custom()'); // a default tool which performs regex input in a dynamic form
}
/* </nowiki></source> */