MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* BackToTopButton */ window.BackToTopModern = true;

/* LockOldBlogs */ window.LockOldBlogs = { expiryMessage: 'This blog is considered archived because it hasn\'t been commented on in over  days, please don\'t bump this blog!', nonexpiryCategory: 'Never archived blogs' };

/*License*/ window.NoLicenseWarning = { forceLicense: true };

window.pPreview = $.extend(true, window.pPreview, {RegExp: (window.pPreview || {}).RegExp || {} }); window.pPreview.tlen = 1000;

window.pPreview.RegExp.iparents = [ '[id^=flytabs] .tabs', '.char-element' ];

// Prepare custom messages for NoLicenseWarning window.dev = window.dev || {}; window.dev.i18n = window.dev.i18n || {}; window.dev.i18n.overrides = window.dev.i18n.overrides || {}; window.dev.i18n.overrides['NoLicenseWarning'] = window.dev.i18n.overrides['NoLicenseWarning'] || {};

// Add custom content instead of default messages window.dev.i18n.overrides['NoLicenseWarning']['warning-text'] = 'Please select a license before proceding. Please do be infromed that any unlicensed file may be removed. '; window.dev.i18n.overrides['NoLicenseWarning']['rejected-text'] = 'Your file has been rejected due to not selecting the appropriate license. Please contanct a moderator for further assistance. ';

// Configuration for NoLicenseWarning window.NoLicenseWarning = { forceLicense: true, excludedGroups: [ 'sysop', 'threadmoderator', 'content-moderator', 'bot' ] };

// Custom text for adding a new section to articles window.AddSectionButtonText = "Add new section";

// PreloadTemplates customization preloadTemplates_subpage = "case-by-case";

// AddRailModule window.AddRailModule = [ {page: 'Template:Discord', prepend: true} ];

// User tags window.UserTagsJS = { tags: { 'bureaucrat': { u: 'Demon Lord', link: 'Project:Bureaucrats' },       'sysop': { u: 'True Dragon', link: 'Project:Sysops' },       'content-moderator': { u: 'Paladin', link: 'Project:Content moderator' },       'poweruser': { u: 'Slime', link: 'Project:Autoconfirmed users' },       'autoconfirmed-user': { u: 'Fair Oni', link: 'Project:Autoconfirmed users' },       'user': { u: 'Slime', link: 'Project:Autoconfirmed users' },       'newuser': { u: 'Slime' },       inactive: { u: 'Deceased', title: 'The user hasn\'t edited for last 30 days' },       blocked: { u: 'Dark Oni', link: 'Project:Blocking policy' },   },    modules: { stopblocked: false, inactive: 30, mwGroups: [ 'bureaucrat', 'sysop', 'content-moderator', 'rollback', 'user', 'autoconfirmed-user', 'bot', 'bot-global', 'blocked', 'nonuser' ],       autoconfirmed: true, newuser: true, metafilter: { 'content-moderator': ['bureaucrat'], rollback: [ 'bureaucrat', 'content-moderator' ],           threadmoderator: ['content-moderator'], user: [ 'bureaucrat', 'sysop', 'content-moderator', 'rollback', 'translator', 'newuser', 'inactive', 'blocked' ],           bot: ['bot-global'], newuser: ['inactive'], bureaucrat: ['inactive'], sysop: ['inactive'], founder: ['inactive'], blocked: ['inactive'], poweruser: ['newuser'] },   }, };