Utente:Ricordisamoa/CategoriaLingue.js

Hello, you have come here looking for the meaning of the word Utente:Ricordisamoa/CategoriaLingue.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word Utente:Ricordisamoa/CategoriaLingue.js, but we will also tell you about its etymology, its characteristics and you will know how to say Utente:Ricordisamoa/CategoriaLingue.js in singular and plural. Everything you need to know about the word Utente:Ricordisamoa/CategoriaLingue.js you have here. The definition of the word Utente:Ricordisamoa/CategoriaLingue.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUtente:Ricordisamoa/CategoriaLingue.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
(function () {

var i18n = {
	'specialpage': 'CategorieLingua',
	'title': 'Categorie delle lingue',
	'portlet-title': 'Categoria delle lingue',
	'portlet-tooltip': 'Visualizza la lista di tutte le lingue presenti su Wikizionario, con funzioni extra'
},
ns = mw.config.get('wgFormattedNamespaces'),
sp = mw.util.getUrl(ns + ':' + i18n.specialpage);

if(mw.config.get('wgNamespaceNumber') == -1 && mw.config.get('wgTitle') == 'CategorieLingua') {
	$('#mw-content-text').replaceWith('<div style="-moz-column-count:3; -webkit-column-count:3; column-count:3;" id="lista"><ul id="elenco"></ul></div>');

	$.get(
		mw.util.wikiScript('api'),
	{
		action: 'query',
		list: 'categorymembers',
		format: 'json',
		cmtitle: mw.config.get('wgFormattedNamespaces')+ ':Lingue',
		cmnamespace: 14,
		cmtype: 'subcat',
		cmprop: 'title',
		cmlimit: 500
	}).done(function (data) {
		$.each( data.query.categorymembers, function(i, val) {
			$("#elenco").append('<li> <a href="'+mw.util.getUrl(val.title)+'">' + val.title+'</a></li>');
		});

		$( '#elenco li' ).each( function() {
			var url = '//toolserver.org/~erwin85/randomarticle.php?' + $.param({ lang: 'it', family: 'wiktionary', categories: $( 'a:first', this ).text().replace(ns + ':', ''), subcats: 1, d: 0 });
			// var url = mw.util.getUrl(ns + ':RandomInCategory/' + $( 'a:first', this ).text().replace(ns + ':', ''));
			$( 'a', this )
			.after( ' ) ' )
			.after( $( '<a>' ).attr( 'href', url).text( 'Pagina a caso' ) ).after( ' ( ' );
		});
	});

	$('h1').first().text(i18n.title);
	document.title = i18n.title + ' - ' + mw.config.get('wgSiteName');

}

if ( mw.config.get('wgCanonicalSpecialPageName') === 'Specialpages' ) {
	$('#mw-specialpagesgroup-pages').next().find('td ul').eq(1)
	.prepend('<li><a href="' + sp + '">' + i18n.title + '</a></li>');
}
	
	
mw.util.addPortletLink( 'p-tb', sp, i18n, 'p-langcat', i18n);
})();