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, requestsPage: 'Adoption:Requests/Extend_permissions' },   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') { mw.loader.using('mediawiki.util').add(function {        window.location = mw.util.getUrl('Discord');     }); }

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

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

//Message wall greeting for Mesage wall:Sophiedp, uses User:Sophiedp/notstaff //written by Sophiedp, with premission from Sannse if (mw.config.get('profileUserName') === 'Sophiedp' && mw.config.get('profileIsMessageWallPage')) { mw.loader.using('mediawiki.api').then(function {        new mw.Api.get({ action: 'parse', format: 'json', page: 'User:Sophiedp/notstaff', prop: 'text', wrapoutputclass: 'greeting', disablelimitreport: 1, formatversion: '2' }).done(function (data) { $('#MessageWall').prepend(data.parse.text).find('.greeting').css('margin-bottom', '20px'); });   }); }