MediaWiki:Common.js

// Configuration for interlanguage links form window.interwikiInternational = { namespace: 'Interlanguage_link', namespaceId: 152, mainPage: 'Community_Central:Interlanguage_link_requests', interwikiSchema: 'InterwikiLink||', pageSchema: 'Interlanguage Link Request|awaiting\n' + '\n' + '\n\n' +  +  };

// Adoption & such requests in these languages will *not* work window.communityRequestsUnsupportedLangs = ['de', 'es', 'fr', 'it', 'pl', 'pt', 'pt-br', 'zh', 'zh-tw', 'zh-hk'];

// Configuration for extend permissions form window.adoptRetainInternational = { unsupportedLanguages: window.communityRequestsUnsupportedLangs, requirementsConfig: { activityDays: 10, permissionTypes: [ 'bureaucrat', 'sysop' ]   },    pageConfig: { namespace: 'Adoption', namespaceId: 118, adoptionsPage: 'Adoption:Requests' },   wikitextSchema: 'Permissions Extend Request\n' + '|0-Status              = awaiting<!- Staff: replace "awaiting" with "accepted" or "rejected" to complete request-->\n' + '|1-User                = \n' + '|2-URL                 = \n' + '|3-Permissions         = \n' + '|4-Days edited         = \n' + '|5-Reason              = \n' + '|6-Community discussion = \n' + '\n\n' };

// Configuration for adoptions form window.adoptInternational = { unsupportedLanguages: window.communityRequestsUnsupportedLangs, adoptionConfig: { activityDays: 10, adminsDays: 60, permissionTypes: [ 'bureaucrat', 'sysop' ],   },    pageConfig: { namespace: 'Adoption', namespaceId: 118, adoptionsPage: 'Adoption:Requests' },   wikitextSchema: "Adoption request\n" + "|1-User           = \n" + "|2-Link to wiki   = \n" + "|3-Rights type    = \n" + "|4-Your activity  = \n" + "|5-Admin activity = \n" + "|6-Your motivation = \n" + "|7-Community vote = \n" + "" };

//Redirect Special:Chat to Discord if (mw.config.get('wgPageName') === 'Special:Chat') { window.location = mw.util.getUrl('Discord'); }

//LockForums - lock after 60 days (default: 30) window.LockForums = { expiryDays: 60 };

window.AddRailModule = [{ page: 'MediaWiki:DiscordAMA', prepend: true }];