MediaWiki:Tags.js

/////////////////////////////////////////////// /******* Anon Tags | By KockaAdmiralac *******/ /////////////////////////////////////////////// (function {   var $masthead = $('#UserProfileMasthead');    if (!$masthead.exists) {        return;    }    var $info = $masthead.find('.masthead-info hgroup'),        username = $info.find('h1').text;    if ( mw.util.isIPv4Address(username) || mw.util.isIPv6Address(username) ) {       var $tag = $info.find('.tag');        if ($tag.exists) {            var blocked = $tag.remove.text;            $info.append( $(' ', {                   'class': 'tag-container'                }).append(                    $('', { 'text':   blocked, 'href':   mw.util.getUrl('Help:Blocking'), 'title':  'Help:Block', 'class':  'tag usergroup-blocked blocked-user' })               )            );        }    } });

/////////////////////////////////////////////// /************* Tag Configuration *************/ /////////////////////////////////////////////// /* Tag Creation */ window.UserTagsJS = { modules: {}, tags: { /** Global FANDOM Groups **/ staff: { link: 'Help:Community Team', title: 'Help:Community Team' },       helper: { link: 'Help:Volunteers and Helpers#Helpers', title: 'Help:Volunteers and Helpers' },       vstf: { link: 'Help:SpamTaskForce', title: 'Help:SpamTaskForce' },       'wiki-manager': { link: 'w:c:community:Community Central:Wiki Managers', title: 'Community Central:Wiki Managers' },       'global-discussions-moderator': { link: 'Project:Global Discussions Moderator', title: 'Project:Global Discussions Moderator' },       voldev: { link: 'Help:Volunteer Developers', title: 'Help:Volunteer Developers' },       vanguard: { link: 'Help:Vanguard', title: 'Help:Vanguard' },       council: { link: 'Project:Council', title: 'Project:Council' },       'bot-global': { link: 'w:c:community:Help:Bots', title: 'Help:Bots' },

/** Fully Automated **/ autoconfirmed: { u:    'Verified', link: 'Project:Tags', title: 'Project:Tags', order: 925 },       notautoconfirmed: { u:    'New Account', link: 'Project:Tags', title: 'Project:Tags', order: 1000 },       inactive: { link: 'Project:Tags', title: 'Project:Tags', order: 500 },       newuser: { u:    'New', link: 'Project:Tags', title: 'Project:Tags', order: 950 },       nonuser: { u:    'Non-User', link: 'Project:Tags', title: 'Project:Tags', order: 975 },

/** Externally Dependent **/ blocked: { u:    'Blocked', link: 'Help:Blocking', title: 'Help:Block', order: 100 },       'check-user': { link: 'Help:CheckUser', title: 'Help:CheckUser', order: 325 },       bot: { link: 'Project:Bots', title: 'Project:Bots', order: 400 },       rot: { u:    'Rogue Bot', link: 'Project:Bots#Note on why bots may be blocked', title: 'Project:Bots', order: 350 },       bureaucrat: { u:    'Bureaucrat', link: 'Project:Staff', title: 'Project:Staff', order: 475 },       sysop: { u:    'Administrator', link: 'Project:Staff', title: 'Project:Staff', order: 500 },       'content-moderator': { u:    'Content Moderator', link: 'Project:Staff', title: 'Project:Staff', order: 625 },       threadmoderator: { u:    'Discussions Moderator', link: 'Project:Staff', title: 'Project:Staff', order: 650 },       chatmoderator: { u:    'Chat Moderator', link: 'Project:Staff', title: 'Project:Staff', order: 675 },       rollback: { u:    'Rollback', link: 'Project:Staff', title: 'Project:Staff', order: 600 },

/** Internally Dependent **/ founder: { link: 'Help:Founders', title: 'Help:Founders', order: 450 },       ef: { link: 'Project:Farmers', title: 'Project:Farmers', order: 900 },       vip: { u:    'VIP', link: 'Project:Tags', title: 'Project:Tags', order: 780 },       hi: { u:    'On Hiatus', link: 'Project:Tags', title: 'Project:Tags', order: 750 }   } };/**/

