User:Sav/welcome.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
 
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* TO USE: ADD LINES LIKE BELOW
const WELCOME_TEMPLATE = "User:Sav/Welcome";
 
const WELCOME_TEMPLATE = "<full page name of your welcome template>";
mw.loader.load('/w/index.php?title=User:Sav/welcome.js&action=raw&ctype=text/javascript');
 
FOR EXAMPLE:


const WELCOME_TEMPLATE = "User:Sav/Welcome";
mw.loader.load('/w/index.php?title=User:Sav/welcome.js&action=raw&ctype=text/javascript');
mw.loader.load('/w/index.php?title=User:Sav/welcome.js&action=raw&ctype=text/javascript');


*/
const tag = "Welcome!"; // Change this to change the query used to detect if you're welcoming
 
const tag = "welcomingnice"; // Change this to change the query used to detect if you're welcoming


if (mw.config.get('wgNamespaceNumber') == 3) {
if (mw.config.get('wgNamespaceNumber') == 3) {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu