MediaWiki:Gadget-toolbar-buttons.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Aggiungo 4 pulsanti dal monobook modulare |
riordino pulsanti avvisivoci |
||
Riga 234:
'Da aiutare': makeAvviso( 'A', 'A', '//upload.wikimedia.org/wikipedia/commons/f/f9/Pulsante_A.gif', true ),
'Da controllare': {
group: 'avvisivoci',
Riga 265 ⟶ 259:
}
},
'Da dividere': {
group: 'avvisivoci',
ns: [ 0, 4, 10, 12, 14 ],
icon: '//upload.wikimedia.org/wikipedia/commons/2/2f/Button_d%C3%A9c%C3%A8s.png',
template: {
name: 'D',
position: 'top',
params: {
commento: {
type: 'textbox',
label: 'Motivazione'
},
pagina1: {
type: 'textbox',
label: 'Prima pagina'
},
pagina2: {
type: 'textbox',
label: 'Seconda pagina (opzionale)'
},
pagina3: {
type: 'textbox',
label: 'Terza pagina (opzionale)'
},
},
format: function ( params ) {
var base = '|pagina1=' + params.pagina1;
if ( params.pagina2 !== '' ) {
base += '|pagina2=' + params.pagina2;
if ( params.pagina3 !== '' ) {
base += '|pagina3=' + params.pagina3;
}
}
return ( base + '|commento=' + params.commento );
}
}
},
'Enciclopedicità dubbia': makeAvviso( 'E', 'E', '//upload.wikimedia.org/wikipedia/commons/5/5b/Pulsante_enciclop.png', true ),
'Carente di fonti': {
group: 'avvisivoci',
Riga 314 ⟶ 346:
}
},
'Orfana': makeAvviso('O', 'O', '//upload.wikimedia.org/wikipedia/commons/5/5e/Pulsante_orfana.gif' ),
'POV': makeAvviso( 'P', 'P', '//upload.wikimedia.org/wikipedia/commons/6/61/Pulsante_pov.gif', true ),
'Stub': {
group: 'avvisivoci',
Riga 448 ⟶ 482:
}
},
'Da wikificare': makeAvviso( 'W', 'W', '//upload.wikimedia.org/wikipedia/commons/2/24/Pulsante-wikificare.gif' ),
'Cancella subito': {
group: 'avvisivoci',
hotkey: 'Y',
icon: '//upload.wikimedia.org/wikipedia/commons/
template: {
name: '
position: 'top',
noinclude: true,
params: {
type: '
label: '
value: criteri
},
type: 'textbox',
label: '
}
},
format: function ( params ) {
}
}
'Cancellazione': {
group: 'avvisivoci',
hotkey: 'D',
icon: '//upload.wikimedia.org/wikipedia/commons/7/7b/Pulsante_cancsempl.gif',
template: {
name: 'Cancellazione',
position: 'top',
noinclude: true,
format: function ( params ) {
return '|arg=';
}
}
Riga 507 ⟶ 544:
}
},
'Da categorizzare': {
group: 'avvisivoci',
icon: '//upload.wikimedia.org/wikipedia/commons/5/55/Pulsante-categorizzare.gif',
template: {
name: 'Categorizzare',
position: 'bottom',
noinclude: true,
params: {
argomento: {
type: 'combobox',
label: 'Argomento',
value: argomenti
}
},
format: function ( params ) {
return params.argomento ? ( '|' + params.argomento ) : '';
}
}
},
'Controlcopy': makeAvviso( 'Controlcopy', null, '//upload.wikimedia.org/wikipedia/commons/7/75/Wiki_c_copy.gif', true ),
'Correggere': makeAvviso( 'Correggere', null, '//upload.wikimedia.org/wikipedia/commons/d/d9/Button_uncorrect.png', false, true ),
'Da aggiornare': {
group: 'avvisivoci',
ns: [ 0 ],
icon: '//upload.wikimedia.org/wikipedia/commons/c/cd/Button_vote_deletion.png',
template: {
name: 'Da aggiornare',
position: 'top',
params: {
anno: {
type: 'textbox',
label: 'Anno'
},
mese: {
type: 'combobox',
label: 'Mese',
value: monthNames
}
},
format: function ( params ) {
var n = monthNames.indexOf( params.mese );
return '|anno=' + params.anno +
( params.mese !== '' ? ( '|mese=' + ( n < 10 ? '0' : '' ) + n ) : '' );
}
}
},
'Disambigua': {
group: 'avvisivoci',
ns: [ 0 ],
icon: '//upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png',
template: {
name: 'Disambigua',
position: 'top',
extratext: "\n* '''[[|]]''' – \n* '''[[|]]''' – \n* '''[[|]]''' – "
}
},
'In corso': makeAvviso( 'In corso', null, '//upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png' ),
'Immagine orfana': {
group: 'avvisivoci',
Riga 540 ⟶ 634:
}
return ret;
}
}
Riga 586 ⟶ 661:
}
},
'
group: 'avvisivoci',
ns: [ 0, 4, 10, 12, 14 ],
icon: '//upload.wikimedia.org/wikipedia/commons/
template: {
name: '
position: 'top',
motivo: {
type: 'textbox',
label: 'Motivazione'
},
pagina: {
type: 'textbox',
label: 'Pagina (senza "[[ ]]")',
autocomplete: 'contribs'
},
redirect: {
type: 'textbox',
label: 'Nome del redirect (senza "[[ ]]")'
}
},
format: function ( params ) {
var b = ( params.motivo + params.pagina + params.redirect ) !== '' ? '|' : '';
return b + params.motivo + b + ( params.pagina !== '' ? ( params.pagina ) : '' ) +
( params.redirect !== '' ? ( b + params.redirect ) : '' );
}
}
},
'Portale': {
group: 'avvisivoci',
ns: [ 0, 14 ],
icon: '//upload.wikimedia.org/wikipedia/commons/
template: {
name: '
params: {
type: '
label: '
value: portali
},
type: 'combobox',
label: '
value:
},
portale3: {
type: 'combobox',
label: 'Portale 3',
value: portali
}
},
format: function ( params ) {
( params.
( '|' + params.portale3 ) : '' );
}
}
},
'
group: 'avvisivoci',
icon: '//upload.wikimedia.org/wikipedia/commons/9/90/Pulsante_editwar.png',
template: {
name: '
position: 'top',
noinclude: true
}
},
'Richiesta pulizia': {
group: 'avvisivoci',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png',
template: {
name: 'RichiestaPulizia',
params: {
type: 'textbox',
label: '
},
versione2: {
type: 'textbox',
label: 'Oldid versione finale (se più di una)'
},
commento: {
type: 'textbox',
label: 'Commento'
}
},
format: function ( params ) {
return
'|da=' + params.versione1 + '|a=' + params.versione2 : '|' + params.versione1 ) +
( params.commento !== '' ? '|commento=' + params.commento : '' );
}
}
},
'Scorporo/unione': {
group: 'avvisivoci',
ns: [ 1 ],
icon: '//upload.wikimedia.org/wikipedia/commons/5/5f/Button_rediriger.png',
template: {
name: 'ScorporoUnione',
params: {
azione: {
type: 'combobox',
label: 'Scorporo/unione',
value: [ '', 'scorporo', 'unione' ]
},
pagina: {
type: 'textbox',
label: 'Pagina (senza "[[ ]]")',
autocomplete: 'contribs'
},
oldid: {
type: 'textbox',
label: 'Oldid'
}
},
format: function ( params ) {
var ret = '';
$.each( params, function ( key, value ) {
ret += '|' + key + '=' + value;
} );
ret += '|data={{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}';
return ret;
}
}
Riga 683 ⟶ 828:
}
},
'
group: 'avvisivoci',
summary: '+Cn',
icon: '//upload.wikimedia.org/wikipedia/commons/b/bd/Btn_plus.png',
text: { pre: '{{Senza fonte|', post: '}}' }
},
'
group: 'avvisivoci',
icon: '//upload.wikimedia.org/wikipedia/commons/
template: {
name: '
position: 'top',
params: {
type: '
label: '
},
type: '
label: '
value: false
}
},
format: function ( params ) {
return '|' + params.template + ( params.paragrafo ? '|s' : '' );
}
}
},
Riga 768 ⟶ 883:
}
},
'
group: 'avvisivoci',
ns: [
hotkey: 'V',
icon: '//upload.wikimedia.org/wikipedia/commons/e/e8/Pulsante_unverified.png',
template: {
name: '
format: function ( params ) {
return '|giorno={{subst:CURRENTDAY}}|mese={{subst:CURRENTMONTHNAME}}|anno={{subst:CURRENTYEAR}}';
}
}
},
'
group: 'avvisivoci',
ns: [ 0 ],
icon: '//upload.wikimedia.org/wikipedia/commons/
template: {
name: '
position: 'top',
params: {
type: 'textbox',
label: '
}
},
format: function ( params ) {
return '|url=' + params.
}
}
},
'
group: 'avvisivoci',
ns: [ 0 ],
icon: '//upload.wikimedia.org/wikipedia/commons/2/27/Pulsante_wip.png',
template: {
name: '
format: function ( params ) {
return
}
}
|