MediaWiki:Wikia.js

/* Add a tag for "bureaucrat" to user profile header when bureaucrats category present * Add a tag for "moderator" to user profile header when moderator category present * Add a tag for "rollback" to user profile header when rollback editors category present * by: User:Technology Wizard */ $(document).ready(function {	if (-1 < $.inArray("Bureaucrats", wgCategories)) {		$('.masthead-info hgroup').append(' Bureaucrat ');	}	if (-1 < $.inArray("Moderators", wgCategories)) {		$('.masthead-info hgroup').append(' Moderator ');	}	if (-1 < $.inArray("Rollback Editors", wgCategories)) {		$('.masthead-info hgroup').append(' Rollback ');	} });

/* Add a talk button to pages. http://community.wikia.com/wiki/Admin_Forum:Looking_for_JS_to_add_a_Talk_button?oldid=751269 */ $('Talk').insertAfter('#WikiaPageHeader a[href="#WikiaArticleComments"]');