/* Functionality */ UserTagsJS.modules.stopblocked  = false; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.isblocked    = true; UserTagsJS.modules.nonuser      = true; UserTagsJS.modules.inactive     = 30; UserTagsJS.modules.newuser      = { days: 14, edits: 150 }; UserTagsJS.modules.mwGroups     = [ 'blocked', 'authenticated', 'bot-global', 'bot', 'checkuser', 'founder', 'bureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'chatmoderator', 'rollback', 'autoconfirmed' ];//End FM*/

/* Custom Tags */ UserTagsJS.modules.custom = { /** Staff Ranks **/ 'Bush of Awesome:D'   :['fs'], 'FlareonIsAwesome13'  :['fs'], 'GAK16'               :['fs'], 'Gacha W1Z4RD'        :['fs'], 'Glaciersong'         :['fs'], 'PredatoR X ~CF0P~'   :['fs', 'hi'], 'RobTheBobert'        :['fs'], 'Sonic of Prodigy'    :['fs'], 'The Shadow of Prodigy':['fs', 'alt'] };/**/

/* Meta Filter */ UserTagsJS.modules.metafilter = { /** Fully Automated **/ inactive: [ 'blocked', 'staff', 'helper', 'vstf', 'wiki-manager', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'content-volunteer', 'authenticated', 'bot-global', 'bot', 'founder', 'bureaucrat', 'em', 'newuser', 'notautoconfirmed', 'nonuser', 'ef', 'hi' ],   autoconfirmed: [ 'blocked', 'staff', 'helper', 'vstf', 'wiki-manager', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'content-volunteer', 'authenticated', 'bot-global', 'bot', 'founder', 'fs', 'vip', 'ef', 'threadmoderator', 'chatmoderator', 'rollback', 'nonuser', 'newuser', 'inactive', 'sysop' ],   newuser: [ 'blocked', 'staff', 'helper', 'vstf', 'wiki-manager', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'content-volunteer', 'authenticated', 'bot-global', 'bot', 'founder', 'vip', 'nonuser', 'notautoconfirmed', 'sysop', 'content-moderator', 'chatmoderator', 'threadmoderator', 'rollback' ],   nonuser: [ 'blocked', 'staff', 'helper', 'vstf', 'wiki-manager', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'content-volunteer', 'authenticated', 'bot-global', 'bot', 'founder', 'vip', 'notautoconfirmed', 'sysop', 'content-moderator', 'chatmoderator', 'threadmoderator', 'rollback' ],   notautoconfirmed: [ 'blocked', 'staff', 'helper', 'vstf', 'wiki-manager', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'content-volunteer', 'authenticated', 'bot-global', 'bot', 'vip', 'sysop', 'content-moderator', 'chatmoderator', 'threadmoderator', 'rollback' ],

/** Externally Dependent **/ 'bot': [ 'bot-global' ],   'bureaucrat': [ 'bot', 'founder', 'hi' ],   'sysop': [ 'blocked', 'sysop' ],   'content-moderator': [ 'bot', 'founder', 'bureaucrat', 'sysop', 'blocked', 'hi' ],   'threadmoderator': [ 'content-moderator', 'bot', 'founder', 'bureaucrat', 'sysop', 'blocked', 'hi       ], 'chatmoderator': [ 'bot', 'founder', 'bureaucrat', 'sysop', 'threadmoderator', 'rollback', 'blocked', 'hi' ],   'rollback': [ 'bot', 'founder', 'bureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'rollback', 'blocked', 'hi' ],   'alt':[ 'blocked', 'bot' ],   'ef':['blocked'], 'founder':['blocked'], "fs":[ 'bureaucrat', 'content-moderator', 'rollback', 'sysop', 'threadmoderator' ],   "hi":["blocked"]