« MediaWiki:Gadget-RevertDiff.js » : différence entre les versions
Contenu supprimé Contenu ajouté
m Correction de redirection |
utilisation des liens directs plutôt que les redirections, subst de certains modèles devant l'être, ajout de la signature à la suite du message "Faut sourcer" |
||
Ligne 74 :
} else if (location.href.match(/warn=3/)) {
document.getElementById('wpSummary').value = 'Avertissement';
document.getElementById('wpTextbox1').value = '{{
document.getElementById('editform').submit();
} else if (location.href.match(/warn=4/)) {
document.getElementById('wpSummary').value = 'Dernier avertissement';
document.getElementById('wpTextbox1').value = '{{
document.getElementById('editform').submit();
} else if (location.href.match(/warn=5/)) {
document.getElementById('wpSummary').value = '
document.getElementById('wpTextbox1').value = '{{
document.getElementById('editform').submit();
} else if (location.href.match(/warn=6/)) {
Ligne 88 :
document.getElementById('editform').submit();
} else if (location.href.match(/warn=7/)) {
document.getElementById('wpTextbox1').value = '{{subst:Faut sourcer}} ~~'+'~~';
document.getElementById('editform').submit();
} else if (location.href.match(/warn=8/)) {
|