"मीडियाविकि:Gadget-RegexMenuFramework.js": अवतरणों में अंतर
पठन सेटिंग्स
Content deleted Content added
Pathoschild (वार्ता | योगदान) 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> */