MediaWiki:Gadget-blocktab.js

jQuery( document ).ready( function {   var ns = mw.config.get( 'wgNamespaceNumber' );	if ( ns !== 2 && ns !== 3 ) {		return;  // restrict to User and User talk	}

var localtitles = { en: 'Block', pl: 'Zablokuj' };

if( localtitles[wgUserLanguage] ) { TabTitle = localtitles[wgUserLanguage]; }

var title = mw.config.get( 'wgTitle' );

// @todo: Use mw.msg when Gadgets 2.0 is out and messages can be loaded mw.util.addPortletLink(		'p-cactions',		mw.util.wikiGetlink( 'Special:Block/' + title ),		TabTitle, 't-blockip', TabTitle + ' "' + title + '"'	); });