User:-revi/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.
// <pre>
// [[File:Krinkle_Global_SUL.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?oldid=10130488&action=raw&ctype=text/javascript');
// Global userpage (dead now)
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/Global_UP.js&action=raw&ctype=text/javascript');
// MarkAdmins.js
importScript('User:-revi/alist.js');
/**
* 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>
if (typeof pathoschild !== 'undefined') {
pathoschild.TemplateScript.add([
{
category: 'Being nice',
name: 'Welcome',
template: '{{subst:welcome}} ~~~~',
position: 'after',
editSummary: 'Welcome!',
forNamespaces: 'user talk'
},
]);
pathoschild.TemplateScript.add([
{
category: 'Warning',
name: 'test1',
template: '{{subst:Test1}}',
position: 'after',
editSummary: 'Do not test on Meta',
forNamespaces: 'user talk'
},
]);
pathoschild.TemplateScript.add([
{
category: 'Warning',
name: 'test2',
template: '{{subst:Test2}}',
position: 'after',
editSummary: 'Do not test on Meta',
forNamespaces: 'user talk'
},
]);
pathoschild.TemplateScript.add([
{
category: 'Warning',
name: 'test3',
template: '{{subst:Test3}}',
position: 'after',
editSummary: 'Do not test on Meta',
forNamespaces: 'user talk'
},
]);
pathoschild.TemplateScript.add([
{
category: 'Warning',
name: 'test4',
template: '{{subst:Test4}}',
position: 'after',
editSummary: 'Do not test on Meta',
forNamespaces: 'user talk'
},
]);
}
// </nowiki>