MediaWiki:Gadget-FormeFlesseCommon.js

Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
/* jshint maxerr:10000 */
( function( mw, $ ) { console.log('Common v7');
	//Funzione per correggere la sillabazione
	function ConvertiSillabazione( IDPulsante, IDCampo ) {
		$( "" + IDPulsante + "" ).click( function( event ) {
			$( '' + IDCampo + '' )
			.val( $( '' + IDCampo + '' )
			.val().replace( /​/g, '' )
			.replace( /ʒ/g, 'z' )
			.replace( /(-|·|\|)/g, ' | ' )
			.replace( /\] o \[/g, '</br>\; ' )
			.replace( /(\[|\]|\/)/g, '' )
			.replace( /((\w) (\w))/g, '$2 - $3' ) );
		} );
	}

	$( function() {
			window.Bottoni = function Bottoni() {

			var buttonFFEUndo = new OO.ui.ButtonWidget( {
				label: mw.msg('btn-Prev'),
				target: '_blank',
				flags: ['destructive']
			}); 

		// APPENDO BOTTONE "Indietro"	
			$('#previus-page').first().append(' ')
			.append( buttonFFEUndo.$element );
        	
        // FUNZIONE BOTTONE Indietro	
        	buttonFFEUndo.$element.click(function () {
				mw.loader.load( '/w/index.php?title=MediaWiki:Gadget-FormeFlesseMultilingua.js&action=raw&ctype=text/javascript' );
			});
		
		
		// BOTTONE "CLEAR"
			var buttonFFEClear = new OO.ui.ButtonWidget( {
				label: mw.message('btn-Reset').escaped(),
				target: '_blank',
				flags: ['destructive']
			});    
			
		//BOTTONE "SCRIVI"
			var buttonFFESubmit = new OO.ui.ButtonWidget( {
				label: mw.message('btn-Submit').escaped(),
				target: '_blank',
				flags: ['progressive']
			});
		// APPENDO BOTTONE "SUBMIT"	
			$('#FFEbuttons').first().append(' <br>')
			.append( buttonFFESubmit.$element );
			
		// APPENDO BOTTONE "CLEAR"	
			$('#FFEbuttons').first().append(' ')
			.append( buttonFFEClear.$element );
        	
        // FUNZIONE BOTTONE CLEAR	
        	buttonFFEClear.$element.click(function () {
				$('input[type=text]').val('');
            	$('input').prop('checked', false);
		
			});
			
						
		// FUNZIONE BOTTONE SUBMIT
		buttonFFESubmit.$element.click(function(event) {
		 
		             //CONTROLLO COMPILAZIONE INFORMAZIONI PRELIMINARI

            if ($("input[name=Parte]").is(":checked") === false || $('#radice').val() === "") {

                mw.util.$content.prepend('<div id="AvvisoNoParte" title="' + mw.message('DB-InfoPre-Title').text() + '"><p><div style="text-align:center"></br><b><div style="text-align:center"><img src="http://upload.wikimedia.org/wikipedia/commons/5/55/Gtk-stop.svg" alt="operazione annullata" width="20" height="20" />' + mw.message('DB-Subtitle').text() + '</div></b>' + mw.message('DB-InfoPre-Text').text() + ' ' +
                    '</div>');

                mw.loader.using(['jquery.ui'], function() { // inizializzo la finestra di dialogo
                    $("#AvvisoNoParte").dialog({
                        width: 500,
                        modal: true,
                        buttons: [{
                            text: mw.message('DB-Edit').text(),
                            click: function() {
                                $(this).dialog("close");
                            }
                        }, ]
                    });
                });

            } else {

                // CONTROLLO OMONIMIE
                if (($("#principale").val()) == ($("#desinenzaMP").val()) || ($("#principale").val()) == ($("#desinenzaFS").val()) || ($("#principale").val()) == ($("#desinenzaFP").val()) || ($("#principale").val()) == ($("#desinenzaFSP").val())
                    /* 
	FORME ALTERNATIVE
*/
                    || ($("#principale").val()) == ($("#desinenzaMP2").val()) || ($("#principale").val()) == ($("#desinenzaFS2").val()) || ($("#principale").val()) == ($("#desinenzaFP2").val()) || ($("#principale").val()) == ($("#desinenzaFSP2").val())
                    /* 
	SOLO PLURALE
*/
                    || ($("#principale").val()) == ($("#DesinenzaPlurale").val())) {

                    //CREAZIONE DIALOG
                    mw.util.$content.prepend('<div id="AvvisoUguali" title="' + mw.message('DB-Homon-Title').text() + '"><p><div style="text-align:center"></br><b><div style="text-align:center"><img src="http://upload.wikimedia.org/wikipedia/commons/5/55/Gtk-stop.svg" alt="operazione annullata" width="20" height="20" />' + mw.message('DB-Subtitle').text() + '</div></b>' + mw.message('DB-Homon-Text').text() + ' ' +
                        '</div>');



                    mw.loader.using(['jquery.ui'], function() { // inizializzo la finestra di dialogo
                        $("#AvvisoUguali").dialog({
                            width: 500,
                            modal: true,
                            buttons: [{
                                    text: mw.message('DB-Edit').text(),
                                    click: function() {
                                        $(this).dialog("close");
                                    }
                                },
                                {
                                    text: mw.message('DB-Continue').text(),
                                    click: function() {
                                        SCRIVI();
                                        $(this).dialog("close");

                                    }
                                }
                            ]
                        });
                    });

				} else {
					SCRIVI();
				}
			}



		} );
			
	};
	
	
		window.FFCommonSettings = function FFCommonSettings() {
			$( 'h4#sillabazione' )
				.append( ' <input id="wpClearButton"type="button" value="' + mw.message( 'FF-HyphCopy' ).escaped() + '">' )
				.on( 'click', function() {

				//FUNZIONE PER COPIARE LE DESINENZE

				if ( $( 'input#CBmp' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillMP]' ).attr( 'disabled', false );
					$( 'input#CBSillmp' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillMP]' ).val( $( "#desinenzaMP" ).val() );
				}


				if ( $( 'input#CBfs' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFS]' ).attr( 'disabled', false );
					$( 'input#CBSillfs' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFS]' ).val( $( "#desinenzaFS" ).val() );
				}


				if ( $( 'input#CBfp' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFP]' ).attr( 'disabled', false );
					$( 'input#CBSillfp' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFP]' ).val( $( "#desinenzaFP" ).val() );
				}

				if ( $( 'input#CBfsp' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFSP]' ).attr( 'disabled', false );
					$( 'input#CBSillfsp' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFSP]' ).val( $( "#desinenzaFSP" ).val() );
				}

				//FORME ALTERNATIVE

				if ( $( 'input#CBmp2' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillMP2]' ).attr( 'disabled', false );
					$( 'input#CBSillmp2' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillMP2]' ).val( $( "#desinenzaMP2" ).val() );
				}

				if ( $( 'input#CBfs2' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFS2]' ).attr( 'disabled', false );
					$( 'input#CBSillfs2' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFS2]' ).val( $( "#desinenzaFS2" ).val() );
				}


				if ( $( 'input#CBfp2' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFP2]' ).attr( 'disabled', false );
					$( 'input#CBSillfp2' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFP2]' ).val( $( "#desinenzaFP2" ).val() );
				}

				if ( $( 'input#CBfsp2' ).is( ":checked" ) ) {
					$( 'input[id=desinenzaSillFSP2]' ).attr( 'disabled', false );
					$( 'input#CBSillfsp2' ).prop( 'checked', true );
					$( 'input[id=desinenzaSillFSP2]' ).val( $( "#desinenzaFSP2" ).val() );
				}
			} );

			//GESTIONE DEI CHECKBOX (PARTE RIFERITA ALLE FORME FLESSE)
			$( 'input#CBmp' ).change( function() { // Controllo CB e testo maschile plurale

				if ( this.checked ) {
					$( 'input[id=desinenzaMP]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=desinenzaMP]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfs' ).change( function() { // Controllo CB e testo femminile singolare

				if ( this.checked ) {
					$( 'input[id=desinenzaFS]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', true );

					$( 'input[id=CBmsfs]' ).prop( 'checked', false );
					$( 'input[id=desinenzaMSFS]' ).attr( 'disabled', true );
				} else {
					$( 'input[id=desinenzaFS]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfp' ).change( function() { // Controllo CB e testo femminile plurale

				if ( this.checked ) {
					$( 'input[id=desinenzaFP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', true );

					$( 'input[id=CBmsfp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaMSFP]' ).attr( 'disabled', true );
				} else {
					$( 'input[id=desinenzaFP]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfsp' ).change( function() { // Controllo CB e testo femminile singolare e plurale

				if ( this.checked ) {
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBmsfp]' ).prop( 'checked', false );

					$( 'input[id=CBfp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFP]' ).attr( 'disabled', true );

					$( 'input[id=CBfs]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFS]' ).attr( 'disabled', true );

					$( 'input[id=CBmsfs]' ).prop( 'checked', false );
				} else {
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBmsfp' ).change( function() { // Controllo CB e testo maschile singolare e femminile plurale

				if ( this.checked ) {
					$( 'input[id=CBfp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFP]' ).attr( 'disabled', true );

					$( 'input[id=CBfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', true );

					$( 'input[id=CBmsfs]' ).prop( 'checked', false );
					$( 'input[id=desinenzaMSFS]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBmsfs' ).change( function() { // Controllo CB e testo maschile e femminile singolare

				if ( this.checked ) {
					$( 'input[id=CBfs]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFS]' ).attr( 'disabled', true );

					$( 'input[id=CBfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFSP]' ).attr( 'disabled', true );

					$( 'input[id=CBmsfp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaMSFP]' ).attr( 'disabled', true );
				}
				return false;
			} );



			// FORME ALTERNATIVE

			$( 'input#CBmp2' ).change( function() { //CONTROLLO E GESTIONE CB MASCHILE PLURALE

				if ( this.checked ) {
					$( 'input[id=desinenzaMP2]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=desinenzaMP2]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfs2' ).change( function() { //CONTROLLO E GESTIONE CB FEMMINILE SINGOLARE

				if ( this.checked ) {
					$( 'input[id=desinenzaFS2]' ).attr( 'disabled', false ).focus();


					$( 'input[id=CBfsp2]' ).prop( 'checked', false ); // disattivo la forma "femminile singolare e plurale"
					$( 'input[id=desinenzaFSP2]' ).attr( 'disabled', true );
				} else {
					$( 'input[id=desinenzaFS2]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfp2' ).change( function() { //CONTROLLO E GESTIONE CB FEMMINILE PLURALE

				if ( this.checked ) {
					$( 'input[id=desinenzaFP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBfsp2]' ).prop( 'checked', false ); // disattivo la forma "femminile singolare e plurale"
					$( 'input[id=desinenzaFSP2]' ).attr( 'disabled', true );
				} else {
					$( 'input[id=desinenzaFP2]' ).attr( 'disabled', true );
				}
				return false;
			} );

			$( 'input#CBfsp2' ).change( function() { //CONTROLLO E GESTIONE CB FEMMINILE SINGOLARE E PLURALE

				if ( this.checked ) {
					$( 'input[id=desinenzaFSP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBfp2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFP2]' ).attr( 'disabled', true ); // disattivo la forma "femminile plurale"

					$( 'input[id=CBfs2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaFS2]' ).attr( 'disabled', true ); // disattivo la forma "femminile singolare"
				} else {
					$( 'input[id=desinenzaFSP2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			// GESTIONE CHECKBOX DELLE SILLABAZIONI

			$( 'input#CBSillmp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillMP]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=desinenzaSillMP]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfs' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFS]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFSP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=desinenzaSillFS]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfsp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFSP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=desinenzaSillFP]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfsp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFSP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfp]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile plurale"

					$( 'input[id=CBSillfs]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFS]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare"
				} else {
					$( 'input[id=desinenzaSillFSP]' ).attr( 'disabled', true );
				}
				return false;
			} );

			//FORME ALTERNATIVE
			$( 'input#CBSillmp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillMP2]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=desinenzaSillMP2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfs2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFS2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfsp2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFSP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=desinenzaSillFS2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfsp2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFSP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=desinenzaSillFP2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBSillfsp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=desinenzaSillFSP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBSillfp2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile plurale"

					$( 'input[id=CBSillfs2]' ).prop( 'checked', false );
					$( 'input[id=desinenzaSillFS2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare"
				} else {
					$( 'input[id=desinenzaSillFSP2]' ).attr( 'disabled', true );
				}
				return false;
			} );

			// corregge la sintassi della sillabazione nelle forme flesse
			ConvertiSillabazione( 'input#ConvertiSill', '#radiceSill' );

			// corregge la sintassi della sillabazione nel plurale
			ConvertiSillabazione( 'input#ConvertiSillPlurale', '#radicePluraleSill' );
			
			
			// GESTIONE CHECKBOX DELLE PRONUNCE 
				
			$( 'input#CBPronmp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronMP]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=VpronMP]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfs' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFS]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfsp]' ).prop( 'checked', false );
					$( 'input[id=VpronFSP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=VpronFS]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfsp]' ).prop( 'checked', false );
					$( 'input[id=VpronFSP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=VpronFP]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfsp' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFSP]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfp]' ).prop( 'checked', false );
					$( 'input[id=VpronFP]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile plurale"

					$( 'input[id=CBPronfs]' ).prop( 'checked', false );
					$( 'input[id=VpronFS]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare"
				} else {
					$( 'input[id=VpronFSP]' ).attr( 'disabled', true );
				}
				return false;
			} );



			//FORME ALTERNATIVE
			$( 'input#CBPronmp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronMP2]' ).attr( 'disabled', false ).focus();
				} else {
					$( 'input[id=VpronMP2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfs2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFS2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfsp2]' ).prop( 'checked', false );
					$( 'input[id=VpronFSP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=VpronFS2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfsp2]' ).prop( 'checked', false );
					$( 'input[id=VpronFSP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare e plurale"
				} else {
					$( 'input[id=VpronFP2]' ).attr( 'disabled', true );
				}
				return false;
			} );


			$( 'input#CBPronfsp2' ).change( function() {

				if ( this.checked ) {
					$( 'input[id=VpronFSP2]' ).attr( 'disabled', false ).focus();

					$( 'input[id=CBPronfp2]' ).prop( 'checked', false );
					$( 'input[id=VpronFP2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile plurale"

					$( 'input[id=CBPronfs2]' ).prop( 'checked', false );
					$( 'input[id=VpronFS2]' ).attr( 'disabled', true ); // disattivo la sillabazione "femminile singolare"
				} else {
					$( 'input[id=VpronFSP2]' ).attr( 'disabled', true );
				}
				return false;
			} );
		};

		window.FFCommonValues = {
			init: function() {
				this.success = '<li><span style="color:#00A050; font-size:20px">√</span>';
			
				// setto tutte le variabili in modo che recuperino i valori dei campi
				this.parte = $( 'input[name=Parte]:checked' ).val();
				this.radice = $( "#radice" ).val();
				this.principale = $( "#principale" ).val();

				//desinenze forme flesse  
				this.desinenzaMP = $( "#desinenzaMP" ).val();
				this.desinenzaFS = $( "#desinenzaFS" ).val();
				this.desinenzaFP = $( "#desinenzaFP" ).val();
				this.desinenzaFSP = $( "#desinenzaFSP" ).val();

				//desinenze forme flesse  ALTERNATIVE
				this.desinenzaMP2 = $( "#desinenzaMP2" ).val();
				this.desinenzaFS2 = $( "#desinenzaFS2" ).val();
				this.desinenzaFP2 = $( "#desinenzaFP2" ).val();
				this.desinenzaFSP2 = $( "#desinenzaFSP2" ).val();

				// Sillabazione forme flesse
				this.desinenzaSillMP = $( "#desinenzaSillMP" ).val();
				this.desinenzaSillFS = $( "#desinenzaSillFS" ).val();
				this.desinenzaSillFP = $( "#desinenzaSillFP" ).val();
				this.desinenzaSillFSP = $( "#desinenzaSillFSP" ).val();

				// Sillabazione forme flesse ALTERNATIVE
				this.desinenzaSillMP2 = $( "#desinenzaSillMP2" ).val();
				this.desinenzaSillFS2 = $( "#desinenzaSillFS2" ).val();
				this.desinenzaSillFP2 = $( "#desinenzaSillFP2" ).val();
				this.desinenzaSillFSP2 = $( "#desinenzaSillFSP2" ).val();
				
				// Pronuncia forme flesse
				this.radiceSill = $( "#radiceSill" ).val();
				this.VpronMP = $( "#VpronMP" ).val();
				this.VpronFS = $( "#VpronFS" ).val();
				this.VpronFP = $( "#VpronFP" ).val();
				this.VpronFSP = $( "#VpronFSP" ).val();

				// Pronuncia forme flesse ALTERNATIVE
				this.VpronMP2 = $( "#VpronMP2" ).val();
				this.VpronFS2 = $( "#VpronFS2" ).val();
				this.VpronFP2 = $( "#VpronFP2" ).val();
				this.VpronFSP2 = $( "#VpronFSP2" ).val();
				
				// Variabili per i soli plurali
				this.PluraleGenere = $( 'input[name=CBGenere]:checked' ).val();
				this.DesinenzaPlurale = $( "#DesinenzaPlurale" ).val();
				this.radicePluraleSill = $( "#radicePluraleSill" ).val();
				this.DesinenzaSillPlurale = $( "#DesinenzaSillPlurale" ).val();
				this.VpronPlurale = $( "#VpronPlurale" ).val();

				return this;
			}
		};
	} );
}( mediaWiki, jQuery ) );