MediaWiki:Gadget-FormeFlesseMultilingua.js/es.js

Da Wikizionario, il dizionario a contenuto aperto.

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.
// PAGINA PER AGGETTIVI E SOSTANTIVI IN SPAGNOLO

	document.title = '' + mw.msg('Title') +' - ' + mw.config.get( 'wgSiteName' );
	
	$( 'h1' ).text( '' + mw.msg('Title') +' - '+ mw.msg('Title-Es') + '' );
	
	$('#mw-content-text').replaceWith(''+
		'<div id="mw-content-text" lang="it" dir="ltr" class="mw-content-ltr">'+
		'<input name="title" type="hidden" value="Speciale:FormeFlesse" />' +
        '<fieldset><legend>' + mw.message('Legend').text() + '</legend>' +
        '' + mw.message('Intro').text() + '<div id="previus-page"></div>' +
        '<h3 id=Esempio style="background:#eedae3; padding-left: 10px;">' + mw.message('InfoPre-Title').text() + '</h3> ' +
        '<div class="toccolours">' +
        '<table style="width:60%">' +
        '<td> ' + mw.message('InfoPre-Radice').text() + ': <input type="text" id="radice" name="radice"></td>' +
        '<td> ' + mw.message('InfoPre-Desinenza').text() + ': <input type="text" id="principale" name="principale"></td>' +
        '<table>' +
        '<tbody><tr>' +
        '<td> <input type="radio" name="Parte" value="agg" id="agg" style=""> ' + mw.message('InfoPre-Agg').text() + ' </td>' +
        '<td style="font-size: 250%;" rowspan="2">} </td>' +
        '<td rowspan="2"> <input type="radio" name="Parte" value="agg" id="AeS" style=""> ' + mw.message('InfoPre-Agg-Sost').text() + ' </td></tr>' +
        '<tr> <td> <input type="radio" name="Parte" value="sost" id="sost" style=""> ' + mw.message('InfoPre-Sost').text() + ' </td></tr>' +
        '</tbody></table>' +
        '</tr>' +
        '</table></div>' +
        '<p></p>' +
        '<h3 style="background:#e0e8ff; padding-left: 10px;">' + mw.message('FF-Title').text() + '</h3>' +
        '<div class="toccolours">' +
        '<p></p>' +
        '<table style="width:20%">' +
        '<tr>' +
        '<td><form class="ForFlesse"><label>' + mw.message('FF-Omon-MSMP').text() + '<input type="checkbox" class="switch" id="omonimoMS" name="omonimoMS"><div class="switched"></div></label></form></td>'+
        '<tr>' +
        '</table>'+
        '<table style="width:100%">' +
        '<tr>' +
        '<td><li> <img src="https://upload.wikimedia.org/wikipedia/commons/7/7b/Blue_man_silhouette_symbol.png" alt="Sagoma maschile" width="10" /><img src="https://upload.wikimedia.org/wikipedia/commons/7/7b/Blue_man_silhouette_symbol.png" alt="Sagoma maschile" width="10" /> <input name="CBmp" type="checkbox" value="" id="CBmp" style="">' + mw.message('FF-MP').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaMP" name="desinenzaMP" disabled></p></li></td>' +
        '</td>' +
        '<td><li> <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /> <input name="CBfs" type="checkbox" value="" id="CBfs" style="">' + mw.message('FF-FS').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFS" name="desinenzaFS" disabled></p></li></td>' +
        '<td><li> <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><input name="CBfp" type="checkbox" value="" id="CBfp" style="">' + mw.message('FF-FP').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFP" name="desinenzaFP" disabled></p></li></td>' +
        '<td><li> <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /> <img src="https://upload.wikimedia.org/wikipedia/commons/b/b3/Minus_font_awesome.svg" alt="-" width="10" />  <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><input name="CBfsp" type="checkbox" value="" id="CBfsp" style="">' + mw.message('FF-FSP').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFSP" name="desinenzaFSP" disabled></p></li></td>' +
        '<td><li> <img src="https://upload.wikimedia.org/wikipedia/commons/7/7b/Blue_man_silhouette_symbol.png" alt="Sagoma maschile" width="10" /> <img src="https://upload.wikimedia.org/wikipedia/commons/b/b3/Minus_font_awesome.svg" alt="-" width="10" /> <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /> <input name="CBmsfp" type="checkbox" value="" id="CBmsfp" style="">' + mw.message('FF-MSFP').text() + '  <p>' +
        '<li> <img src="https://upload.wikimedia.org/wikipedia/commons/7/7b/Blue_man_silhouette_symbol.png" alt="Sagoma maschile" width="10" /> <img src="https://upload.wikimedia.org/wikipedia/commons/b/b3/Minus_font_awesome.svg" alt="-" width="10" /> <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Pink_woman_silhouette.png" alt="Sagoma femminile" width="10" /><img src="https://upload.wikimedia.org/wikipedia/commons/e/ed/Pix.gif" alt="Sagoma femminile" width="10" /> <input name="CBmsfs" type="checkbox" value="" id="CBmsfs" style="">' + mw.message('FF-MSFS').text() + ' </li></td>' +
        '</tr>' +
        '<tr>' +
        '<td><h5 id="formeAlternative">' + mw.message('FF-Alternative').text() + '</h5>' +
        '<p></p></td>' +
        '</tr>' +
        '<tr>' +
        '<td><li> <input name="CBmp2" type="checkbox" value="" id="CBmp2" style="">' + mw.message('FF-MP2').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaMP2" name="desinenzaMP2" disabled></p></li></td>' +
        '</td>' +
        '<td><li> <input name="CBfs2" type="checkbox" value="" id="CBfs2" style="">' + mw.message('FF-FS2').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFS2" name="desinenzaFS2" disabled></p></li></td>' +
        '<td><li> <input name="CBfp2" type="checkbox" value="" id="CBfp2" style="">' + mw.message('FF-FP2').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFP2" name="desinenzaFP2" disabled></p></li></td>' +
        '<td><li> <input name="CBfsp2" type="checkbox" value="" id="CBfsp2" style="">' + mw.message('FF-FSP2').text() + ' <p> ' + mw.message('FF-Desinenza').text() + ': <input type="text" id="desinenzaFSP2" name="desinenzaFSP2" disabled></p></li></td>' +
        '</tr>' +
        '<tr>' +
        
    // Sillabazione
    	'<td><h4 id="sillabazione">' + mw.msg('FF-Hyph') + '</h4>' +
		'<p></p></td>' +
		'</tr>' +
		'<tr>' +
		'<td>' + mw.msg('FF-Sill-Radice') + ': <input type="text" id="radiceSill" name="radiceSill"> <input id="ConvertiSill" type="button" value="' + mw.message( 'FF-HyphConvert' ).escaped() + '"></td>' +
		'</tr>' +
		'<tr>' +
		'<td> <li> <input name="CBSillmp" type="checkbox" value="" id="CBSillmp" style="">' + mw.msg('FF-MP') + '<p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillMP" name="desinenzaSillMP" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfs" type="checkbox" value="" id="CBSillfs" style="">' + mw.msg('FF-FS') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFS" name="desinenzaSillFS" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfp" type="checkbox" value="" id="CBSillfp" style="">' + mw.msg('FF-FP') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFP" name="desinenzaSillFP" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfsp" type="checkbox" value="" id="CBSillfsp" style="">' + mw.msg('FF-FSP') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFSP" name="desinenzaSillFSP" disabled></p></li></td>' +
		'</tr>' +
        
    // Sillabazione alternative
		'<td><h5 id="sillabazioneAlternative">' + mw.msg('FF-Alternative') + '</h5>' +
		'<p></p></td>' +
		'</tr>' +
		'<tr>' +
		'<td> <li> <input name="CBSillmp2" type="checkbox" value="" id="CBSillmp2" style="">' + mw.msg('FF-MP2') + '<p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillMP2" name="desinenzaSillMP2" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfs2" type="checkbox" value="" id="CBSillfs2" style="">' + mw.msg('FF-FS2') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFS2" name="desinenzaSillFS2" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfp2" type="checkbox" value="" id="CBSillfp2" style="">' + mw.msg('FF-FP2') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFP2" name="desinenzaSillFP2" disabled></p></li></td>' +
		'<td><li> <input name="CBSillfsp2" type="checkbox" value="" id="CBSillfsp2" style="">' + mw.msg('FF-FSP2') + ' <p> ' + mw.msg('FF-Desinenza') + ': <input type="text" id="desinenzaSillFSP2" name="desinenzaSillFSP2" disabled></p></li></td>' +
		'</tr>' +
        
    //Pronuncia
        '<td><h4 id="pronuncia">' + mw.message('FF-Pron').text() + '</h4>' +
        '<p></p></td>' +
        '</tr>' +
        '<tr>' +
        '<td> <li> <input name="CBPronmp" type="checkbox" value="" id="CBPronmp" style="">' + mw.message('FF-MP').text() + '<p> <input type="text" id="VpronMP" name="VpronMP" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfs" type="checkbox" value="" id="CBPronfs" style="">' + mw.message('FF-FS').text() + ' <p> <input type="text" id="VpronFS" name="VpronFS" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfp" type="checkbox" value="" id="CBPronfp" style="">' + mw.message('FF-FP').text() + ' <p> <input type="text" id="VpronFP" name="VpronFP" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfsp" type="checkbox" value="" id="CBPronfsp" style="">' + mw.message('FF-FSP').text() + ' <p> <input type="text" id="VpronFSP" name="VpronFSP" disabled></p></li></td>' +
        '</tr>' +
        
    //Pronuncia: Alternativa
        '<td><h5 id="PronunciaAlternative">' + mw.message('FF-Alternative').text() + '</h5>' +
        '<p></p></td>' +
        '</tr>' +
        '<tr>' +
        '<td> <li> <input name="CBPronmp2" type="checkbox" value="" id="CBPronmp2" style="">' + mw.message('FF-MP2').text() + '<p> <input type="text" id="VpronMP2" name="VpronMP2" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfs2" type="checkbox" value="" id="CBPronfs2" style="">' + mw.message('FF-FS2').text() + ' <p> <input type="text" id="VpronFS2" name="VpronFS2" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfp2" type="checkbox" value="" id="CBPronfp2" style="">' + mw.message('FF-FP2').text() + ' <p> <input type="text" id="VpronFP2" name="VpronFP2" disabled></p></li></td>' +
        '<td><li> <input name="CBPronfsp2" type="checkbox" value="" id="CBPronfsp2" style="">' + mw.message('FF-FSP2').text() + ' <p> <input type="text" id="VpronFSP2" name="VpronFSP2" disabled></p></li></td>' +
        '</tr>' +

        '</table></div>' +
        '<p></p>' +
        '<h3 style="background:#daeedc; padding-left: 10px;">' + mw.message('PL-Title').text() + ':</h3>' +
        '<div class="toccolours">' +
        '<p></p>' +
        '<table style="width:100%">' +
        mw.message('FF-Desinenza').text() + ': <input type="text" id="DesinenzaPlurale" name="DesinenzaPlurale"><p>' +
        '<li> <input name="CBGenere" type="radio" value="m" id="CBGenere" style="">' + mw.message('PL-M').text() + '</li>' +
        '<li> <input name="CBGenere" type="radio" value="f" id="CBGenere" style="">' + mw.message('PL-F').text() + '</li>' +
        '<li> <input name="CBGenere" type="radio" value="m\'\' e \'\'f" id="CBGenere" style="">' + mw.message('PL-MF').text() + '</li>' +
        
        '<h4 id="SillabazionePlurale">' + mw.message('FF-Hyph').text() + '</h4>' +
        '<p></p>' +
        mw.msg('FF-Sill-Radice') + ' : <input type="text" id="radicePluraleSill" name="radicePluraleSill"> <input id="ConvertiSillPlurale" type="button" value="' + mw.message( 'PL-HyphConvert' ).escaped() + '"><p>' +
        mw.message('FF-Desinenza').text() + ': <input type="text" id="DesinenzaSillPlurale" name="DesinenzaSillPlurale">' +
        
        '<h4 id="PronunciaPlurale">' + mw.message('FF-Pron').text() + '</h4>' +
        '<p></p>' +
        '<input type="text" id="VpronPlurale" name="VpronPlurale">' +
        '</table></div>' +
        '<div id="FFEbuttons"></div>' +
        '</fieldset><div id="results" style="visibility: hidden"></div>' +
        ' <table class="wikitable"> ' +
        ' <tbody><tr> ' +
        ' <th></th> ' +
        ' <th>' + mw.message('FF-MP').text() + '</th> ' +
        ' <th>' + mw.message('FF-FS').text() + '</th> ' +
        ' <th>' + mw.message('FF-FP').text() + '</th> ' +
        ' <th>' + mw.message('FF-FSP').text() + '</th> ' +
        ' </tr> ' +
        ' <tr style="text-align: center;"> ' +
        ' <th>' + mw.message('Table-RegForm').text() + '</th> ' +
        ' <td> <div id="MPSuccess"></div> </td> ' +
        ' <td> <div id="FSSuccess"></div> </td> ' +
        ' <td> <div id="FPSuccess"></div> </td> ' +
        ' <td> <div id="FSPSuccess"></div> </td> ' +
        ' </tr> ' +
        ' <tr style="text-align: center;"> ' +
        ' <th>' + mw.message('Table-AltForm').text() + '</th> ' +
        ' <td> <div id="MP2Success"></div> </td> ' +
        ' <td> <div id="FS2Success"></div> </td> ' +
        ' <td> <div id="FP2Success"></div> </td> ' +
        ' <td> <div id="FSP2Success"></div> </td> ' +
        ' </tr> ' +
        ' <tr> ' +
        ' <th colspan="7">' + mw.message('Table-PL').text() + '</th> ' +
        ' </tr> ' +
        ' <tr style="text-align: center;"> ' +
        ' <td colspan="7"> <div id="PluraleSuccess"></div> </td> ' +
        ' </tr> ' +
        ' </tbody></table> </form> ' +
        '</div>').ready(function() {
        	
        //CARICO LE IMPOSTAZIONI COMUNI
		$(FFCommonSettings);
        $(Bottoni);

	} );


	function SCRIVI() {
		
		//FUNZIONE PER SCRIVERE NELLE PAGINE
	var writeInPage = function( title, content, summary, success ) {
		var param = {
			action: 'edit',
			title: title,
			summary: summary,
			text: content,
			tags: "FFE(BETA)"
		};

		new mw.Api().postWithEditToken( param )
			.done( success )
			.fail( function( e ) {
				mw.log.error( 'Impossibile modificare la pagina. Errore: ' + e );
			} );
	};
		//Recupero variabili comuni
		var common = window.FFCommonValues.init();
		
		//Variabile "spunta verde" in caso di esito positivo
		var success = common.success;
		
		var str = $( "fieldset" ).serialize();
		$( "#results" ).text( str );
			
			
				var MP = (( $( 'input#omonimoMS' ).is( ':checked' ) ) ? 
				''+ common.radice + common.principale +'' : ''+ common.radice + common.desinenzaMP +'');
				
				var MP2 = (( $( 'input#CBmp2' ).is( ':checked' ) ) === true ? '\|mp2=' + common.radice + common.desinenzaMP2 + '' : '');
			
				var FS2 = (( $( 'input#CBfs2' ).is( ':checked' ) ) === true ? '\|f2=' + common.radice + common.desinenzaFS2 + '' : '');
			
				var FP2 = (( $( 'input#CBfp2' ).is( ':checked' ) ) === true ? '\|fp2=' + common.radice + common.desinenzaFP2 + '' : '');
				
				var realDesinenzaFS = (( $( 'input#CBfsp' ).is( ':checked' ) ) === true ?  common.desinenzaFSP : common.desinenzaFS );
				var realDesinenzaFP = (( $( 'input#CBfsp' ).is( ':checked' ) ) === true ?  common.desinenzaFSP : common.desinenzaFP );

				var FTabs = (( $( 'input#CBfsp' ).is( ':checked' ) ) ? common.radice + common.desinenzaFSP + '\|' + common.radice + common.desinenzaFSP : common.radice + realDesinenzaFS + '\|' + common.radice + common.desinenzaFP );

				var FSP2 = (( $( 'input#CBfsp2' ).is( ':checked' ) ) ? '\|f2=' + common.radice + common.desinenzaFSP2 + '\|fp2=' + common.radice + common.desinenzaFSP2 + '' : '' );
			
				var MSFP = (( $( 'input#CBmsfp' ).is( ':checked' ) ) ? '' + common.principale + '' : '' );
			
				var MSFS = (( $( 'input#CBmsfp' ).is( ':checked' ) ) ? '' + common.principale + '' : '' );
				
					
		// CREAZIONE MASCHILE PLURALE
		if ( $( 'input#CBmp' ).is( ':checked' )  && $( 'input#omonimoMS' ).is( ':checked' ) === false  ) {

				var AeSTXTMP = (( $( 'input#AeS' ).is( ':checked' ) ) ?
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'m pl\'\' \n' +
					'\n' +
					'# plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');

				var SillMP = (( $( 'input#CBSillmp' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillMP+'\n\n' : '');
					
				var PronMP = (( $( 'input#CBPronmp' ).is( ':checked' ) && $('#VpronMP').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronMP+'\}\}\n\n' : '');

			var TestoMP = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'m pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP + '\|' + common.radice + realDesinenzaFS + MSFS + '\|' + common.radice + common.desinenzaFP + MP2 + FS2 + FP2 + FSP2 + MSFP + '}} \n' +
				'\n' +
				'# plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTMP + '' +
				''+ SillMP +'' +
				'' + PronMP + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + MP + "",
				"" + TestoMP + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-MP' ).escaped() + "",
				function() {
					$( '#MPSuccess' ).html( success + ' <a href="/wiki/' + MP + '" id="PageCreated">' + MP+ '</a>' );
				}
			);
		}

		// CREAZIONE MASCHILE PLURALE (FORMA ALTERNATIVA)
		if ( $( 'input#CBmp2' ).is( ':checked' ) ) {
			
			var anotherDesinenzaFS = (( $( 'input#CBfsp' ).is( ':checked' ) ) === true ?  common.desinenzaFSP : common.desinenzaFS );
			var anotherDesinenzaFP = (( $( 'input#CBfsp' ).is( ':checked' ) ) === true ?  common.desinenzaFSP : common.desinenzaFP );


			var AeSTXTMP2 = (( $( 'input#AeS' ).is( ':checked' ) ) ?
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'m pl\'\' \n' +
					'\n' +
					'# plurale alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');

			var SillMP2 = (( $( 'input#CBSillmp2' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillMP2+'\n\n' : '');
					
			var PronMP2 = (( $( 'input#CBPronmp2' ).is( ':checked' ) && $('#VpronMP2').val() !== '' ) ?
				'\{\{-pron-\}\}\n' +
				'\{\{IPA|'+common.VpronMP2+'\}\}\n\n' : '');

			var TestoMP2 = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'m pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP + '\|' + common.radice + anotherDesinenzaFS + MSFS + '\|' + common.radice + common.desinenzaFP + MSFP + '\|mp2=' + common.radice + common.desinenzaMP2 + FS2 + FP2 + FSP2 + '}}\n' +
				'\n' +
				'# plurale alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTMP2 + '' +
				'' + SillMP2 + '' +
				'' + PronMP2 + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + common.radice + common.desinenzaMP2 + "",
				"" + TestoMP2 + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-MP2' ).escaped() + "",
				function() {
					$( '#MP2Success' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaMP2 + '" id="PageCreated">' + common.radice + common.desinenzaMP2 + '</a>' );
				}
			);
		}


		// CREAZIONE FEMMINILE SINGOLARE
		if ( $( 'input#CBfs' ).is( ':checked' ) ) {
		
				var AeSTXTFS = (( $( 'input#AeS' ).is( ':checked' ) ) ?
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'f sing\'\' \n' +
					'\n' +
					'# femminile di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');
					
				var SillFS = (( $( 'input#CBSillfs' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFS+'\n\n' : '');
					
				var PronFS = (( $( 'input#CBPronfs' ).is( ':checked' ) && $('#VpronFS').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFS+'\}\}\n\n' : '');
					
			var TestoFS = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f sing \'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFS + '\|' + common.radice + common.desinenzaFP + MP2 + FS2 + FP2 + FSP2 + MSFP + '}}\n' +
				'\n' +
				'# femminile di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFS + '' +
				'' + SillFS + '' +
				'' + PronFS + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';
				
			writeInPage(
				"" + common.radice + common.desinenzaFS + "",
				"" + TestoFS + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FS' ).escaped() + "",
				function() {
					$( '#FSSuccess' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFS + '" id="PageCreated">' + common.radice + common.desinenzaFS + '</a>' );
				}
			);
		}

		// CREAZIONE FEMMINILE SINGOLARE (FORMA ALTERNATIVA)
		if ( $( 'input#CBfs2' ).is( ':checked' ) ) {
			
				var AeSTXTFS2 = (( $( 'input#AeS' ).is( ':checked' ) ) ? 
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'f sing\'\' \n' +
					'\n' +
					'# femminile alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');
					
				var SillFS2 = (( $( 'input#CBSillfs2' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFS2+'\n\n' : '');
					
				var PronFS2 = (( $( 'input#CBPronfs2' ).is( ':checked' ) && $('#VpronFS2').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFS2+'\}\}\n\n' : '');

			var TestoFS2 = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f sing \'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFS + '\|' + common.radice + common.desinenzaFP + '\|f2=' + common.radice + common.desinenzaFS2 + MP2 + FP2 + FSP2 + MSFP + '}}\n' +
				'\n' +
				'# femminile alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFS2 + '' +
				'' + SillFS2 + '' +
				'' + PronFS2 + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';
				
			writeInPage(
				"" + common.radice + common.desinenzaFS2 + "",
				"" + TestoFS2 + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FS2' ).escaped() + "",
				function() {
					$( '#FS2Success' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFS2 + '" id="PageCreated">' + common.radice + common.desinenzaFS2 + '</a>' );
				}
			);
		}


		// CREAZIONE FEMMINILE PLURALE
		if ( $( 'input#CBfp' ).is( ':checked' ) ) {

				var AeSTXTFP = (( $( 'input#AeS' ).is( ':checked' ) ) ?
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'f pl\'\' \n' +
					'\n' +
					'# femminile plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');
					
				var SillFP = (( $( 'input#CBSillfp' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFP+'\n\n' : '');
					
				var PronFP = (( $( 'input#CBPronfp' ).is( ':checked' ) && $('#VpronFP').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFP+'\}\}\n\n' : '');

			var TestoFP = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFS + MSFS + '\|' + common.radice + common.desinenzaFP + MP2 + FS2 + FP2 + FSP2 + '}}\n' +
				'\n' +
				'# femminile plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFP + '' +
				'' + SillFP + '' +
				'' + PronFP + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + common.radice + common.desinenzaFP + "",
				"" + TestoFP + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FP' ).escaped() + "",
				function() {
					$( '#FPSuccess' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFP + '" id="PageCreated">' + common.radice + common.desinenzaFP + '</a>' );
				}
			);
		}


		// CREAZIONE FEMMINILE PLURALE  (FORMA ALTERNATIVA)
		if ( $( 'input#CBfp2' ).is( ':checked' ) ) {

				var AeSTXTFP2 =(( $( 'input#AeS' ).is( ':checked' ) ) ?
					'\{\{-sost form-\|es\}\}\n' +
					'\{\{Pn\}\} \'\'f pl\'\' \n' +
					'\n' +
					'# femminile plurale alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '' );
					
				var SillFP2 = (( $( 'input#CBSillfp2' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFP2+'\n\n' : '');
					
				var PronFP2 = (( $( 'input#CBPronfp2' ).is( ':checked' ) && $('#VpronFP2').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFP2+'\}\}\n\n' : '');

			var TestoFP2 = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFS + '\|' + common.radice + common.desinenzaFP + '\|fp2=' + common.radice + common.desinenzaFP2 + MP2 + FS2 + FSP2 + '}}\n' +
				'\n' +
				'# femminile plurale alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFP2 + '' +
				'' + SillFP2 + '' +
				'' + PronFP2 + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + common.radice + common.desinenzaFP2 + "",
				"" + TestoFP2 + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FP2' ).escaped() + "",
				function() {
					$( '#FP2Success' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFP2 + '" id="PageCreated">' + common.radice + common.desinenzaFP2 + '</a>' );
				}
			);
		}


		// CREAZIONE FEMMINILE SINGOLARE E PLURALE
		if ( $( 'input#CBfsp' ).is( ':checked' ) ) {
			var AeSTXTFSP = (( $( 'input#AeS' ).is( ':checked' ) ) ?
				'\{\{-sost form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f s\'\' e \'\'f pl\'\' \n' +
				'\n' +
				'# femminile di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'# femminile plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '' );
					
				var SillFSP = (( $( 'input#CBSillfsp' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFSP+'\n\n' : '');
					
				var PronFSP = (( $( 'input#CBPronfp' ).is( ':checked' ) && $('#VpronFSP').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFSP+'\}\}\n\n' : '');

			var TestoFSP = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f s\'\' e \'\'f pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFSP + '\|' + common.radice + common.desinenzaFSP + MP2 + FS2 + FP2 + FSP2 + '}}\n' +
				'\n' +
				'# femminile di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'# femminile plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFSP + '' +
				'' + SillFSP + '' +
				'' + PronFSP + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + common.radice + common.desinenzaFSP2 + "",
				"" + TestoFSP + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FSP' ).escaped() + "",
				function() {
					$( '#FSPSuccess' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFSP + '" id="PageCreated">' + common.radice + common.desinenzaFSP + '</a>' );
				}
			);
		}

		// CREAZIONE FEMMINILE SINGOLARE E PLURALE (FORMA ALTERNATIVA)
		if ( $( 'input#CBfsp2' ).is( ':checked' ) ) {
			var AeSTXTFSP2 = (( $( 'input#AeS' ).is( ':checked' ) ) ?
				'\{\{-sost form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f s\'\' e \'\'f pl\'\' \n' +
				'\n' +
				'# femminile alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'# femminile plurale alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '' );
					
				var SillFSP2 = (( $( 'input#CBSillfsp2' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillFSP2+'\n\n' : '');
					
				var PronFSP2 = (( $( 'input#CBPronfp2' ).is( ':checked' ) && $('#VpronFSP2').val() !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronFSP2+'\}\}\n\n' : '');

			var TestoFSP2 = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'f s\'\' e \'\'f pl\'\' \{\{Tabs\|' + common.radice + common.principale + '\|' + MP+ '\|' + common.radice + common.desinenzaFSP + '\|' + common.radice + common.desinenzaFSP + MSFP + '\|f2=' + common.radice + common.desinenzaFSP2 + '\|fp2=' + common.radice + common.desinenzaFSP2 + '}}\n' +
				'\n' +
				'# femminile alternativo di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'# femminile alternativo plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'\n' + AeSTXTFSP2 + '' +
				'' + SillFSP2 + '' +
				'' + PronFSP2 + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n';

			writeInPage(
				"" + common.radice + common.desinenzaFSP2 + "",
				"" + TestoFSP2 + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'FF-Created-FSP2' ).escaped() + "",
				function() {
					$( '#FSP2Success' ).html( success + ' <a href="/wiki/' + common.radice + common.desinenzaFSP2 + '" id="PageCreated">' + common.radice + common.desinenzaFSP2 + '</a>' );
				}
			);
		}


		//SOLO PLURALE

				var AeSTXTP = (( $( 'input#AeS' ).is( ':checked' ) === true) ?
				'\n\{\{-sost form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'' + common.PluraleGenere + ' pl\'\' \n' +
				'\n' +
				'# plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' : '');
					
				var SillP = (( $( 'input#CBSillp' ).is( ':checked' ) ) ?
					'\{\{-sill-\}\}\n' +
					'; '+common.radiceSill+common.desinenzaSillP+'\n\n' : '');
					
				var PronP = (( $( 'input#CBPronp' ).is( ':checked' ) && $('#VpronP') !== '' ) ?
					'\{\{-pron-\}\}\n' +
					'\{\{IPA|'+common.VpronP+'\}\}\n\n' : '');

			
			if ( $( 'input#CBGenere' ).is( ':checked' ) ) {
			var TestoPlurale = '== \{\{-es-\}\} == \n' +
				'\{\{-' + common.parte + ' form-\|es\}\}\n' +
				'\{\{Pn\}\} \'\'' + common.PluraleGenere + ' pl\'\' \n' +
				'\n' +
				'# plurale di \[\[' + common.radice + common.principale + '#Spagnolo|'+ common.radice + common.principale +'\]\]\n' +
				'' + AeSTXTP + '' +
				'' + SillP + '' +
				'' + PronP + '' +
				'{{-etim-}}\n' +
				'\{\{Etim-link\|' + common.radice + common.principale + '\}\}\n'

			writeInPage(
				"" + common.radice + common.DesinenzaPlurale + "",
				"" + TestoPlurale + "",
				"[[" + mw.message( 'ScriptLink' ).escaped() + "|Script]]: " + mw.message( 'PL-Created' ).escaped() + "",
				function() {
					$( '#PluraleSuccess' ).html( success + ' <a href="/wiki/' + common.radice + common.DesinenzaPlurale + '" id="PageCreated">' + common.radice + common.DesinenzaPlurale + '</a>' )
				}
			);
		}
	}