Utente:Jalo/monobook.js/test: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 3 226:
'tools': {
// pulsante AIUTARE
'aiutare': {
label: 'Da aiutare',
Riga 3 234 ⟶ 3 233:
type: 'dialog',
module: 'aiutare',
}
},
// pulsante CONTROLLARE
'controllare': {
label: 'Da controllare',
Riga 3 244 ⟶ 3 241:
icon: 'http://upload.wikimedia.org/wikipedia/it/e/e2/Pulsante-controllare.gif',
action: {
type: '
}
},
// pulsante ENCICLOPEDICITà
'enciclopedicita': {
label: 'Enciclopedicità dubbia',
Riga 3 257 ⟶ 3 251:
icon: 'http://upload.wikimedia.org/wikipedia/it/5/5b/Pulsante_enciclop.png',
action: {
type: '
}
},
// pulsante SENZA FONTI
'senzafonti': {
label: 'Senza fonti',
Riga 3 270 ⟶ 3 261:
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/33/Button_unreferenced.png',
action: {
type: '
}
},
// pulsante ORFANA
'orfana': {
label: 'Orfana',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/it/3/3c/Pulsante-orfana.gif',
}
},
// pulsante IMMAGINE ORFANA
'immagineorfana': {
label: 'Immagine orfana',
Riga 3 296 ⟶ 3 280:
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3a/Button_av-img.png',
action: {
type: '
}
},
// pulsante POV
'pov': {
label: 'POV',
Riga 3 309 ⟶ 3 290:
icon: 'http://upload.wikimedia.org/wikipedia/it/a/ab/Pulsante-pov.gif',
action: {
type: '
}
},
// pulsante STUB
'stub': {
label: 'Stub',
Riga 3 322 ⟶ 3 300:
icon: 'http://upload.wikimedia.org/wikipedia/it/1/11/Stubber.png',
action: {
type: '
}
},
// pulsante STUB TUTTI
'stubtutti': {
label: 'Stub tutti',
Riga 3 335 ⟶ 3 310:
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b2/Button_tuti.png',
action: {
type: '
}
},
// pulsante STUB SECT
'stubsezione': {
label: 'Stub sezione',
Riga 3 348 ⟶ 3 320:
icon: 'http://upload.wikimedia.org/wikipedia/it/c/ce/Pulsante_sezione.png',
action: {
type: '
}
},
// pulsante TRADURRE
'tradurre': {
label: 'Tradurre',
Riga 3 361 ⟶ 3 330:
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_templatelink.png',
action: {
type: '
}
},
// pulsante SENZA NOTE
'senzanote': {
label: 'Senza note',
Riga 3 374 ⟶ 3 340:
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/54/Button_naissance.png',
action: {
type: '
}
},
// pulsante RINOMINA CATEGORIA
'rinominacategoria': {
label: 'Rinomina categoria',
Riga 3 387 ⟶ 3 350:
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png',
action: {
type: '
}
},
// pulsante DA UNIRE
'daunire': {
label: 'Da unire',
Riga 3 400 ⟶ 3 360:
icon: 'http://upload.wikimedia.org/wikipedia/it/e/eb/Pulsante_unire.png',
action: {
type: '
}
},
// pulsante DA DIVIDERE
'dadividere': {
label: 'Da dividere',
Riga 3 413 ⟶ 3 370:
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2f/Button_d%C3%A9c%C3%A8s.png',
action: {
type: '
}
},
// pulsante WIKIFICARE
'wikificare': {
label: 'Wikificare',
Riga 3 426 ⟶ 3 380:
icon: 'http://upload.wikimedia.org/wikipedia/it/2/24/Pulsante-wikificare.gif',
action: {
type: '
}
},
// pulsante CATEGORIZZARE
'categorizzare': {
label: 'Categorizzare',
Riga 3 439 ⟶ 3 390:
icon: 'http://upload.wikimedia.org/wikipedia/it/5/55/Pulsante-categorizzare.gif',
action: {
type: '
}
},
// pulsante DA INVERTIRE
'dainvertire': {
label: '
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/70/Button_fusion.png',
action: {
type: '
}
},
// pulsante DA CORREGGERE
'correggere': {
label: 'Correggere',
Riga 3 465 ⟶ 3 410:
icon: 'http://upload.wikimedia.org/wikipedia/commons/d/d9/Button_uncorrect.png',
action: {
type: '
}
},
// pulsante INCORSO
'incorso': {
label: 'In corso',
Riga 3 478 ⟶ 3 420:
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png',
action: {
type: '
}
},
// pulsante DA AGGIORNARE
'aggiornare': {
label: 'Aggiornare',
Riga 3 491 ⟶ 3 430:
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cd/Button_vote_deletion.png',
action: {
type: '
}
},
// pulsante CANCELCOPY
'cancelcopy': {
label: 'Cancelcopy',
Riga 3 504 ⟶ 3 440:
icon: 'http://upload.wikimedia.org/wikipedia/it/1/15/Pulsante-canccopy.png',
action: {
type: '
}
},
// pulsante CANCELLAZIONE
'cancellazione': {
label: 'Cancellazione',
Riga 3 517 ⟶ 3 450:
icon: 'http://upload.wikimedia.org/wikipedia/it/a/a5/Pulsante-cancsempl.gif',
action: {
type: '
}
},
// pulsante CANCELLAZIONE IMMEDIATA
'cancellazioneimmediata': {
label: 'Cancellazione immediata',
Riga 3 530 ⟶ 3 460:
icon: 'http://upload.wikimedia.org/wikipedia/it/8/8f/Pulsante-cancimm.png',
action: {
type: '
}
},
// pulsante RICHIESTA PULIZIA
'richiestapulizia': {
label: 'Richiesta pulizia',
Riga 3 543 ⟶ 3 470:
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/ef/Deletereason.png',
action: {
type: '
}
},
// pulsante CONTROLCOPY
'controlcopy': {
label: 'Controlcopy',
Riga 3 556 ⟶ 3 480:
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/75/Wiki_c_copy.gif',
action: {
type: '
}
},
// pulsante COPYVIOL
'copyviol': {
label: 'copyviol',
Riga 3 569 ⟶ 3 490:
icon: 'http://upload.wikimedia.org/wikipedia/it/5/52/Pulsante_copyviol.png',
action: {
type: '
}
},
// pulsante TRASFERIMENTO
'trasferimento': {
label: 'Trasferimento',
Riga 3 582 ⟶ 3 500:
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/bd/Button_recherche_ip.png',
action: {
type: '
}
},
// pulsante SCORPOROUNIONE
'scorporounione': {
label: 'ScorporoUnione',
Riga 3 595 ⟶ 3 510:
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_rediriger.png',
action: {
type: '
}
}
Riga 3 607 ⟶ 3 520:
'tools': {
// pulsante AVVISO SENZA FONTI
'avvisosenzafonti': {
label: 'Avviso senza fonti',
Riga 3 613 ⟶ 3 525:
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/33/Button_unreferenced.png',
action: {
type: '
}
},
// pulsante CANCELLA UTENTE
'cancellautente': {
label: 'Avviso cancellazione',
Riga 3 626 ⟶ 3 535:
icon: 'http://upload.wikimedia.org/wikipedia/it/0/00/Pulsante-cancut.png',
action: {
type: '
}
},
// pulsante AVVISO COPYVIOL
'avvisocopyviol': {
label: 'Avviso copyviol',
Riga 3 639 ⟶ 3 545:
icon: 'http://upload.wikimedia.org/wikipedia/it/e/ef/Pulsante_avvcopy.png',
action: {
type: '
}
},
// pulsante AVVISO IMMAGINE
'avvisoimmagine': {
label: 'Avviso immagine',
Riga 3 652 ⟶ 3 555:
icon: 'http://upload.wikimedia.org/wikipedia/it/a/a5/Pulsante_avviso_licenza_immagine.png',
action: {
type: '
}
},
// pulsante AVVISO VANDALISMO
'avvisovandalismo': {
label: 'Avviso vandalismo',
Riga 3 665 ⟶ 3 565:
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/64/Wiki_vand.gif',
action: {
type: '
}
},
// pulsante AVVISO TURPILOQUIO
'avvisoturpiloquio': {
label: 'Avviso turpiloquio',
Riga 3 678 ⟶ 3 575:
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/11/Button_Nuvola_apps_edu_lang.png',
action: {
type: '
}
},
// pulsante AVVISO AVVISI
'avvisoavvisi': {
label: 'Avviso avvisi',
Riga 3 691 ⟶ 3 585:
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f3/Button_broom2.png',
action: {
type: '
}
},
// pulsante CARTELLINO GIALLO
'cartellinogiallo': {
label: 'Cartellino giallo',
Riga 3 704 ⟶ 3 595:
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/cc/Bouton_Vandale2.png',
action: {
type: '
}
},
// pulsante CARTELLINO ROSSO
'cartellinorosso': {
label: 'Cartellino rosso',
Riga 3 717 ⟶ 3 605:
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e4/Bouton_Vandale3.png',
action: {
type: '
}
},
// pulsante BLOCCO
'blocco': {
label: 'Blocco',
Riga 3 730 ⟶ 3 615:
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/7e/Bouton_Vandale4.png',
action: {
type: '
}
},
// AVVISO SPAM
'avvisospam': {
label: 'Spam',
Riga 3 743 ⟶ 3 625:
icon: 'http://upload.wikimedia.org/wikipedia/it/c/cb/Pulsante_spam.png',
action: {
type: '
}
},
// AVVISO TEST
'avvisotest': {
label: 'Test',
Riga 3 756 ⟶ 3 635:
icon: 'http://upload.wikimedia.org/wikipedia/commons/4/40/Wiki_test.GIF',
action: {
type: '
}
},
// AVVISO PROMOZIONALE
'avvisopromozionale': {
label: 'Promozionale',
Riga 3 769 ⟶ 3 645:
icon: 'http://upload.wikimedia.org/wikipedia/commons/9/9d/Button_halt.png',
action: {
type: '
}
},
// SENZA SENSO
'senzasenso': {
label: 'Senza senso',
Riga 3 782 ⟶ 3 655:
icon: 'http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_question.png',
action: {
type: '
}
},
// BENVENUTO
'benvenuto': {
label: 'Benvenuto',
Riga 3 802 ⟶ 3 672:
},
// DATE PERSONALI
'datepersonali': {
label: 'Date personali',
Riga 3 815 ⟶ 3 684:
},
// GRAZIE
'grazie': {
label: 'Grazie',
Riga 3 821 ⟶ 3 689:
icon: 'http://upload.wikimedia.org/wikipedia/it/2/23/Pulsante_grazie.png',
action: {
type: '
}
},
// AIUTOW
'aiutow': {
label: 'Aiuto wikificare',
Riga 3 834 ⟶ 3 699:
icon: 'http://upload.wikimedia.org/wikipedia/it/2/24/Pulsante-wikificare.gif',
action: {
type: '
}
},
// Avvisofirma
'avvisofirma': {
label: 'Avviso firma',
Riga 3 924 ⟶ 3 786:
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/58/Button_black_copyright.png',
action: {
type: '
}
},
Riga 3 948 ⟶ 3 808:
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_problematic.png',
action: {
type: '
}
},
Riga 3 960 ⟶ 3 818:
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/64/Wiki_vand.gif',
action: {
type: '
}
},
Riga 4 008 ⟶ 3 864:
icon: 'http://upload.wikimedia.org/wikipedia/it/8/8d/Nota_dis.png',
action: {
type: '
}
},
Riga 4 032 ⟶ 3 886:
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/12/Button_find.png',
action: {
type: '
}
},
Riga 4 044 ⟶ 3 896:
icon: 'http://upload.wikimedia.org/wikipedia/it/6/6b/Pulsante_tmp.png',
action: {
type: '
}
},
Riga 4 056 ⟶ 3 906:
icon: 'http://upload.wikimedia.org/wikipedia/it/2/26/Pulsante_monitoraggio.png',
action: {
type: '
}
},
Riga 4 094 ⟶ 3 942:
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/63/Button_out_relevancy.png',
action: {
type: '
}
},
Riga 4 130 ⟶ 3 976:
icon: 'http://upload.wikimedia.org/wikipedia/it/3/33/Pulsante_Portali.png',
action: {
type: '
}
},
Riga 4 155 ⟶ 3 999:
icon: 'http://upload.wikimedia.org/wikipedia/it/d/d5/Pulsante_dmoz.png',
action: {
type: '
}
},
Riga 4 214 ⟶ 4 056:
var text = $textarea.textSelection( 'getContents' );
text = "{{A|"+motivo+"|"+argomento+"|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}|firma=~~~~}}\n"+text;
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'wikificare': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-wikificare',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
text = "{{W|"+argomento+"|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}\n"+text;
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'stub': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-stub',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento2">\
<label for="Argomento2" rel="Argomento2"></label>\
<select name="Argomento2" id="wikieditor-toolbar-argomento2" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
var argomento2 = $j( '#wikieditor-toolbar-argomento2' ).val();
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
if (argomento2 != " ")
text="{{S|"+argomento+"|"+argomento2+"}}\n"+text;
else
text="{{S|"+argomento+"}}\n"+text;
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'Stub sezione': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-stubsezione',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento2">\
<label for="Argomento2" rel="Argomento2"></label>\
<select name="Argomento2" id="wikieditor-toolbar-argomento2" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
var argomento2 = $j( '#wikieditor-toolbar-argomento2' ).val();
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
if (Argument2 != " ")
addTextAtCursor("{{S sezione|"+argomento+"|"+argomento2+"}}", "+Stub sezione ", "", 15+argomento.length+argomento2.length);
else
addTextAtCursor("{{S sezione|"+argomento+"}}", "+Stub sezione ", "", 14+argomento.length);
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'orfana': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-orfana',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
text="{{"+curTemplate+"|"+argomento+"|"+"mese={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}\n"+text;
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'immagineorfana': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-immagineorfana',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
<div class="wikieditor-toolbar-field-wrapper" id="div-libera">\
<input type="checkbox" id="wikieditor-toolbar-libera" checked />\
<label for="Libera?" rel="Libera?"></label>\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
boolean libera = $j( '#wikieditor-toolbar-libera' ).is( ':checked' );
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
if (libera==true)
text="{{Immagine orfana|libera|"+argomento+"}}\n"+text;
else
text="{{Immagine orfana|non libera|"+argomento+"|giorno={{CURRENTDAY}}|mese={{subst:CURRENTMONTHNAME}}|anno= {{subst:CURRENTYEAR}}}}\n"+text;
$textarea.val( text );
})
},
dialog: {
width: 500,
dialogClass: 'wikiEditor-toolbar-dialog',
buttons: {
'Ok': function( e ) {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
$j(this).data( 'Ficus' ).call( this );
$j(this).dialog( 'close' );
},
'Chiudi': function() {
$j(this).dialog( 'close' );
}
},
open: function() {
$j(this).data( 'offset', 0 );
$j( '#wikieditor-toolbar-argomento' ).focus();
if ( !( $j(this).data( 'onetimeonlystuff' ) ) ) {
$j(this).data( 'onetimeonlystuff', true );
// Execute the action associated with the first button
// when the user presses Enter
$j(this).closest( '.ui-dialog' ).keypress( function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
var button = $j(this).data( 'dialogaction' ) || $j(this).find( 'button:first' );
button.click();
e.preventDefault();
}
});
// Make tabbing to a button and pressing
// Enter do what people expect
$j(this).closest( '.ui-dialog' ).find( 'button' ).focus( function() {
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', this );
});
}
var dialog = $j(this).closest( '.ui-dialog' );
var that = this;
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox )
.bind( 'keypress.srdialog', function( e ) {
if ( ( e.keyCode || e.which ) == 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
} else if ( ( e.keyCode || e.which ) == 27 ) {
// Escape
$j(that).dialog( 'close' );
}
});
},
close: function() {
var context = $j(this).data( 'context' );
var textbox = typeof context.$iframe != 'undefined' ?
context.$iframe[0].contentWindow.document : context.$textarea;
$j( textbox ).unbind( 'keypress.srdialog' );
$j(this).closest( '.ui-dialog' ).data( 'dialogaction', false );
}
}
}
'controllare': {
titleMsg: 'Configurazione parametri',
id: 'wikieditor-toolbar-parametri-controllare',
html: '\
<fieldset>\
<div class="wikieditor-toolbar-field-wrapper" id="div-argomento">\
<label for="Argomento" rel="Argomento"></label>\
<select name="Argomento" id="wikieditor-toolbar-argomento" >\
<option value="AAA" selected="selected">AAA</option>\
<option value="BBB">BBB</option>\
<option value="CCC">CCC</option>\
</select>\
</div>\
<div class="wikieditor-toolbar-field-wrapper" id="div-motivazione">\
<label for="Motivazione" rel="Motivazione"></label>\
<input type="text" id="wikieditor-toolbar-motivazione" />\
</div>\
</fieldset>',
init: function() {
var u = mw.usability;
$j(this).find( '[rel]' ).each( function() {
$j(this).text( u.getMsg( $j(this).attr( 'rel' ) ) );
});
// Set tabindexes on form fields
$j.wikiEditor.modules.dialogs.fn.setTabindexes( $j(this).find( 'input' ).not( '[tabindex]' ) );
// TODO: Find a cleaner way to share this function
$j(this).data( 'Ficus', function() {
var argomento = $j( '#wikieditor-toolbar-argomento' ).val();
var motivo = $j( '#wikieditor-toolbar-motivazione' ).val();
var $textarea = $j(this).data( 'context' ).$textarea;
var text = $textarea.textSelection( 'getContents' );
text="{{C|"+motivo+"|"+argomento+"|"+"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}\n"+text;
$textarea.val( text );
})
|