View source for User:DodoMan/revertdiff.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
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 title is the title of the section, the MaxLevel is the maximum level ("niveau=") available for that type.
* The Page is the template's Page. Automatically put, it is set to true if available for all levels or set to the max level where it is allowed.
* UserTalkPage tells that we need to return in parameter Page, if we're on a talk page, the page owner's username.
*/
AvailableWarns: {
Global: {Type: "global", Title: "Ta modification a été annulée", MaxLevel: 5, Page: 1},
Copyvio: {Type: "copyvio", Title: "Violation de copyright", MaxLevel: 2, Page: 1},
Encyclo: {Type: "encyclo", Title: "Vikidia est une encyclopédie", MaxLevel: 3},
Polite: {Type: "politesse", Title: "Politesse", MaxLevel: 3, UserTalkPage: true},
Preview: {Type: "prévisualisation", Title: "Merci de [[Aide:Prévisualisation|prévisualiser]]", MaxLevel: 1, Page: true},
Deleted: {Type: "SI", Title: "Article supprimé", MaxLevel: 1, Page: true},
Spam: {Type: "spam", Title: "Spam", MaxLevel: 2, Page: 1},
ShockVandalism: {Type: "vandalisme choquant", Title: "[[Vikidia:Vandalisme|Vandalisme]] choquant", MaxLevel: 3, Page: 2}
},
000
1:0
Return to User:DodoMan/revertdiff.js.