User:DodoMan/revertdiff.js: Difference between revisions

From Test Wiki
Content deleted Content added
Created page with "mw.loader.using(['mediawiki.util', 'mediawiki.api'], function () { if (typeof window.RevertDiff === 'undefined' && location.href.match(/diff=/)) { //We're not already launched AND we're on a diff window.RevertDiff = true;//We're alive ! //Some params. var RevertDiffParams = { /** * Defines the available warns, in the template Averto on the french Vikidia (https://fr.vikidia.org/wiki/Template:Averto). * The type is the template's parameter type, the tit..."
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 93: Line 93:
Welcome: {
Welcome: {
Title: "Bienvenue !",
Title: "Bienvenue !",
MsgUser: '{{subst:Bienvenue|' + mw.config.get('wgUserName') + '}} [[User:Rafdodo|Rafdodo]] ([[User talk:Rafdodo|talk]]) 08:54, 17 March 2024 (UTC)',
MsgUser: '{{subst:Bienvenue|' + mw.config.get('wgUserName') + '}} [[User:DodoMan|DodoMan]] ([[User talk:DodoMan|talk]]) 08:54, 17 March 2024 (UTC)',
MsgIP: '{{subst:Bienvenue IP|' + mw.config.get('wgUserName') + '}} [[User:Rafdodo|Rafdodo]] ([[User talk:Rafdodo|talk]]) 08:54, 17 March 2024 (UTC)'
MsgIP: '{{subst:Bienvenue IP|' + mw.config.get('wgUserName') + '}} [[User:DodoMan|DodoMan]] ([[User talk:DodoMan|talk]]) 08:54, 17 March 2024 (UTC)'
}
}
};
};
Line 217: Line 217:
}
}


Msg += '}} [[User:Rafdodo|Rafdodo]] ([[User talk:Rafdodo|talk]]) 08:54, 17 March 2024 (UTC)'; //We always finish by this.
Msg += '}} [[User:DodoMan|DodoMan]] ([[User talk:DodoMan|talk]]) 08:54, 17 March 2024 (UTC)'; //We always finish by this.


//If we need to block, we remind the user by adding an additionnal sucess msg.
//If we need to block, we remind the user by adding an additionnal sucess msg.