MediaWiki:Gadget-contribsDisplayed.js

// By Equazcion: http://terraria.gamepedia.com/User:Equazcion

const l10n = (function {	const $text = {		'text': {			'en': 'Total edits displayed: ',			'de': 'Angezeigte Bearbeitungen: ',			'fr': 'Modifications totales affichées : ',			'pt-br': 'Total de edições exibidas: ',			'ru': 'Количество совершённых правок: ',		}	};	const $lang = mw.config.get( 'wgUserLanguage' ) || 'en';	return function(key) {		return $text[key] && ($text[key][$lang] || $text[key]['en']) || '';	}; });

$(document).ready(function {	var contribCount = $('li:has(a.mw-changeslist-date)');	var contribNum = contribCount.length;	var contribUL = $('li:has(a.mw-changeslist-date):first').parent('ul');	contribUL.before(' ' + $.i18n('gadget-contr-text') + '' + contribNum + ' '); });