MediaWiki:Gadget-QuickDelete.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m Ha protetto Wikipedia:Monobook.js/Quick-delete.js: Pagina di servizio ad alto pericolo in caso di vandalismo [edit=sysop:move=sysop]
aggiunti altri pulsanti
Riga 15:
 
// String constants
mnl_textmnlicenza_text = "Immagine senza licenza";
mnl_tooltipmnlicenza_tooltip = "Segna questa immagine come mancante di informazioni sulla licenza";
mnlicenza_template = "{{Avvisoimmagine}}";
mnfonte_text = "Immagine senza fonte/autore";
mnfonte_tooltip = "Segna questa immagine come mancante di informazioni sulla fonte/autore";
mnfonte_template = "{{Avvisoimmagine3}}";
mnotrs_text = "Immagine senza OTRS";
mnotrs_tooltip = "Segna questa immagine come mancante di informazioni sulla licenza OTRS";
mnotrs_template = "{{AvvisoOTRS}}";
mnedp_text = "Immagine EDP non accettabile";
mnedp_tooltip = "Segna questa immagine come non rispettante le norme EDP";
mnedp_template = "{{AvvisoEDP}}";
mnaltro_text = "Immagine senza altre informazioni";
mnaltro_tooltip = "Segna questa immagine come mancante di informazioni";
mnaltro_template = "{{Avvisoimmagine2}}";
 
// From [[en:Wikipedia:WikiProject User scripts/Scripts/addLink]]
Riga 131 ⟶ 144:
document.editform.wpTextbox1.value = txt + '\n' + document.editform.wpTextbox1.value;
// document.editform.wpSummary.value = 'marking image as missing essential ' + sorl + ' information. If this is not fixed this image might be deleted after 7 days.';
document.editform.wpSummary.value = 'SegnoSegnalazione di l\'immagine come[[Wikipedia:Immagini unverified.da Mancaverificare|da laverificare]] licenza(unverified). Se non correttaverificata entroquesta 7immagine giorni verràsarà cancellata tra 7 giorni.';
if (mnx_autosave) document.editform.wpSave.click();
}
Riga 137 ⟶ 150:
// Add warning template to uploader's talk page
function mnx_addUserWarningTemplate(imagetarget, template_type) {
if (template_type == 'mnlicenza')
var txt = '{{subst:Avvisoimmagine' + '|immagine=' + imagetarget + '}}';
{
 
// add in subst: if you want to subst these warnings
document.editform.wpTextbox1.value + var txt = '\n==Attenzione:{{Avvisoimmagine' caricata+ '|immagine senza licenza==\n' + txt + '~~'imagetarget + '~~\n}}';
document.editform.wpSummarywpTextbox1.value += "Attenzione: caricata immagine'\n==Immagine senza licenza."==\n' + txt + '~~' + '~~\n';
document.editform.wpSummary.value = "Immagine senza licenza";
}
if (template_type == 'mnfonte')
{
// add in subst: if you want to subst these warnings
var txt = '{{Avvisoimmagine3' + '|' + imagetarget + '}}';
document.editform.wpTextbox1.value += '\n==Informazioni mancanti==\n' + txt + '~~' + '~~\n';
document.editform.wpSummary.value = "Informazioni mancanti";
}
if (template_type == 'mnotrs')
{
// add in subst: if you want to subst these warnings
var txt = '{{AvvisoOTRS' + '|' + imagetarget + '}}';
document.editform.wpTextbox1.value += '\n==Informazioni mancanti==\n' + txt + '~~' + '~~\n';
document.editform.wpSummary.value = "Informazioni mancanti";
}
if (template_type == 'mnedp')
{
// add in subst: if you want to subst these warnings
var txt = '{{AvvisoEDP' + '|' + imagetarget + '}}';
document.editform.wpTextbox1.value += '\n==EDP non rispettata==\n' + txt + '~~' + '~~\n';
document.editform.wpSummary.value = "EDP non rispettata";
}
if (template_type == 'mnaltro')
{
// add in subst: if you want to subst these warnings
var txt = '{{subst:AvvisoimmagineAvvisoimmagine2' + '|immagine=' + imagetarget + '}}';
document.editform.wpTextbox1.value += '\n==Immagine senza informazioni==\n' + txt + '~~' + '~~\n';
document.editform.wpSummary.value = "Immagine senza informazioni.";
}
// this is the edit summary for when you leave the user warning on the talk page.
// you can change it if you want.
Riga 149 ⟶ 193:
function mnx_onload() {
if (wgNamespaceNumber == 6) { //NS_IMAGE
addLink('p-tb', 'javascript:mnx_mark(\'mnl_mnlmnlicenza\', \'mnx_warn\')', mnl_textmnlicenza_text, 'mark-no-license', mnl_tooltipmnlicenza_tooltip, null, null);
addLink('p-tb', 'javascript:mnx_mark(\'mnfonte\', \'mnx_warn\')', mnfonte_text, 'mark-no-source', mnfonte_tooltip, null, null);
addLink('p-tb', 'javascript:mnx_mark(\'mnotrs\', \'mnx_warn\')', mnotrs_text, 'mark-no-otrs', mnotrs_tooltip, null, null);
addLink('p-tb', 'javascript:mnx_mark(\'mnedp\', \'mnx_warn\')', mnedp_text, 'mark-no-edp', mnedp_tooltip, null, null);
addLink('p-tb', 'javascript:mnx_mark(\'mnaltro\', \'mnx_warn\')', mnaltro_text, 'mark-no-altro', mnaltro_tooltip, null, null);
}
var fakeaction = getParamValue('fakeaction');
var template_type = getParamValue('template_type'); // Fetch what template to add
 
// In realta' tutti aggiungono il template {{unverdata}} alla pagina dell'immagine. Questo meta-switch e' stato lasciato
if (fakeaction == 'mnl_mnl'){
// per semplificare futuri improvements
mnx_addTemplate('nld','license');
if (fakeaction == 'mnl_mnlmnlicenza'){
mnx_addTemplate('nld','licensemnlicenza');
}
else if (fakeaction == 'mnfonte'){
mnx_addTemplate('mnfonte');
}
else if (fakeaction == 'mnotrs'){
mnx_addTemplate('mnfonte');
}
else if (fakeaction == 'mnedp'){
mnx_addTemplate('mnfonte');
}
else if (fakeaction == 'mnaltro'){
mnx_addTemplate('mnfonte');
}
if (fakeaction == 'mnx_warn') { // Add warning to uploader's talk page
mnx_addUserWarningTemplate(decodeURIComponent(getParamValue('target')), template_type);