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

Content deleted Content added
updated script per talk page
अद्यतन
पंक्ति 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> */