(Criou a página com "// By Equazcion: http://terraria.gamepedia.com/User:Equazcion var l10n = (function(){ var $text = { 'text': { 'en': 'Total edits displayed: ', 'de': 'Angezeigte Be...") |
Sem resumo de edição |
||
Linha 6: | Linha 6: | ||
'en': 'Total edits displayed: ', |
'en': 'Total edits displayed: ', |
||
'de': 'Angezeigte Bearbeitungen: ', |
'de': 'Angezeigte Bearbeitungen: ', |
||
⚫ | |||
'pt': 'Total de edições exibidas: ', |
'pt': 'Total de edições exibidas: ', |
||
⚫ | |||
}, |
}, |
||
} |
} |
Revisão das 14h26min de 17 de fevereiro de 2021
// By Equazcion: http://terraria.gamepedia.com/User:Equazcion
var l10n = (function(){
var $text = {
'text': {
'en': 'Total edits displayed: ',
'de': 'Angezeigte Bearbeitungen: ',
'pt': 'Total de edições exibidas: ',
'ru': 'Количество совершённых правок: ',
},
}
var $lang = mw.config.get( 'wgUserLanguage' ) || 'en';
return function(key){
return $text[key] && ($text[key][$lang] || $text[key]['en']) || '';
}
})();
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('<div>' + l10n('text') + '<b>' + contribNum + '</b></div>');