सामग्री पर जाएँ

"मीडियाविकि:Gadget-RegexMenuFramework.js": अवतरणों में अंतर

मुक्त ज्ञानकोश विकिपीडिया से
Content deleted Content added
updated script per talk page
अद्यतन
पंक्ति 1: पंक्ति 1:
/* Script: [[m:User:Pathoschild/Scripts/Regex menu framework]]
/**
* RegexMenuFramework: creates a sidebar menu of user-defined regex tools
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* Documentation: [[m:User:Pathoschild/Scripts/Regex menu framework]]
* @see https://meta.wikimedia.org/wiki/TemplateScript
* Written by: Pathoschild
* @update-token [[File:pathoschild/templatescript.js]]
*/
*
<source lang="javascript"><nowiki>
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');
*/
// 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> */

12:36, 29 अगस्त 2015 का अवतरण

/* 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> */