User:Jayanta (CIS-A2K)/common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:Pathoschild/templatescript.js]]
*/
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add([
// add your own templates or scripts here
{ name: 'Welcome', template: '{{subst:Welcome}} ~~~~', position: 'after', editSummary: '+Welcome!', forNamespaces: 'user talk' },
{ name: 'Uw-scan', template: '{{subst:Uw-scan}} ~~~~', position: 'after', editSummary: 'স্ক্যান ছাড়া পাতা ', forNamespaces: 'user talk' },
{ name: 'Uw-van', template: '{{subst:Uw-van}} ~~~~', position: 'after', editSummary: 'ধ্বংসপ্রবণতা ', forNamespaces: 'user talk'},
{ name: 'Uw-test', template: '{{subst:Uw-test}} ~~~~', position: 'after', editSummary: 'পরীক্ষামূলক সম্পাদনা ', forNamespaces: 'user talk'}
]);
});
// </nowiki>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Jayanta (CIS-A2K)/DiscussionCloser.js&action=raw&ctype=text/javascript');