MediaWiki:Gadget-CatWatch.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
attivo tasto 'diff'
rimuovo tasto 'last' analogo a 'diff'
Riga 120:
url = mw.config.get('wgScript') + '?title=' + title;
urlcat = mw.config.get('wgArticlePath').replace('$1', 'Categoria:' + category);
$diff = $('<a>').attr('href', mw.configurl + '&diff=corr').gettext('wgArticlePathdiff');
.replace('$1', encodeURIComponent(title)) + '?diff=corr').text('diff');
$cron = $('<a>').attr('href', url + '&action=history').text('cron');
$cat = $('<a>').attr('href', urlcat).text('Categoria:' + category);
$page = $('<a>').attr('href', mw.config.get('wgArticlePath')
.replace('$1', encodeURIComponent(title)) + '?redirect=no').text(title);
$last = $('<a>').attr('href', url + '&diff=last').text('last');
return $('<li>').css('font-weight', 'bold')
.append('(', $diff, ' | ', $cron, ') . . ', $cat, '; ', time,
' . . (+ ', $page, ' (', $last, '))');
}