MediaWiki:Common.js/masthead.js

/* Any JavaScript here will be loaded for all users on every page load. */

/****************************/ /***  MASTHEAD LABELS    ***/ /****************************/

$(function { var rights = {};

//BUREAUCRATS rights["ObsidianDraconis"]          = ["Bureaucrat"]; rights["NDenizen"]                  = ["Bureaucrat"];

//ADMINISTRATORS rights["Simmons477"]                = ["Administrator"]; //ADMINISTRATORS + AOTM rights["Balagog_gro-Nolob"]         = ["Administrator","AOTM - September 2012"]; //CHAT MODERATORS rights["Firedale2002"]              = ["Chat Mod"];

//CHAT MODS + AOTM rights["AeonsLegend"]               = ["Chat Mod","AOTM - January 2013"];

//OTHER AOTM rights["Jurass"]                    = ["AOTM - October 2012"]; rights["Thousand Troops"]           = ["AOTM - November 2012"]; rights["A91 knightblade"]           = ["AOTM - December 2012"];

if (typeof rights[wgTitle] != "undefined") { // remove old rights $('.UserProfileMasthead .masthead-info span.tag').remove; for( var i=0, len=rights[wgTitle].length; i < len; i++) { // add new rights $(' ' + rights[wgTitle][i] +         ' ').appendTo('.masthead-info hgroup'); }   } });