MediaWiki:Common.js

//Redirect Special:Chat to Discord if (mw.config.get('wgPageName') === 'Special:Chat') { window.location = 'https://community.fandom.com/wiki/Discord'; }

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

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

// Configuration for adoptions form window.adoptInternational = { unsupportedLanguages: ['es','de','fr','ru','it','nl','pl','pt','pt-br','zh'], pageConfig: { namespace: 'Adoption', namespaceId: 118, adoptionsPage: 'Adoption:Requests' },   /**     * Wikitext schema for adoption requests created by this form * It uses Mustache.js template form *    * You add variables using the following syntax: ``. * If you want your variable to be unescaped (e.g. include HTML tags or URLs), you need to use ``. *    * This format doesn't particularly work with wikitext templates and magic words, thus I added `bStart` and `bEnd` * variables, which correspond to "" characters repsectively, but are to be used for *wikitext* syntax only. *    * Example: * `` will produce: "https:&#x2F;&#x2F;wiki.fandom.com&#x2F;xx&#x2F;f&#x2F;p&#x2F;420" * `` will produce: "https://wiki.fandom.com/xx" * `wikiURL` will produce: "" (wikitext) *    * List of available variables: * - Currently logged user * - name of the wiki they want to adopt * - URL of the wiki they want to adopt * - Type of permissions they request * - Number of days they were active in within last 10 days * - Number of admins active in last 60 days * - Their comments and rationale for adoption * - URL to Discussions post with community vote for their request *    * Technical: * - - replaced with "" */   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" + "",   i18n: { activeAdminsError: 'Please keep in mind if there are already active admins you should contact them first regarding becoming admin yourself.', adminsActivityLabel: 'Number of admins active in the past 60 days', adoptionButtonLabel: 'Adopt wiki', alreadyAdminError: 'You are already an admin on this wiki. Please keep in mind you do not need to adopt a wiki you are already admin for unless you are applying to be a bureaucrat.', alreadyBureaucratError: 'You are already a bureaucrat on this wiki. You do not need to adopt this wiki.', automaticQueryError: 'The wiki did not respond to an automated query. You will have to fill out the requested values.', ccError: 'Fandom-branded wikis are not available to be adopted.', closeLabel: 'Cancel', commentsLabel: 'Comments/Reasons to Adopt', communityVoteLabel: 'Community vote', invalidLanguageError: 'For international adoption requests, please expand the International adoption request links section and visit the Community Central for your language to make an adoption request.', invalidUrlError: 'The format of the URL provided was not recognized.', linkLabel: 'Link', modalTitle: 'Adoption Request', nameLabel: 'Wiki Name', noActivityError: 'Please keep in mind you should have contributed consistently to the wiki for a week prior to submitting a request.', noCommentsError: 'Please try to leave some rationale as to why you want to adopt this wiki and why you would be a good fit as admin.', noEditsError: 'You must have contributed to the wiki in the past week in order to adopt it.', noNameError: 'Please enter the wiki name.', noUrlError: 'Please enter the wiki URL.', permissionLabel: 'Permissions type', placeholderComments: 'Comments about the adoption request. Please tell us why you want to adopt the wiki and how you are a good candidate to be admin.', placeholderDiscussionsPost: 'Discussions post ID', placeholderUrl: 'https://wiki.fandom.com', processFailError: 'There were problems submitting your request.', provideCommunityVote: 'There appear to be at least a few other active users on the wiki. Please consider creating a Discussions post describing your intention to adopt the wiki and let them give their feedback. If you already have, please be sure to include a link to that post.', submitError: 'There were problems submitting your request.', submitLabel: 'Submit', userActivityLabel: 'Number of days edited in the past 10 days' } };