User:Geniac/global.js
Appearance
From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Geniac (talk | contribs) at 15:34, 19 May 2019 (created global.js). It may differ significantly from the current version .
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)
- Edge: Hold Ctrl while clicking Refresh, or 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'}, ]); }); // </nowiki>