diff --git a/LocalSettings.php b/LocalSettings.php index cafd5453..e11e6ec7 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -1,5358 +1,5358 @@ ProfilerXhprof::class, 'flags' => $xhprofFlags, 'running' => true, 'output' => 'text', ]; $wgHTTPTimeout = 60; } require_once '/srv/mediawiki/config/initialise/MirahezeFunctions.php'; $wi = new MirahezeFunctions(); // Load PrivateSettings (e.g. $wgDBpassword) require_once '/srv/mediawiki/config/PrivateSettings.php'; // Load global skins and extensions require_once '/srv/mediawiki/config/GlobalSkins.php'; require_once '/srv/mediawiki/config/GlobalExtensions.php'; $wgPasswordSender = 'noreply@miraheze.org'; $wmgUploadHostname = 'static.miraheze.org'; $wgConf->settings += [ // invalidates user sessions - do not change unless it is an emergency. 'wgAuthenticationTokenVersion' => [ 'default' => '6', ], // 3D 'wg3dProcessor' => [ 'ext-3d' => [ '/usr/bin/xvfb-run', '-a', '-s', '-ac -screen 0 1280x1024x24', '/srv/3d2png/src/3d2png.js', ], ], // AbuseFilter 'wgAbuseFilterActions' => [ 'default' => [ 'block' => true, 'blockautopromote' => true, 'degroup' => true, 'disallow' => true, 'rangeblock' => false, 'tag' => true, 'throttle' => true, 'warn' => true, ], ], 'wgAbuseFilterCentralDB' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgAbuseFilterIsCentral' => [ 'default' => false, 'metawiki' => true, 'betawiki' => true, ], 'wgAbuseFilterBlockDuration' => [ 'default' => 'indefinite', ], 'wgAbuseFilterAnonBlockDuration' => [ 'default' => 2592000, ], 'wgAbuseFilterNotifications' => [ 'default' => 'udp', ], 'wgAbuseFilterLogPrivateDetailsAccess' => [ 'default' => true, ], 'wgAbuseFilterPrivateDetailsForceReason' => [ 'default' => true, ], 'wgAbuseFilterEmergencyDisableThreshold' => [ 'default' => [ 'default' => 0.05, ], ], 'wgAbuseFilterEmergencyDisableCount' => [ 'default' => [ 'default' => 2, ], ], // Anti-spam 'wgAccountCreationThrottle' => [ 'default' => [ [ 'count' => 3, 'seconds' => 300, ], [ 'count' => 10, 'seconds' => 86400, ], ], ], 'wgPasswordAttemptThrottle' => [ 'default' => [ // this is X attempts per IP globally // user accounts are not taken into consideration [ /** 5 attempts in 5 minutes */ 'count' => 5, 'seconds' => 300, ], [ /** 40 attempts in 24 hours */ 'count' => 40, 'seconds' => 86400, ], [ /** 60 attempts in 48 hours */ 'count' => 60, 'seconds' => 172800, ], [ /** 75 attempts in 72 hours */ 'count' => 75, 'seconds' => 259200, ], ], ], // https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:SpamBlacklist#Block_list_syntax 'wgBlacklistSettings' => [ 'default' => [ 'spam' => [ 'files' => [ 'https://meta.miraheze.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1', ], ], ], 'betaheze' => [ 'spam' => [ 'files' => [ 'https://beta.betaheze.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1', ], ], ], ], 'wgLogSpamBlacklistHits' => [ 'default' => true, ], 'wgTitleBlacklistLogHits' => [ 'default' => true, ], // ApprovedRevs 'egApprovedRevsEnabledNamespaces' => [ 'default' => [ NS_MAIN => true, NS_USER => true, NS_FILE => true, NS_TEMPLATE => true, NS_HELP => true, NS_PROJECT => true ], ], 'egApprovedRevsAutomaticApprovals' => [ 'default' => true, ], 'egApprovedRevsShowApproveLatest' => [ 'default' => false, 'primalfeararkwiki' => true, ], 'egApprovedRevsShowNotApprovedMessage' => [ 'default' => false, 'primalfeararkwiki' => true, ], // ArticleCreationWorkflow 'wgArticleCreationLandingPage' => [ 'default' => 'Project:Article wizard', ], 'wgUseCustomLandingPageStyles' => [ 'default' => true, ], // ArticlePlaceholder 'wgArticlePlaceholderImageProperty' => [ 'default' => 'P18', ], 'wgArticlePlaceholderReferencesBlacklist' => [ 'default' => 'P143', ], 'wgArticlePlaceholderSearchEngineIndexed' => [ 'default' => false, ], 'wgArticlePlaceholderRepoApiUrl' => [ 'default' => 'https://www.wikidata.org/w/api.php', ], // BetaFeatures 'wgMediaViewerIsInBeta' => [ 'default' => false, ], 'wgVisualEditorEnableWikitextBetaFeature' => [ 'default' => false, ], 'wgVisualEditorEnableDiffPageBetaFeature' => [ 'default' => false, ], 'wgPopupsReferencePreviewsBetaFeature' => [ 'default' => true, ], // Block 'wgAutoblockExpiry' => [ // 24 hours * 60 minutes * 60 seconds 'default' => 86400, ], 'wgBlockAllowsUTEdit' => [ 'default' => true, ], 'wgEnableBlockNoticeStats' => [ 'default' => false, ], 'wgEnablePartialActionBlocks' => [ 'default' => true, ], // Bot passwords 'wgBotPasswordsDatabase' => [ 'default' => 'mhglobal', 'betaheze' => 'betawiki', ], // Cache 'wgCacheDirectory' => [ 'default' => '/srv/mediawiki/cache', ], 'wgExtensionEntryPointListFiles' => [ 'default' => [ '/srv/mediawiki/config/extension-list' ], ], // Captcha 'wgCaptchaClass' => [ 'default' => ReCaptchaNoCaptcha::class, ], 'wgCaptchaTriggers' => [ 'default' => [ 'edit' => false, 'create' => false, 'sendemail' => false, 'addurl' => true, 'createaccount' => true, 'badlogin' => true, 'badloginperuser' => true ], '+ext-WikiForum' => [ 'wikiforum' => true, ], ], 'wgReCaptchaSendRemoteIP' => [ 'default' => false, ], 'wgReCaptchaSiteKey' => [ 'default' => '6LeR1msdAAAAAEMnmLm8lI0HMP5wFvYuQFdYX8NH', ], 'wgReCaptchaVersion' => [ 'default' => 'v3', ], 'wgReCaptchaMinimumScore' => [ 'default' => 0.3, ], // Cargo 'wgCargoDBuser' => [ 'default' => 'cargouser', ], 'wgCargoFileDataColumns' => [ 'default' => [], 'egoishwiki' => [ 'mediaType', 'path', 'lastUploadDate', 'fullText', 'numPages', ], ], 'wgCargoPageDataColumns' => [ 'default' => [], 'dmlwikiwiki' => [ 'creationDate', 'modificationDate', 'creator', 'fullText', 'categories', 'numRevisions', 'isRedirect', ], 'egoishwiki' => [ 'creationDate', 'modificationDate', 'creator', 'fullText', 'categories', 'numRevisions', 'isRedirect', ], ], // Categories 'wgCategoryCollation' => [ // updateCollation.php should be ran after changing 'default' => 'uppercase', 'academiadesusarduwiki' => 'uca-fr', 'holidayswiki' => 'numeric', 'levyraatiwikiwiki' => 'numeric', 'supermanwiki' => 'numeric', 'ext-CategorySortHeaders' => CustomHeaderCollation::class, ], 'wgCategoryPagingLimit' => [ 'default' => 200, ], // CategoryTree 'wgCategoryTreeDefaultMode' => [ 'default' => 0, ], 'wgCategoryTreeCategoryPageMode' => [ 'default' => 0, ], // CentralAuth 'wgCentralAuthAutoCreateWikis' => [ 'default' => [ 'loginwiki', 'metawiki', ], 'betaheze' => [ 'betawiki', ], ], 'wgCentralAuthAutoNew' => [ 'default' => true, ], 'wgCentralAuthAutoMigrate' => [ 'default' => true, ], 'wgCentralAuthAutoMigrateNonGlobalAccounts' => [ 'default' => true, ], 'wgCentralAuthCookies' => [ 'default' => true, ], 'wgCentralAuthCookiePrefix' => [ 'default' => 'centralauth_', 'betaheze' => 'betacentralauth_', ], 'wgCentralAuthCreateOnView' => [ 'default' => true, 'cvtwiki' => false, 'cwarswiki' => false, 'minecraftjapanwiki' => false, 'nenawikiwiki' => false, 'staffwiki' => false, 'stewardswiki' => false ], 'wgCentralAuthDatabase' => [ 'default' => 'mhglobal', 'betaheze' => 'testglobal', ], 'wgCentralAuthEnableGlobalRenameRequest' => [ 'default' => false, 'metawiki' => true, 'betawiki' => true, ], 'wgCentralAuthLoginWiki' => [ 'default' => 'loginwiki', 'betaheze' => 'betawiki', ], 'wgCentralAuthPreventUnattached' => [ 'default' => true, ], 'wgCentralAuthSilentLogin' => [ 'default' => true, ], 'wgCentralAuthHiddenLevelMigrationStage' => [ // Remove with 1.39 'default' => SCHEMA_COMPAT_READ_NEW | SCHEMA_COMPAT_WRITE_NEW, ], // CentralNotice 'wgNoticeInfrastructure' => [ 'default' => false, 'metawiki' => true, 'betawiki' => true, ], 'wgCentralSelectedBannerDispatcher' => [ 'default' => 'https://meta.miraheze.org/w/index.php/Special:BannerLoader', 'betaheze' => 'https://beta.betaheze.org/w/index.php/Special:BannerLoader', ], 'wgCentralBannerRecorder' => [ 'default' => 'https://meta.miraheze.org/w/index.php/Special:RecordImpression', 'betaheze' => 'https://beta.betaheze.org/w/index.php/Special:RecordImpression', ], 'wgCentralDBname' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgCentralHost' => [ 'default' => 'https://meta.miraheze.org', 'betaheze' => 'https://beta.betaheze.org', ], 'wgNoticeProjects' => [ 'default' => [ 'all', 'optout', ], ], 'wgNoticeUseTranslateExtension' => [ 'default' => true, ], // Chameleon 'egChameleonLayoutFile' => [ 'default' => '/srv/mediawiki/w/skins/chameleon/layouts/standard.xml', 'lakehubwiki' => '/srv/mediawiki/w/skins/chameleon/layouts/fixedhead.xml', 'obeymewiki' => '/srv/mediawiki/w/skins/chameleon/layouts/fixedhead.xml', 'koopacabanawiki' => '/srv/mediawiki/w/skins/chameleon/layouts/navhead.xml', ], // CheckUser 'wgCheckUserForceSummary' => [ 'default' => true, ], 'wgCheckUserEnableSpecialInvestigate' => [ 'default' => true, ], 'wgCheckUserLogLogins' => [ 'default' => true, ], 'wgCheckUserCAtoollink' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgCheckUserGBtoollink' => [ 'default' => [ 'centralDB' => 'metawiki', 'groups' => [ 'steward', ], ], 'betaheze' => [ 'centralDB' => 'betawiki', 'groups' => [ 'steward', ], ], ], 'wgCheckUserCAMultiLock' => [ 'default' => [ 'centralDB' => 'metawiki', 'groups' => [ 'steward', ], ], 'betaheze' => [ 'centralDB' => 'betawiki', 'groups' => [ 'steward', ], ], ], // Citizen 'wgCitizenThemeDefault' => [ 'default' => 'auto', ], 'wgCitizenEnableCollapsibleSections' => [ 'default' => true, ], 'wgCitizenPortalAttach' => [ 'default' => 'first', ], 'wgCitizenShowPageTools' => [ 'default' => 1, ], 'wgCitizenThemeColor' => [ 'default' => '#131a21', ], 'wgCitizenEnableSearch' => [ 'default' => true, ], 'wgCitizenSearchGateway' => [ 'default' => 'mwActionApi', ], 'wgCitizenSearchDescriptionSource' => [ 'default' => 'textextracts', ], 'wgCitizenMaxSearchResults' => [ 'default' => 6, ], // Comments 'wgCommentsDefaultAvatar' => [ 'default' => '/w/extensions/SocialProfile/avatars/default_ml.gif', ], 'wgCommentsInRecentChanges' => [ 'default' => false, ], 'wgCommentsSortDescending' => [ 'default' => false, ], // CommentStreams 'wgCommentStreamsEnableTalk' => [ 'default' => false, ], 'wgCommentStreamsEnableSearch' => [ 'default' => true, ], 'wgCommentStreamsNewestStreamsOnTop' => [ 'default' => false, ], 'wgCommentStreamsUserAvatarPropertyName' => [ 'default' => null, ], 'wgCommentStreamsEnableVoting' => [ 'default' => false, ], 'wgCommentStreamsModeratorFastDelete' => [ 'default' => false, ], // CommonsMetadata 'wgCommonsMetadataForceRecalculate' => [ 'default' => false, ], // ContactPage 'wmgContactPageRecipientUser' => [ 'default' => null, ], // Contribution Scores 'wgContribScoreDisableCache' => [ 'default' => true, ], 'wgContribScoreIgnoreBots' => [ 'default' => false, ], // Cookies 'wgCookieSameSite' => [ 'default' => 'None', ], 'wgUseSameSiteLegacyCookies' => [ 'default' => true, ], 'wgCookieSetOnAutoblock' => [ 'default' => true, ], 'wgCookieSetOnIpBlock' => [ 'default' => true, ], // Cosmos 'wgCosmosBackgroundImage' => [ 'default' => false, ], 'wgCosmosBackgroundImageFixed' => [ 'default' => true, ], 'wgCosmosBackgroundImageRepeat' => [ 'default' => false, ], 'wgCosmosBackgroundImageSize' => [ 'default' => 'cover', ], 'wgCosmosBannerBackgroundColor' => [ 'default' => '#c0c0c0', ], 'wgCosmosButtonBackgroundColor' => [ 'default' => '#c0c0c0', ], 'wgCosmosContentBackgroundColor' => [ 'default' => '#ffffff', ], 'wgCosmosContentWidth' => [ 'default' => 'default', ], 'wgCosmosContentOpacityLevel' => [ 'default' => 100, ], 'wgCosmosEnablePortableInfoboxEuropaTheme' => [ 'default' => true, ], 'wgCosmosEnabledRailModules' => [ 'default' => [ 'recentchanges' => 'normal', 'interface' => [ 'cosmos-custom-rail-module' => 'normal', 'cosmos-custom-sticky-rail-module' => 'sticky', ], ], ], 'wgCosmosEnableWantedPages' => [ 'default' => false, 'batmanwiki' => true, 'snapwikiwiki' => true, ], 'wgCosmosFooterBackgroundColor' => [ 'default' => '#c0c0c0', ], 'wgCosmosLinkColor' => [ 'default' => '#0645ad', ], 'wgCosmosMainBackgroundColor' => [ 'default' => '#1A1A1A', ], 'wgCosmosMaxSearchResults' => [ 'default' => 6, ], 'wgCosmosSearchDescriptionSource' => [ 'default' => 'textextracts', ], 'wgCosmosSearchUseActionAPI' => [ 'default' => true, ], 'wgCosmosSocialProfileAllowBio' => [ 'default' => true, ], 'wgCosmosSocialProfileFollowBioRedirects' => [ 'default' => false, ], 'wgCosmosSocialProfileModernTabs' => [ 'default' => true, ], 'wgCosmosSocialProfileNumberofGroupTags' => [ 'default' => 2, ], 'wgCosmosSocialProfileRoundAvatar' => [ 'default' => true, ], 'wgCosmosSocialProfileShowEditCount' => [ 'default' => true, ], 'wgCosmosSocialProfileShowGroupTags' => [ 'default' => true, ], 'wgCosmosSocialProfileTagGroups' => [ 'default' => [ 'bureaucrat', 'bot', 'sysop', 'interface-admin' ], ], 'wgCosmosToolbarBackgroundColor' => [ 'default' => '#000000', ], 'wgCosmosUseSocialProfileAvatar' => [ 'default' => true, ], 'wgCosmosWikiHeaderBackgroundColor' => [ 'default' => '#c0c0c0', ], 'wgCosmosWordmark' => [ 'default' => false, ], // CreateWiki 'wgCreateWikiDisallowedSubdomains' => [ 'default' => [ 'miraheze(.*)', 'betaheze(.*)', 'subdomain', 'example', 'beta(meta)?', 'prueba', 'community', 'testwiki', 'wikitest', 'help', 'noc', 'wc', 'm', 'sandbox', 'outreach', 'gazett?eer', 'semantic(mediawiki)?', 'smw', 'wikitech', 'wikis?', 'www', 'security', 'donate', 'blog', 'health', 'status', 'acme', 'ssl', 'sslhost', 'sslrequest', 'letsencrypt', 'deployment', 'hostmaster', 'wildcard', 'list', 'localhost', 'mailman', 'webmail', 'phabricator', 'static', 'grafana', 'icinga', 'csw(\d+)?', 'matomo(\d+)?', 'prometheus(\d+)?', 'misc\d+', 'db\d+', 'cp\d+', 'mw\d+', 'jobrunner\d+', 'gluster(fs)?(\d+)?', 'ns\d+', 'bacula\d+', 'mail(\d+)?', 'ldap(\d+)?', 'cloud\d+', 'mon\d+', - 'swift(fs)?(proxy)?(\d+)?', + 'swift(ac|fs|proxy)?(\d+)?', 'lizardfs\d+', 'elasticsearch(\d+)?', 'rdb\d+', 'phab(\d+)?', 'services\d+', 'puppet\d+', 'test\d+', 'dbbackup\d+', 'graylog(\d+)?', 'mem\d+', 'jobchron\d+', 'mwtask(\d+)?', 'es\d+', 'bast(ion)?(\d+)?', 'reports(\d+)?', ], ], 'wgCreateWikiCannedResponses' => [ 'default' => [ 'Approval reasons' => [ 'Perfect request' => 'Perfect. Clear purpose, scope, and topic. Please be advised this approval does not preclude other wikis from being approved and created that share this topic, provided they aren\'t 95-100% content forks of your wiki. Please ensure your wiki complies with all aspects of Content Policy at all times. Thank you.', 'Good request' => 'Pretty good. Purpose and description are a bit vague, but there is nonetheless a clear enough purpose, scope, and/or topic here. Please be advised this approval does not preclude other wikis from being approved and created that share this topic, provided they aren\'t 95-100% content forks of your wiki. Please ensure your wiki complies with all aspects of Content Policy at all times.', 'Okay request' => 'Okay-ish. Description doesn\'t meet our requirements, but in this case the sitename, URL, and categorisation suggest this is a wiki that would follow the Content Policy made clear by the preceding fields, and it is conditionally approved as such. Please be advised that if your wiki deviates too much from this approval, remedial action can be taken by a Steward, if necessary, and that this approval does not preclude approval of similar wikis sharing this likely topic. Please ensure your wiki complies with all aspects of Content Policy at all times. Thank you.', 'Categorised as private' => 'The purpose and scope of your wiki is clear enough. Please ensure your wiki complies with all aspects of the Content Policy at all times. Please also note that I have categorised your wiki as "Private". Thank you.', ], 'Decline reasons' => [ 'Needs more details' => 'Can you give us a few more details on the purpose for, scope of, and topic of your wiki, and briefly describe some of your wiki\'s content in approximately 2-3 sentences? Additionally can you elaborate on your wiki\'s scope and topical focus a bit further? A few sentences describing the scope of your wiki and the sort of content it will contain should be helpful. Please go back into your original request and add to, but do not replace, your existing description. Thank you.', 'Invalid or unclear subdomain' => 'The scope and purpose of the wiki seem clear enough. However, your requested subdomain is either invalid, is too generic, conveys a Miraheze affiliation, or suggests the wiki is an English language or multilingual wiki when it is not. Please change it to something that better reflects your wiki\'s purpose and scope. Thank you.', 'Use Public Test Wiki' => 'Please use Public Test Wiki, https://publictestwiki.com, to test the administrator and bureaucrat tools (as well as Miraheze since the wiki is hosted by us). You should review and follow all TestWiki:Policies, especially TestWiki:Testing policy and TestWiki:Main policy, reverting all tests you perform in the reverse order which you performed them. Request permissions at TestWiki:Request permissions. Thank you.', 'Excessive requests' => 'Declining as you have requested an excessive amount of wikis. Thank you for your understanding. If you believe you have legitimate need for this amount of wikis, please reply to this request with a 2-3 sentence reasoning on why you need the wikis.', 'Database exists (wiki still active)' => 'Wiki database name and subdomain already exist. Please visit the local wiki and contribute there. Please reach out to any local bureaucrat to request any permissions if you require them. If bureaucrats are not active on the wiki after a reasonable period of time, please start a local election and ask a Steward to evaluate it on the Stewards\' noticeboard. Thanks.', 'Database exists (wiki closed)' => 'Wiki database name already exists, but the wiki is closed. Please visit the requests for adoption page to request to reopen the wiki or ask for help on community noticeboard.', 'Database exists (wiki already deleted)' => 'Wiki database name already exists, but the wiki itself has already been deleted in accordance with the Dormancy Policy. I will request a Steward to undelete it for you. When it has been undeleted and reopened, please visit the local wiki and ensure you make at least one edit or log action every 45 days. Wikis are only deleted after 6 months of complete inactivity; if you require a Dormancy Policy exemption, you should review the policy and request it once your wiki has at least 40-60 content pages. Thank you.', 'Database exists (unrelated purpose)' => 'Wiki database name and subdomain already exist. The wiki does not however seem to have the same purpose as the one you are requesting here, so you should therefore request a wiki with another subdomain.', 'Duplicate request' => 'Declining as a duplicate request, which needs more information. Please do not edit this request and instead go back into your original request. Also, please do not submit duplicate requests. Thank you.', 'Content Policy (unsubstantiated insult)' => 'Declining per Content Policy provision, "Miraheze does not host wikis with the sole purpose to spread unsubstantiated insult, hate or rumours against a person or group of people." Thank you for understanding.', 'Content Policy (makes it difficult for other wikis)' => 'Declining per Content Policy provision, "A wiki must not create problems which make it difficult for other wikis." Thank you for understanding.', 'Content Policy (commercial activity)' => 'Declining per Content Policy provision, "The primary purpose of your wiki cannot be for commercial activity." Thank you for understanding. If in error, please edit this wiki request and articulate a clearer purpose and scope for your wiki that makes it clear how this wiki would not violate this criterion of Content Policy.', 'Content Policy (illegal UK activity)' => 'Declining per Content Policy provision, "Miraheze does not host any content that is illegal in the United Kingdom." Thank you for understanding. If you believe this decline reason was used incorrectly, please address this with the declining wiki creator on their user talk page first before escalating your concern to the Stewards\' noticeboard. Thank you.', 'Duplicate wiki' => 'Your proposed wiki appears to duplicate, either substantially or entirely, the content of an existing wiki (see the "Request Comments" tab for one or more link(s) to the existing wiki(s)). Could you please describe in a few more sentences by adding to, but not replacing, your existing description, the scope and focus for your wiki, and also assure us that your wiki will not be a complete or substantial duplication? Thank you.', 'Author request' => 'Declined at the request of the wiki requester.', ], 'On hold reasons' => [ 'On hold pending response' => 'On hold pending response from the wiki requester (see the "Request Comments" tab). Please reply to the questions left by the wiki creator on this request but do not create another wiki request. Thank you.', 'On hold pending review' => 'On hold pending review from another wiki creator or steward. Please do not resubmit this request.', ], ], ], 'wgCreateWikiCustomDomainPage' => [ 'default' => 'Special:MyLanguage/Custom_domains', ], 'wgCreateWikiDatabase' => [ 'default' => 'mhglobal', 'betaheze' => 'testglobal', ], 'wgCreateWikiDatabaseClusters' => [ 'default' => [ 'c2', 'c3', 'c4', 'c5', ], 'betaheze' => [ 'c4', ], ], // Use if you want to stop wikis being created on this cluster 'wgCreateWikiDatabaseClustersInactive' => [ 'default' => [ 'c1', ] ], 'wgCreateWikiDatabaseSuffix' => [ 'default' => 'wiki', 'betaheze' => 'wikibeta', ], 'wgCreateWikiGlobalWiki' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgCreateWikiEmailNotifications' => [ 'default' => true, ], 'wgCreateWikiNotificationEmail' => [ 'default' => 'sre@miraheze.org', ], 'wgCreateWikiPersistentModelFile' => [ 'default' => '/mnt/mediawiki-static/requestmodel.phpml' ], 'wgCreateWikiPurposes' => [ 'default' => [ 'Alternate history wiki' => 'Alternate history wiki', 'Class or group project education wiki' => 'Class or group project education wiki', 'Curriculum resource wiki' => 'Curriculum resource wiki', 'Documentation (hardware) wiki' => 'Documentation (hardware) wiki', 'Documentation (software) wiki' => 'Documentation (software) wiki', 'Encyclopedia (general) wiki' => 'Encyclopedia (general) wiki', 'Encyclopedia (specialized) wiki' => 'Encyclopedia (specialized) wiki', 'Eurovision-style song contest statistics tracking wiki' => 'Eurovision-style song contest statistics tracking wiki', 'Fictional worldbuilding/constructed world wiki' => 'Fictional worldbuilding/constructed world wiki', 'Minecraft server wiki' => 'Minecraft server wiki', 'Organization (coordination) wiki' => 'Organization (coordination) wiki', 'Political simulation wiki' => 'Political simulation wiki', 'Roleplaying game wiki' => 'Roleplaying game wiki', 'Video game (specified video game) information wiki' => 'Video game (specified video game) information wiki', 'Video game (broad genre or video game series) information wiki' => 'Video game (broad genre or video game series) information wiki', 'None of the above' => 'None of the above', ], ], 'wgCreateWikiShowBiographicalOption' => [ 'default' => true, ], 'wgCreateWikiSQLfiles' => [ 'default' => [ "$IP/maintenance/tables-generated.sql", "$IP/extensions/AbuseFilter/db_patches/mysql/abusefilter.sql", "$IP/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql", "$IP/extensions/BetaFeatures/sql/tables-generated.sql", "$IP/extensions/CheckUser/cu_log.sql", "$IP/extensions/CheckUser/cu_changes.sql", "$IP/extensions/DataDump/sql/data_dump.sql", "$IP/extensions/Echo/echo.sql", "$IP/extensions/GlobalBlocking/sql/mysql/tables-generated-global_block_whitelist.sql", "$IP/extensions/OAuth/schema/OAuth.sql", "$IP/extensions/RottenLinks/sql/rottenlinks.sql", "$IP/extensions/UrlShortener/schemas/tables-generated.sql", ], ], 'wgCreateWikiStateDays' => [ 'default' => [ 'inactive' => 45, 'closed' => 15, 'removed' => 120, 'deleted' => 14 ], ], 'wgCreateWikiCacheDirectory' => [ 'default' => '/srv/mediawiki/cache' ], 'wgCreateWikiCategories' => [ 'default' => [ 'Art & Architecture' => 'artarc', 'Automotive' => 'automotive', 'Business & Finance' => 'businessfinance', 'Community' => 'community', 'Education' => 'education', 'Electronics' => 'electronics', 'Entertainment' => 'entertainment', 'Fandom' => 'fandom', 'Fantasy' => 'fantasy', 'Gaming' => 'gaming', 'Geography' => 'geography', 'History' => 'history', 'Humour/Satire' => 'humour', 'Language/Linguistics' => 'langling', 'Leisure' => 'leisure', 'Literature/Writing' => 'literature', 'Media/Journalism' => 'media', 'Medicine/Medical' => 'medical', 'Military/War' => 'military', 'Music' => 'music', 'Podcast' => 'podcast', 'Politics' => 'politics', 'Private' => 'private', 'Religion' => 'religion', 'Science' => 'science', 'Software/Computing' => 'software', 'Song Contest' => 'songcontest', 'Sports' => 'sport', 'Uncategorised' => 'uncategorised', ], ], 'wgCreateWikiUseCategories' => [ 'default' => true, ], 'wgCreateWikiSubdomain' => [ 'default' => 'miraheze.org', 'betaheze' => 'betaheze.org', ], 'wgCreateWikiUseClosedWikis' => [ 'default' => true, ], 'wgCreateWikiUseCustomDomains' => [ 'default' => true, ], 'wgCreateWikiUseEchoNotifications' => [ 'default' => true, ], 'wgCreateWikiUseExperimental' => [ 'default' => true, ], 'wgCreateWikiUseInactiveWikis' => [ 'default' => true, ], 'wgCreateWikiUsePrivateWikis' => [ 'default' => true, ], 'wgCreateWikiUseJobQueue' => [ 'default' => true, 'betaheze' => false, ], // CookieWarning 'wgCookieWarningMoreUrl' => [ 'default' => 'https://meta.miraheze.org/wiki/Special:MyLanguage/Privacy_Policy#4._Cookies', ], 'wgCookieWarningEnabled' => [ 'default' => true, ], 'wgCookieWarningGeoIPLookup' => [ 'default' => 'php', ], 'wgCookieWarningGeoIp2' => [ 'default' => true, ], 'wgCookieWarningGeoIp2Path' => [ 'default' => '/srv/GeoLite2-City.mmdb', ], // Darkmode 'wgDarkModeTogglePosition' => [ 'default' => 'personal', ], // Database 'wgAllowSchemaUpdates' => [ 'default' => false, ], 'wgCompressRevisions' => [ 'default' => false, ], 'wgDBadminuser' => [ 'default' => 'wikiadmin', ], 'wgDBuser' => [ 'default' => 'mediawiki', ], 'wgReadOnly' => [ 'default' => false, ], 'wgSharedTables' => [ 'default' => [], ], 'wgActorTableSchemaMigrationStage' => [ // Remove with 1.39 'default' => SCHEMA_COMPAT_NEW, ], // Delete 'wgDeleteRevisionsLimit' => [ // databases don't have much memory // let's not overload them (T5287) 'default' => 1000, ], // DiscordNotifications 'wgDiscordAvatarUrl' => [ 'default' => '', ], 'wgDiscordIgnoreMinorEdits' => [ 'default' => false, ], 'wgDiscordIncludePageUrls' => [ 'default' => true, ], 'wgDiscordIncludeUserUrls' => [ 'default' => true, ], 'wgDiscordIncludeDiffSize' => [ 'default' => true, ], 'wgDiscordNotificationMovedArticle' => [ 'default' => true, ], 'wgDiscordNotificationFileUpload' => [ 'default' => true, ], 'wgDiscordNotificationProtectedArticle' => [ 'default' => true, ], 'wgDiscordNotificationAfterImportPage' => [ 'default' => true, ], 'wgDiscordNotificationShowSuppressed' => [ 'default' => false, ], 'wgDiscordNotificationWikiUrl' => [ 'default' => $wi->server . '/w/', ], 'wgDiscordNotificationBlockedUser' => [ 'default' => true, ], 'wgDiscordNotificationNewUser' => [ 'default' => true, ], 'wgDiscordAdditionalIncomingWebhookUrls' => [ 'default' => [], ], 'wgDiscordCurlProxy' => [ 'default' => 'http://bast.miraheze.org:8080', ], // Description2 'wgEnableMetaDescriptionFunctions' => [ 'ext-Description2' => true, ], // DismissableSiteNotice 'wgDismissableSiteNoticeForAnons' => [ 'default' => true, ], // Display Title 'wgDisplayTitleFollowRedirects' => [ 'default' => true, ], 'wgDisplayTitleHideSubtitle' => [ 'default' => false, ], // DJVU 'wgDjvuDump' => [ 'default' => '/usr/bin/djvudump', ], 'wgDjvuRenderer' => [ 'default' => '/usr/bin/ddjvu', ], 'wgDjvuTxt' => [ 'default' => '/usr/bin/djvutxt', ], // DynamicPageList 'wgDLPAllowUnlimitedCategories' => [ 'default' => false, ], 'wgDLPAllowUnlimitedResults' => [ 'default' => false, ], // Echo 'wgEchoCrossWikiNotifications' => [ 'default' => true, ], 'wgEchoUseJobQueue' => [ 'default' => true, ], 'wgEchoSharedTrackingCluster' => [ 'default' => 'echo', 'betaheze' => 'beta', ], 'wgEchoSharedTrackingDB' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgEchoUseCrossWikiBetaFeature' => [ 'default' => true, ], 'wgEchoMentionStatusNotifications' => [ 'default' => true, ], 'wgEchoMaxMentionsInEditSummary' => [ 'default' => 0, ], // Editing 'wgEditSubmitButtonLabelPublish' => [ 'default' => false, 'ysmwikiwiki' => true, ], // ElasticSearch 'wmgDisableSearchUpdate' => [ 'default' => false, ], 'wmgSearchType' => [ 'default' => false, ], 'wmgShowPopupsByDefault' => [ 'default' => false, ], 'wgWatchlistExpiry' => [ 'default' => false, ], // EmbedVideo 'wgEmbedVideoEnableVideoHandler' => [ 'default' => true, ], 'wgEmbedVideoRequireConsent' => [ 'default' => true, ], // Evelution 'wgEvelutionLeftPersonalLinks' => [ 'default' => false, ], 'wgEvelutionDisableColorManagement' => [ 'default' => false, ], 'wgEvelutionDisableRightRail' => [ 'default' => false, ], 'wgEvelutionServerMode' => [ 'default' => false, ], 'wgEvelutionStickyRail' => [ 'default' => true, ], 'wgEvelutionDisableRightRailFromSpecificPages' => [ 'default' => [], ], 'wgEvelutionMonoLogo' => [ 'default' => false, ], 'wgEvelutionChangeMessageBoxesToBanners' => [ 'default' => false, ], // External Data 'wgExternalDataSources' => [ /** * @note Databases should NEVER be configured here! * @see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:External_Data/Databases * * @note Programs should NEVER be configured here! * @see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:External_Data/Local_programs * * @note LDAP should NEVER be configured here! * @see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:External_Data/LDAP * * @note If configuring local files here, please be mindful of how it is done to avoid security implications. * @see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:External_Data/Local_files * * @note SOAP should NEVER be configured here, unless you understand it and can confirm the security of it is acceptable. */ 'ext-ExternalData' => [ '*' => [ 'min cache seconds' => 3600, 'always use stale cache' => false, 'throttle key' => '$2nd_lvl_domain$', 'throttle interval' => 0, 'replacements' => [], 'allowed urls' => [], 'options' => [ 'timeout' => 'default', ], 'encodings' => [ 'ASCII', 'UTF-8', 'Windows-1251', 'Windows-1252', 'Windows-1254', 'KOI8-R', 'ISO-8859-1', ], 'params' => [], 'param filters' => [], 'verbose' => true, ], ], ], // HTTP 'wgHTTPConnectTimeout' => [ 'default' => 3.0, ], 'wgHTTPTimeout' => [ 'default' => 20, ], 'wgHTTPProxy' => [ 'default' => 'http://bast.miraheze.org:8080', ], // FlaggedRevs 'wgFlaggedRevsProtection' => [ 'default' => false, ], 'wgFlaggedRevsOverride' => [ 'default' => true, ], 'wgFlaggedRevsTags' => [ 'default' => [ 'accuracy' => [ 'levels' => 3, 'quality' => 2, 'pristine' => 4, ], ], 'infectopedwiki' => [ 'accuracy' => [ 'levels' => 4, ], ], 'isvwiki' => [ 'status' => [ 'levels' => 1, ], ], ], 'wgFlaggedRevsTagsRestrictions' => [ 'default' => [ 'accuracy' => [ 'review' => 1, 'autoreview' => 1, ], ], ], 'wgFlaggedRevsTagsAuto' => [ 'default' => [ 'accuracy' => 1, ], ], 'wgFlaggedRevsAutopromote' => [ 'default' => false, ], 'wgFlaggedRevsAutoReview' => [ 'default' => 3, ], 'wgFlaggedRevsRestrictionLevels' => [ 'default' => [ 'sysop', ], ], 'wgSimpleFlaggedRevsUI' => [ 'default' => true, ], 'wgFlaggedRevsLowProfile' => [ 'default' => true, ], // Footers '+wgFooterIcons' => [ 'default' => [ 'poweredby' => [ 'miraheze' => [ 'src' => "https://$wmgUploadHostname/commonswiki/f/ff/Powered_by_Miraheze.svg", 'url' => 'https://meta.miraheze.org/wiki/Special:MyLanguage/Miraheze', 'alt' => 'Hosted by Miraheze' ] ] ] ], 'wmgWikiapiaryFooterPageName' => [ 'default' => '', ], 'wgMaxCredits' => [ 'default' => 0, ], 'wgShowCreditsIfMax' => [ 'default' => true, ], // Files 'wgEnableUploads' => [ 'default' => true, ], 'wgMaxUploadSize' => [ /** T3797 - 250MB */ 'default' => 1024 * 1024 * 250, /** T9673 - 10MB */ 'dragdownwiki' => 1024 * 1024 * 10, ], 'wgAllowCopyUploads' => [ 'default' => false, ], 'wgCopyUploadsFromSpecialUpload' => [ 'default' => false, ], 'wgCopyUploadProxy' => [ 'default' => 'http://bast.miraheze.org:8080', ], 'wgFileExtensions' => [ 'default' => [ 'djvu', 'gif', 'ico', 'jpg', 'jpeg', 'ogg', 'pdf', 'png', 'svg', 'webp', ], ], 'wgUseQuickInstantCommons' => [ 'default' => true, ], 'wgQuickInstantCommonsPrefetchMaxLimit' => [ 'default' => 500, ], 'wgMaxImageArea' => [ 'default' => '1.25e7', ], 'wgMaxAnimatedGifArea' => [ 'default' => '1.25e7', ], 'wgMirahezeCommons' => [ 'default' => true, ], // Only the board and SRE are allowed access // DO NOT ADD UNAUTHORISED USERS 'wgMirahezeStaffAccessIds' => [ 'default' => [ /** John (SRE) */ 1, /** Reception123 (SRE) */ 19, /** Void (SRE and Board) */ 5258, /** Paladox (SRE) */ 13554, /** Owen (Board) */ 73651, /** Universal Omega (SRE and Board) */ 96304, /** Agent Isai (SRE) */ 2639, /** MacFan4000 (SRE) */ 6758, ], ], 'wgMirahezeSurveyEnabled' => [ 'default' => false, ], 'wgEnableImageWhitelist' => [ 'default' => false, ], 'wgShowArchiveThumbnails' => [ 'default' => true, ], 'wgVerifyMimeType' => [ 'default' => true, ], 'wgSVGMetadataCutoff' => [ 'default' => 262144, ], 'wgSVGConverter' => [ 'default' => 'ImageMagick', ], 'wgUploadMissingFileUrl' => [ 'default' => false, ], 'wgUploadNavigationUrl' => [ 'default' => false, ], // Gallery Options 'wgGalleryOptions' => [ 'default' => [ 'imagesPerRow' => 0, 'imageWidth' => 120, 'imageHeight' => 120, 'captionLength' => true, 'showBytes' => true, 'showDimensions' => true, 'mode' => 'traditional', ], 'dcmultiversewiki' => [ 'imagesPerRow' => 0, 'imageWidth' => 120, 'imageHeight' => 120, 'captionLength' => true, 'showBytes' => true, 'showDimensions' => true, 'mode' => 'packed', ], 'theboyswiki' => [ 'imagesPerRow' => 0, 'imageWidth' => 120, 'imageHeight' => 120, 'captionLength' => true, 'showBytes' => true, 'showDimensions' => true, 'mode' => 'packed', ], ], // GeoData 'wgGlobes' => [ 'default' => [], 'gratisdatawiki' => [ 'earth', 'mercury', 'venus', 'moon', 'mars', 'phobos', 'deimos', 'ganymede', 'callisto', 'io', 'europa', 'mimas', 'enceladus', 'tethys', 'dione', 'rhea', 'titan', 'hyperion', 'iapetus', 'phoebe', 'miranda', 'ariel', 'umbriel', 'titania', 'oberon', 'triton', 'pluto', ], ], // GlobalBlocking 'wgApplyGlobalBlocks' => [ 'default' => true, 'metawiki' => false, ], 'wgGlobalBlockingDatabase' => [ 'default' => 'mhglobal', 'betaheze' => 'testglobal', ], // GlobalCssJs 'wgGlobalCssJsConfig' => [ 'default' => [ 'wiki' => 'metawiki', 'source' => 'metawiki', ], 'betaheze' => [ 'wiki' => 'betawiki', 'source' => 'betawiki', ], ], '+wgResourceLoaderSources' => [ 'default' => [ 'metawiki' => [ 'apiScript' => '//meta.miraheze.org/w/api.php', 'loadScript' => '//meta.miraheze.org/w/load.php', ], ], 'betaheze' => [ 'betawiki' => [ 'apiScript' => '//beta.betaheze.org/w/api.php', 'loadScript' => '//beta.betaheze.org/w/load.php', ], ], ], 'wgUseGlobalSiteCssJs' => [ 'default' => false, ], // GlobalPreferences 'wgGlobalPreferencesDB' => [ 'default' => 'mhglobal', 'betaheze' => 'testglobal', ], // GlobalUsage 'wgGlobalUsageDatabase' => [ 'default' => 'commonswiki', 'tuscriaturaswiki' => 'intercriaturaswiki', 'yourcreatureswiki' => 'intercriaturaswiki', 'intercriaturaswiki' => 'intercriaturaswiki', ], // GlobalUserPage 'wgGlobalUserPageAPIUrl' => [ 'default' => 'https://login.miraheze.org/w/api.php', 'betaheze' => 'https://beta.betaheze.org/w/api.php', ], 'wgGlobalUserPageDBname' => [ 'default' => 'loginwiki', 'betaheze' => 'betawiki', ], // Grant Permissions for BotPasswords and OAuth '+wgGrantPermissions' => [ 'default' => [ 'basic' => [ 'user' => true, ], ], '+althistorywiki' => [ 'editprotected' => [ 'editrollbackprotected' => true, 'edittemplateprotected' => true, 'editrestrictedtemplateprotected' => true, 'editimportprotected' => true, ], 'import' => [ 'import' => true, 'importupload' => true, ], ], '+simulatorwiki' => [ 'editprotected' => [ 'editfragment' => true, 'edittemplate' => true, ], 'import' => [ 'import' => true, 'importupload' => true, ], ], ], '+wgGrantPermissionGroups' => [ 'default' => [], 'althistorywiki' => [ 'import' => 'administration', ], 'simulatorwiki' => [ 'import' => 'administration', ], ], // GrowthExperiments 'wgWelcomeSurveyEnabled' => [ 'default' => false, ], // HAWelcome 'wgHAWelcomeWelcomeUsername' => [ 'default' => 'HAWelcome', ], 'wgHAWelcomeStaffGroupName' => [ 'default' => 'sysop', ], 'wgHAWelcomeSignatureFromPreferences' => [ 'default' => false, ], // HasSomeColours 'wgHasSomeColoursColourOne' => [ 'default' => '#555', ], 'wgHasSomeColoursColourTwo' => [ 'default' => '#d77', ], // HeaderTabs 'wgHeaderTabsRenderSingleTab' => [ 'default' => false, ], 'wgHeaderTabsDisableDefaultToc' => [ 'default' => true, ], 'wgHeaderTabsGenerateTabTocs' => [ 'default' => false, ], 'wgHeaderTabsEditTabLink' => [ 'default' => true, ], // HideSection 'wgHideSectionImages' => [ 'default' => false, ], // HighlightLinks 'wgHighlightLinksInCategory' => [ 'default' => [], 'allthetropeswiki' => [ 'Trope' => 'trope', 'YMMV_Trope' => 'ymmv', ], 'vgportdbwiki' => [ 'Games_Lacking_Information_Online' => 'obscure', 'Incomplete_Pages' => 'incomplete', ], ], // ImageMagick 'wgUseImageMagick' => [ 'default' => true, ], 'wgImageMagickConvertCommand' => [ 'default' => '/usr/local/bin/mediawiki-firejail-convert', ], // Image Limits 'wgImageLimits' => [ 'default' => [ [ 320, 240 ], [ 640, 480 ], [ 800, 600 ], [ 1024, 768 ], [ 1280, 1024 ], [ 2560, 2048 ], [ 2560, 2048 ], ], 'dmlwikiwiki' => [ [ 320, 240 ], [ 640, 480 ], [ 800, 800 ], ], ], // IncidentReporting 'wgIncidentReportingDatabase' => [ 'default' => 'incidents', 'betaheze' => 'testglobal', ], 'wgIncidentReportingServices' => [ 'default' => [ 'Bacula' => 'https://meta.miraheze.org/wiki/Tech:Bacula', 'Bastion' => 'https://meta.miraheze.org/wiki/Tech:Bastion', 'ElasticSearch' => 'https://meta.miraheze.org/wiki/Tech:ElasticSearch', 'DNS' => 'https://meta.miraheze.org/wiki/Tech:DNS', 'Ganglia' => 'https://meta.miraheze.org/wiki/Tech:Ganglia', 'Grafana' => 'https://meta.miraheze.org/wiki/Tech:Grafana', 'Icinga' => 'https://meta.miraheze.org/wiki/Tech:Icinga', 'LizardFS' => 'https://meta.miraheze.org/wiki/Tech:Lizardfs', 'Mail' => 'https://meta.miraheze.org/wiki/Tech:Mail', 'MariaDB' => 'https://meta.miraheze.org/wiki/Tech:MariaDB', 'Matomo' => 'https://meta.miraheze.org/wiki/Tech:Matomo', 'MediaWiki' => 'https://meta.miraheze.org/wiki/Tech:MediaWiki_appserver', 'Memcached' => 'https://meta.miraheze.org/wiki/Tech:Memcached', 'NFS' => 'https://meta.miraheze.org/wiki/Tech:NFS', 'NGINX' => 'https://meta.miraheze.org/wiki/Tech:Nginx', 'Parsoid' => 'https://meta.miraheze.org/wiki/Tech:Parsoid', 'Phabricator' => 'https://meta.miraheze.org/wiki/Tech:Phabricator', 'Puppet Server' => 'https://meta.miraheze.org/wiki/Tech:Puppet', 'Redis' => 'https://meta.miraheze.org/wiki/Tech:Redis', 'Salt' => 'https://meta.miraheze.org/wiki/Tech:Salt', 'Service Providers' => false, 'Varnish' => 'https://meta.miraheze.org/wiki/Tech:Varnish', ], ], 'wgIncidentReportingTaskUrl' => [ 'default' => 'https://phabricator.miraheze.org/', ], // Interwiki 'wgEnableScaryTranscluding' => [ 'default' => true, ], 'wgInterwikiCentralDB' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgExtraInterlanguageLinkPrefixes' => [ 'default' => [ 'simple', ], '+commonswiki' => [ 'wikimediacommons', 'w', 'eswiki', 'wikispecies', ], '+isvwiki' => [ 'd', ], '+nonciclopediawiki' => [ 'dlm', 'olb', 'tlh', 'zombie', ], ], 'wgExtraLanguageNames' => [ 'default' => [], 'gpcommonswiki' => [ 'qqq' => 'Message documentation', 'pcm' => 'Naijá', ], 'gratisdatawiki' => [ 'qqq' => 'Message documentation', 'pcm' => 'Naijá', ], 'isvwiki' => [ 'isv' => 'Medžuslovjansky / Меджусловјанскы', ], 'wikibenwiki' => [ 'bw' => 'Benwegul', ], ], // InterwikiSorting 'wgInterwikiSortingSort' => [ 'ext-InterwikiSorting' => 'code', ], // ImportDump 'wgImportDumpCentralWiki' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], 'wgImportDumpInterwikiMap' => [ 'default' => [ 'fandom.com' => 'wikia', 'miraheze.org' => 'mh', ], ], 'wgImportDumpScriptCommand' => [ 'default' => 'screen -d -m bash -c "mwscript importDump.php {wiki} -y --no-updates --username-prefix={username-prefix} {file}; mwscript rebuildall.php {wiki} -y; mwscript initSiteStats.php {wiki} --active --update -y"', ], 'wgImportDumpUsersNotifiedOnAllRequests' => [ 'default' => [ 'Reception123', 'Universal Omega', ], ], // Imports 'wgImportSources' => [ 'default' => [ 'meta', 'loginwiki', 'mw', 'templatewiki', 'wikipedia', 'metawikimedia', ], '+althistorywiki' => [ 'wikimediacommons', ], '+batfamilywiki' => [ 'batmanwiki', 'batmanwikifandom', 'd', ], '+batmanwiki' => [ 'batfamilywiki', 'batmanwikifandom', 'd', ], '+bnwikiwiki' => [ 'wikipedia' => [ 'bn', 'en', ], ], '+celebswiki' => [ 'simplewiki', ], '+incubatorwiki' => [ 'wmincubator', 'wikiaincubatorplus', ], '+loginwiki' => [ 'testwikiwiki', ], '+mrjaroslavikwiki' => [ 'wikipedia' => [ 'cs', 'en', ], ], '+mymensinghwiki' => [ 'bnwikiwiki', 'wikipedia' => [ 'bn', 'en', ], ], '+polandballstaffwiki' => [ 'polandballwiki', 'polandballwikisongcontestwiki', 'polcomwiki', ], '+polcomwiki' => [ 'c', 'polandballwiki', 'polandballwikisongcontestwiki', ], '+redminwiki' => [ 'scratchwiki', 'snapwiki', ], '+reviwiki' => [ 'wikipedia' => [ 'en', 'ko' ], ], '+sesupportwiki' => [ 'mrjaroslavikwiki', ], '+securipediawiki' => [ 'pv', ], '+snapdatawiki' => [ 'd', 'snapwiki', 'wikimediacommons', ], '+snapwikiwiki' => [ 'scratchwiki', 'd', ], '+wikitrashwiki' => [ 'wikipedia' => [ 'it', ], ], '+yahyawiki' => [ 'wikipedia' => [ 'bn', 'en', ], ], '+zealandiawiki' => [ 'wikia' => [ 'adoriasim', 'zealandian-republic', 'zealandia-polsim', 'zealandia-2', 'zealandian-legal-archives', 'zealandia-mapping', ], ], '+zhwpwikiwiki' => [ 'zhwp', ], '+zhdelwiki' => [ 'zhwikipedia', ], ], // JavascriptSlideshow 'wgHtml5' => [ 'ext-JavascriptSlideshow' => true, ], // JsonConfig 'wgJsonConfigEnableLuaSupport' => [ 'default' => true, ], 'wgJsonConfigInterwikiPrefix' => [ 'default' => 'commons', 'commonswiki' => 'meta', ], 'wgJsonConfigModels' => [ 'default' => [ 'Map.JsonConfig' => JsonConfig\JCMapDataContent::class, 'Tabular.JsonConfig' => JsonConfig\JCTabularContent::class, ], ], // Kartographer 'wgKartographerDfltStyle' => [ 'default' => '.', ], 'wgKartographerEnableMapFrame' => [ 'default' => true, ], 'wgKartographerMapServer' => [ 'default' => 'https://tile.openstreetmap.org', ], 'wgKartographerSrcsetScales' => [ 'default' => false, ], 'wgKartographerStaticMapframe' => [ 'default' => false, ], 'wgKartographerStyles' => [ 'default' => [], ], 'wgKartographerUseMarkerStyle' => [ 'default' => false, ], 'wgKartographerWikivoyageMode' => [ 'default' => false, ], // Language 'wgLanguageCode' => [ 'default' => 'en', ], // LDAP 'wgLDAPDomainNames' => [ 'ldapwikiwiki' => [ 'miraheze', ], ], 'wgLDAPServerNames' => [ 'ldapwikiwiki' => [ 'miraheze' => 'ldap.miraheze.org', ], ], 'wgLDAPEncryptionType' => [ 'ldapwikiwiki' => [ 'miraheze' => 'ssl', ], ], 'wgLDAPSearchAttributes' => [ 'ldapwikiwiki' => [ 'miraheze' => 'uid', ], ], 'wgLDAPBaseDNs' => [ 'ldapwikiwiki' => [ 'miraheze' => 'dc=miraheze,dc=org', ], ], 'wgLDAPUserBaseDNs' => [ 'ldapwikiwiki' => [ 'miraheze' => 'ou=people,dc=miraheze,dc=org', ], ], 'wgLDAPProxyAgent' => [ 'ldapwikiwiki' => [ 'miraheze' => 'cn=write-user,dc=miraheze,dc=org', ], ], 'wgLDAPProxyAgentPassword' => [ 'ldapwikiwiki' => [ 'miraheze' => $wmgLdapPassword, ], ], 'wgLDAPWriterDN' => [ 'ldapwikiwiki' => [ 'miraheze' => 'cn=write-user,dc=miraheze,dc=org', ], ], 'wgLDAPWriterPassword' => [ 'ldapwikiwiki' => [ 'miraheze' => $wmgLdapPassword, ], ], 'wgLDAPWriteLocation' => [ 'ldapwikiwiki' => [ 'miraheze' => 'ou=people,dc=miraheze,dc=org', ], ], 'wgLDAPAddLDAPUsers' => [ 'ldapwikiwiki' => [ 'miraheze' => true, ], ], 'wgLDAPUpdateLDAP' => [ 'ldapwikiwiki' => [ 'miraheze' => true, ], ], 'wgLDAPPasswordHash' => [ 'ldapwikiwiki' => [ 'miraheze' => 'ssha', ], ], 'wgLDAPPreferences' => [ 'ldapwikiwiki' => [ 'miraheze' => [ 'email' => 'mail', 'realname' => 'givenName', ], ], ], 'wgLDAPUseFetchedUsername' => [ 'ldapwikiwiki' => [ 'miraheze' => true, ], ], 'wgLDAPLowerCaseUsernameScheme' => [ 'ldapwikiwiki' => [ 'miraheze' => false, 'invaliddomain' => false, ], ], 'wgLDAPLowerCaseUsername' => [ 'ldapwikiwiki' => [ 'miraheze' => false, 'invaliddomain' => false, ], ], 'wgLDAPOptions' => [ 'ldapwikiwiki' => [ 'miraheze' => [ 'LDAP_OPT_X_TLS_CACERTFILE' => '/etc/ssl/certs/Sectigo.crt', ], ], ], 'wgLDAPDebug' => [ 'ldapwikiwiki' => 1, ], // License 'wgRightsIcon' => [ 'constantnoblewiki' => 'https://upload.wikimedia.org/wikipedia/commons/2/29/Freeculturalworks-pdbutton.svg', 'jadtechwiki' => "https://$wmgUploadHostname/jadtechwiki/d/d8/CopyrightIcon.png", 'quyranesswiki' => "https://$wmgUploadHostname/quyranesswiki/0/03/Copyright.svg.png", 'revitwiki' => "https://$wmgUploadHostname/revitwiki/d/d8/All_Rights_Reserved.png", 'spnatiwiki' => 'https://upload.wikimedia.org/wikipedia/commons/f/f8/License_icon-mit-88x31-2.svg', ], 'wgRightsPage' => [ 'default' => '', 'constantnoblewiki' => 'Constant Noble:No rights reserved', 'diavwiki' => 'Project:Copyrights', 'dmlwikiwiki' => 'MediaWiki:Copyright', 'quyranesswiki' => 'Project:Copyrights', ], 'wgRightsText' => [ 'connorjwatwiki' => 'Creative Commons Attribution-ShareAlike 2.5 Generic (CC BY-SA 2.5)', 'constantnoblewiki' => 'CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', 'exlinkwikiwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'googologywiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'incubatorwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'isvwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'jadtechwiki' => 'Copyright © Jak and Daxter Technical Wiki. All rights reserved.', 'militarywiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'privadowiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'quyranesswiki' => '©2021 TheBurningPrincess (All Rights Reserved)', 'rctwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'revitwiki' => '©2013-2022 by Lionel J. Camara (All Rights Reserved)', 'reviwiki' => 'Creative Commons Attribution Share Alike', 'sekatetwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'spnatiwiki' => 'Copyright (c) 2015 The SPNATI Contributors', 'tlhmupaqwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'tlhwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'wikidemocracywiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'wikilexiconwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', 'worldtrainwikiwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)', ], 'wgRightsUrl' => [ 'connorjwatwiki' => 'https://creativecommons.org/licenses/by-sa/2.5', 'constantnoblewiki' => 'https://creativecommons.org/publicdomain/zero/1.0/', 'exlinkwikiwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'googologywiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'incubatorwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'isvwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'jadtechwiki' => 'https://jadtech.miraheze.org/wiki/MediaWiki:Copyright', 'militarywiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'privadowiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'quyranesswiki' => 'https://quyraness.miraheze.org/wiki/MediaWiki:Copyright', 'rctwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'revitwiki' => 'https://revit.miraheze.org/wiki/MediaWiki:Copyright', 'reviwiki' => 'https://creativecommons.org/licenses/by-sa/2.0/kr', 'sekatetwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'spnatiwiki' => 'https://gitgud.io/spnati/spnati/-/blob/master/LICENSE', 'tlhmupaqwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'tlhwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'wikidemocracywiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'wikilexiconwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', 'worldtrainwikiwiki' => 'https://creativecommons.org/licenses/by-sa/3.0', ], 'wmgWikiLicense' => [ 'default' => 'cc-by-sa', ], // Links? '+wgUrlProtocols' => [ 'default' => [], // file protocol only allowed on private wikis 'gzewiki' => [ 'file://' ], 'vtwiki' => [ 'discord://' ], ], // LinkTitles 'wgLinkTitlesFirstOnly' => [ 'default' => true, 'simulatorwiki' => false, ], 'wgLinkTitlesParseOnEdit' => [ 'default' => true, 'simulatorwiki' => false, ], 'wgLinkTitlesSameNamespace' => [ 'default' => true, 'simulatorwiki' => false, ], 'wgLinkTitlesSourceNamespaces' => [ 'default' => [], 'simulatorwiki' => [ NS_MAIN, 3000, ], ], 'wgLinkTitlesTargetNamespaces' => [ 'default' => [], 'simulatorwiki' => [ NS_MAIN, ], ], // LiliPond 'wgScoreLilyPond' => [ 'default' => '/dev/null', ], 'wgScoreDisableExec' => [ 'default' => true, ], // Linter 'wgLinterSubmitterWhitelist' => [ 'ext-Linter' => [ /** localhost */ '::1' => true, /** mw121 */ '2a10:6740::6:308' => true, /** mw122 */ '2a10:6740::6:309' => true, /** mw131 */ '2a10:6740::6:403' => true, /** mw132 */ '2a10:6740::6:404' => true, /** mw141 */ '2a10:6740::6:502' => true, /** mw142 */ '2a10:6740::6:503' => true, /** mwtask141 */ '2a10:6740::6:504' => true, /** test131 */ '2a10:6740::6:406' => true, ], ], // Loops 'egLoopsCountLimit' => [ // DO NOT RAISE FOR ANY WIKI -- Universal Omega 'default' => 100, ], // Mail 'wgEnableEmail' => [ 'default' => true, ], 'wgSMTP' => [ 'default' => [ 'host' => 'mail.miraheze.org', 'port' => 25, 'IDHost' => 'miraheze.org', 'auth' => true, 'username' => 'noreply', 'password' => $wmgSMTPPassword, ], ], 'wgEnotifWatchlist' => [ 'default' => true, ], 'wgUserEmailUseReplyTo' => [ 'default' => true, ], 'wgEmailConfirmToEdit' => [ 'default' => false, ], 'wgEmergencyContact' => [ 'default' => 'noreply@miraheze.org', ], 'wgAllowHTMLEmail' => [ 'default' => true, ], // ManageWiki 'wgManageWiki' => [ 'default' => [ 'core' => true, 'extensions' => true, 'namespaces' => true, 'permissions' => true, 'settings' => true ], ], 'wgManageWikiExtensionsDefault' => [ 'default' => [ 'categorytree', 'cite', 'citethispage', 'darkmode', 'globaluserpage', 'minervaneue', 'mobilefrontend', 'purge', 'syntaxhighlight_geshi', 'textextracts', 'urlshortener', 'wikiseo', ], ], 'wgManageWikiPermissionsAdditionalAddGroups' => [ 'default' => [], 'sesupportwiki' => [ 'sysop' => [ 'editor', ], ], ], 'wgManageWikiPermissionsAdditionalRights' => [ 'default' => [ '*' => [ 'autocreateaccount' => true, 'read' => true, 'oathauth-enable' => true, 'viewmyprivateinfo' => true, 'editmyoptions' => true, 'editmyprivateinfo' => true, 'editmywatchlist' => true, 'writeapi' => true, ], 'checkuser' => [ 'checkuser' => true, 'checkuser-log' => true, 'abusefilter-privatedetails' => true, 'abusefilter-privatedetails-log' => true, ], 'interwiki-admin' => [ 'interwiki' => true ], 'oversight' => [ 'abusefilter-hidden-log' => true, 'abusefilter-hide-log' => true, 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'deletelogentry' => true, 'deleterevision' => true, 'hideuser' => true, 'suppressionlog' => true, 'suppressrevision' => true, ], 'steward' => [ 'userrights' => true, ], 'user' => [ 'mwoauthmanagemygrants' => true, 'user' => true, ], ], '+allpediawiki' => [ 'extendedconfirmed' => [ 'editextendedconfirmedprotected' => true, ], ], '+autocountwiki' => [ 'authors' => [ 'torunblocked' => true, 'read' => true, ], ], '+betawiki' => [ 'bureaucrat' => [ 'createwiki' => true, 'managewiki-editdefault' => true, 'managewiki-restricted' => true, 'requestwiki' => true, 'globalgroupmembership' => true, 'globalgrouppermissions' => true, ], ], '+bitcoindebateswiki' => [ 'emailconfirmed' => [ 'read' => true, ], ], '+cmgwiki' => [ 'gst' => [ 'read' => true, ], ], '+famedatawiki' => [ 'extendedconfirmed' => [ 'editextendedconfirmedprotected' => true, ], 'templateeditor' => [ 'edittemplateprotected' => true, ], ], '+famepediawiki' => [ 'extendedconfirmed' => [ 'editextendedconfirmedprotected' => true, ], 'templateeditor' => [ 'edittemplateprotected' => true, ], ], '+famepediatechwiki' => [ 'wikistaff' => [ 'editwikistaffprotected' => true, ], ], '+hypopediawiki' => [ 'bureaucrat' => [ 'bureaucrat' => true, ], 'extendedconfirmed' => [ 'editextendedconfirmedprotected' => true, ], ], '+igrovyesistemywiki' => [ 'autopatrolled' => [ 'trusted' => true, ], 'autoreview' => [ 'trusted' => true, ], 'bot' => [ 'trusted' => true, ], 'editor' => [ 'trusted' => true, ], 'reviewer' => [ 'trusted' => true, ], 'co' => [ 'co' => true, 'ceo' => true, 'trusted' => true, ], 'bureaucrat' => [ 'bureaucrat' => true, 'trusted' => true, ], 'sysmag' => [ 'sysmag' => true, 'trusted' => true, ], 'sysop' => [ 'trusted' => true, ], 'ceo' => [ 'bureaucrat' => true, 'sysmag' => true, 'trusted' => true, ], 'UserType1' => [ 'UserType1' => true, ], 'UserType2' => [ 'UserType2' => true, ], 'UserType3' => [ 'UserType3' => true, ], 'UserType4' => [ 'UserType4' => true, ], 'UserType5' => [ 'UserType5' => true, ], 'UserType6' => [ 'UserType6' => true, ], 'UserType7' => [ 'UserType7' => true, ], ], '+ldapwikiwiki' => [ 'sysop' => [ 'managewiki-restricted' => true, ], ], '+memeswiki' => [ 'extendedconfirmed' => [ 'editextendedconfirmedprotected' => true, ], 'templateeditor' => [ 'edittemplateprotected' => true, ], ], '+metawiki' => [ 'confirmed' => [ 'mwoauthproposeconsumer' => true, 'mwoauthupdateownconsumer' => true, ], 'globalsysop' => [ 'abusefilter-modify-global' => true, 'centralauth-lock' => true, 'globalblock' => true, ], 'proxybot' => [ 'globalblock' => true, 'centralauth-lock' => true, ], 'requestwikiblocked' => [ 'read' => true, ], 'steward' => [ 'abusefilter-modify-global' => true, 'centralauth-lock' => true, 'centralauth-suppress' => true, 'centralauth-rename' => true, 'centralauth-unmerge' => true, 'createwiki' => true, 'globalblock' => true, 'managewiki' => true, 'managewiki-restricted' => true, 'noratelimit' => true, 'userrights' => true, 'userrights-interwiki' => true, 'globalgroupmembership' => true, 'globalgrouppermissions' => true, ], 'sysadmin' => [ 'globalgroupmembership' => true, 'globalgrouppermissions' => true, 'handle-import-dump-interwiki' => true, 'handle-import-dump-requests' => true, 'oathauth-verify-user' => true, 'oathauth-disable-for-user' => true, 'view-private-import-dump-requests' => true, ], 'trustandsafety' => [ 'userrights' => true, 'globalblock' => true, 'globalgroupmembership' => true, 'globalgrouppermissions' => true, 'userrights-interwiki' => true, 'centralauth-lock' => true, 'centralauth-rename' => true, 'handle-pii' => true, 'oathauth-disable-for-user' => true, 'oathauth-verify-user' => true, 'view-private-import-dump-requests' => true, ], 'sysop' => [ 'interwiki' => true, ], 'user' => [ 'request-import-dump' => true, 'requestwiki' => true, ], 'wikicreator' => [ 'createwiki' => true, ], ], '+moviepediawiki' => [ 'bureaucrat' => [ 'bureaucrat' => true, ], 'founder' => [ 'founder' => true, ], ], '+naasgamelandwiki' => [ 'bot' => [ 'editarchiveprotected' => true, ], 'cocreator' => [ 'editarchiveprotected' => true, 'editofficialprotected' => true, ], ], '+nenawikiwiki' => [ 'editor' => [ 'edit-content-pages' => true, 'edit-talkpage' => true, ], 'emailconfirmed' => [ 'read' => true, ], 'nenamembers' => [ 'edit-talkpage' => true, ], 'sysop' => [ 'edit-admin-pages' => true, ], ], '+nicolopediawiki' => [ 'templateeditor' => [ 'edittemplateprotected' => true, ], ], '+sesupportwiki' => [ 'editor' => [ 'editor' => true, ], 'sysop' => [ 'editor' => true, ], ], '+vnenderbotwiki' => [ 'templateeditor' => [ 'template' => true, ], 'extendedconfirmed' => [ 'extendedconfirmed' => true, ], 'Owner' => [ 'template' => true, 'extendedconfirmed' => true, 'owner' => true, ], ], '+whentheycrywiki' => [ 'user' => [ 'edit-create' => true, ], ], '+ext-Flow' => [ 'oversight' => [ 'flow-suppress' => true, ], ], ], 'wgManageWikiPermissionsAdditionalRemoveGroups' => [ 'default' => [], 'sesupportwiki' => [ 'sysop' => [ 'editor', ], ], ], 'wgManageWikiPermissionsDisallowedRights' => [ 'default' => [ 'any' => [ 'abusefilter-hide-log', 'abusefilter-hidden-log', 'abusefilter-modify-global', 'abusefilter-private', 'abusefilter-private-log', 'abusefilter-privatedetails', 'abusefilter-privatedetails-log', 'aft-oversighter', 'autocreateaccount', 'bigdelete', 'centralauth-createlocal', 'centralauth-lock', 'centralauth-suppress', 'centralauth-rename', 'centralauth-unmerge', 'checkuser', 'checkuser-log', 'createwiki', 'editincidents', 'editothersprofiles-private', 'flow-suppress', 'generate-random-hash', 'globalblock', 'globalblock-exempt', 'globalgroupmembership', 'globalgrouppermissions', 'handle-import-dump-interwiki', 'handle-import-dump-requests', 'handle-pii', 'hideuser', 'interwiki', 'investigate', 'managewiki-restricted', 'managewiki-editdefault', 'moderation-checkuser', 'mwoauthmanageconsumer', 'mwoauthmanagemygrants', 'mwoauthsuppress', 'mwoauthviewprivate', 'mwoauthviewsuppressed', 'oathauth-api-all', 'oathauth-enable', 'oathauth-disable-for-user', 'oathauth-verify-user', 'oathauth-view-log', 'renameuser', 'request-import-dump', 'requestwiki', 'siteadmin', 'smw-admin', 'smw-patternedit', 'smw-viewjobqueuewatchlist', 'stopforumspam', 'suppressionlog', 'suppressrevision', 'themedesigner', 'titleblacklistlog', 'updatepoints', 'userrights', 'userrights-interwiki', 'view-private-import-dump-requests', 'viewglobalprivatefiles', 'viewpmlog', 'viewsuppressed', 'writeapi', ], '*' => [ 'read', 'skipcaptcha', 'torunblocked', 'centralauth-merge', 'generate-dump', 'editsitecss', 'editsitejson', 'editsitejs', 'editusercss', 'edituserjson', 'edituserjs', 'editmyoptions', 'editmyprivateinfo', 'editmywatchlist', 'globalblock-whitelist', 'ipblock-exempt', 'viewmyprivateinfo', 'viewmywatchlist', 'managewiki', ], ], ], 'wgManageWikiPermissionsDisallowedGroups' => [ 'default' => [ 'checkuser', 'smwadministrator', 'oversight', 'steward', 'staff', 'interwiki-admin', 'sysadmin', 'trustandsafety', ], ], 'wgManageWikiPermissionsDefaultPrivateGroup' => [ 'default' => 'member', ], 'wgManageWikiHelpUrl' => [ 'default' => '//meta.miraheze.org/wiki/Special:MyLanguage/ManageWiki', ], 'wgManageWikiForceSidebarLinks' => [ 'default' => false, ], // Maps 'egMapsDefaultService' => [ 'ext-Maps' => 'leaflet', ], 'egMapsDisableSmwIntegration' => [ 'ext-Maps' => true, ], // MassMessage 'wgAllowGlobalMessaging' => [ 'default' => false, 'metawiki' => true, 'betawiki' => true, ], // MatomoAnalytics 'wgMatomoAnalyticsDatabase' => [ 'default' => 'mhglobal', 'betaheze' => 'testglobal', ], 'wgMatomoAnalyticsServerURL' => [ 'default' => 'https://matomo.miraheze.org/', ], 'wgMatomoAnalyticsUseDB' => [ 'default' => true, ], 'wgMatomoAnalyticsSiteID' => [ 'default' => 8590, ], 'wgMatomoAnalyticsGlobalID' => [ 'default' => 8590, ], 'wgMatomoAnalyticsDisableCookie' => [ 'default' => true, ], // MediaWikiChat settings 'wgChatLinkUsernames' => [ 'default' => false, ], 'wgChatMeCommand' => [ 'default' => false, ], // Medik settings 'wgMedikColor' => [ 'default' => '#FFBE00', ], 'wgMedikContentWidth' => [ 'default' => 'default', ], 'wgMedikLogoWidth' => [ 'default' => 'default', ], 'wgMedikResponsive' => [ 'default' => true, ], 'wgMedikShowLogo' => [ 'default' => 'none', ], 'wgMedikUseLogoWithoutText' => [ 'default' => false, ], // Metrolook settings 'wgMetrolookDownArrow' => [ 'default' => true, ], 'wgMetrolookUploadButton' => [ 'default' => true, ], 'wgMetrolookBartile' => [ 'default' => true, ], 'wgMetrolookMobile' => [ 'default' => true, ], 'wgMetrolookUseIconWatch' => [ 'default' => true, ], 'wgMetrolookLine' => [ 'default' => true, ], 'wgMetrolookFeatures' => [ 'default' => [ 'collapsiblenav' => [ 'global' => false, 'user' => true ] ], 'thegreatwarwiki' => [ 'collapsiblenav' => [ 'global' => true, 'user' => true ] ], ], // MinervaNeue 'wgMinervaEnableSiteNotice' => [ 'default' => true, ], 'wgMinervaApplyKnownTemplateHacks' => [ 'default' => true, 'isvwiki' => false, 'mcspringfieldserverwiki' => false, ], 'wgMinervaAlwaysShowLanguageButton' => [ 'default' => true, ], 'wgMinervaTalkAtTop' => [ 'default' => [ 'base' => false, 'beta' => false, 'loggedin' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'loggedin' => true, ], ], 'wgMinervaHistoryInPageActions' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMinervaAdvancedMainMenu' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMinervaPersonalMenu' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMinervaOverflowInPageActions' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMinervaShowCategories' => [ 'default' => [ 'base' => false, 'loggedin' => false, 'amc' => true, ], 'criticalrolewiki' => [ 'base' => true, 'loggedin' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'loggedin' => true, 'amc' => true, ], ], // Miscellaneous 'wgAllowDisplayTitle' => [ 'default' => true, ], 'wgRestrictDisplayTitle' => [ 'default' => true, 'ext-NoTitle' => false, ], 'wgCapitalLinks' => [ 'default' => true, ], 'wgActiveUserDays' => [ 'default' => 30, ], 'wgEnableCanonicalServerLink' => [ 'default' => false, ], 'wgPageCreationLog' => [ 'default' => true, ], 'wgRCWatchCategoryMembership' => [ 'default' => false, ], 'wgExpensiveParserFunctionLimit' => [ 'default' => 99, ], 'wgAllowSlowParserFunctions' => [ 'default' => false, ], 'wgExternalLinkTarget' => [ 'default' => false, ], 'wgGitInfoCacheDirectory' => [ 'default' => '/srv/mediawiki/cache/gitinfo', ], 'wgAllowExternalImages' => [ 'default' => false, ], 'wgFragmentMode' => [ 'default' => [ 'html5', 'legacy' ], ], 'wgTrustedMediaFormats' => [ 'default' => [ MEDIATYPE_BITMAP, MEDIATYPE_AUDIO, MEDIATYPE_VIDEO, 'image/svg+xml', 'application/pdf', ], '+polytopewiki' => [ MEDIATYPE_TEXT, ], '+ext-3d' => [ 'application/sla', ], ], 'wgNativeImageLazyLoading' => [ 'default' => false, ], 'wgShellRestrictionMethod' => [ 'default' => 'firejail', ], 'wgCrossSiteAJAXdomains' => [ 'default' => [ 'login.miraheze.org', 'meta.miraheze.org', ], 'betaheze' => [ 'beta.betaheze.org', ], '+gratisdatawiki' => [ 'gratispaideia.miraheze.org', ], ], 'wgTidyConfig' => [ 'default' => [ 'driver' => 'RemexHtml', 'pwrap' => false, ], ], 'wgWhitelistRead' => [ 'default' => [], ], 'wgDisabledVariants' => [ 'default' => [], 'hkrailwiki' => [ 'zh', 'zh-hant', 'zh-hans', ], ], 'wgDefaultLanguageVariant' => [ 'default' => false, 'hkrailwiki' => 'zh-hk', ], // MobileFrontend 'wgMFAutodetectMobileView' => [ 'default' => false, ], 'wgDefaultMobileSkin' => [ 'default' => 'minerva', ], 'wgMobileUrlTemplate' => [ 'default' => '', ], 'wgMFMobileHeader' => [ 'ext-MobileFrontend' => 'X-Subdomain', ], 'wgMFRemovableClasses' => [ 'default' => [ 'beta' => [], 'base' => [ '.navbox', '.vertical-navbox', '.nomobile', ], ], 'mcspringfieldserverwiki' => [ 'base' => [ '.nomobile', ], ], ], 'wgMFNoindexPages' => [ 'ext-MobileFrontend' => false, ], 'wgMFUseDesktopSpecialHistoryPage' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMFUseDesktopSpecialWatchlistPage' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMFUseDesktopContributionsPage' => [ 'default' => [ 'base' => false, 'beta' => false, 'amc' => true, ], 'isvwiki' => [ 'base' => true, 'beta' => true, 'amc' => true, ], ], 'wgMFQueryPropModules' => [ 'default' => [ 'pageprops', ], 'gratisdatawiki' => [ 'entityterms', ], ], 'wgMFSearchAPIParams' => [ 'default' => [ 'ppprop' => 'displaytitle', ], 'famedatawiki' => [ 'wbetterms' => 'label', ], 'gratisdatawiki' => [ 'wbetterms' => 'label', ], ], 'wgMFSearchGenerator' => [ 'default' => [ 'name' => 'prefixsearch', 'prefix' => 'ps', ], 'famedatawiki' => [ 'name' => 'wbsearch', 'prefix' => 'wbs', ], 'gratisdatawiki' => [ 'name' => 'wbsearch', 'prefix' => 'wbs', ], ], 'wgMFEnableWikidataDescriptions' => [ 'default' => [ 'base' => false, 'beta' => true, ], 'gratispaideiawiki' => [ 'base' => true, 'beta' => true, ], ], 'wgMFDisplayWikibaseDescriptions' => [ 'default' => [ 'search' => false, 'nearby' => false, 'watchlist' => false, 'tagline' => false, ], 'famedatawiki' => [ 'search' => true, 'nearby' => false, 'watchlist' => true, 'tagline' => false, ], 'gratispaideiawiki' => [ 'search' => true, 'nearby' => false, 'watchlist' => true, 'tagline' => false, ], 'gratisdatawiki' => [ 'search' => true, 'nearby' => false, 'watchlist' => true, 'tagline' => false, ], ], // Moderation extension settings // Enable or disable notifications. 'wgModerationNotificationEnable' => [ 'default' => false, 'obeymewiki' => true, ], // Notify administrator only about new pages requests. 'wgModerationNotificationNewOnly' => [ 'default' => false, ], // Email to send notifications to. 'wgModerationEmail' => [ 'default' => $wgPasswordSender, ], 'wgModerationPreviewLink' => [ 'default' => false, ], 'wgModerationEnableEditChange' => [ 'default' => false, ], 'wgModerationOnlyInNamespaces' => [ 'default' => [], 'simulatorwiki' => [ 3000, ], 'talenteddeviantswiki' => [ NS_MAIN, NS_FILE ], ], // MsCatSelect vars 'wgMSCS_WarnNoCategories' => [ 'default' => true, ], // MsUpload settings 'wgMSU_useDragDrop' => [ 'default' => true, ], 'wgMSU_showAutoCat' => [ 'default' => false, ], 'wgMSU_checkAutoCat' => [ 'default' => false, ], 'wgMSU_confirmReplace' => [ 'default' => false, ], // MultimediaViewer (not beta) 'wgMediaViewerEnableByDefault' => [ 'default' => true, ], // Math 'wgMathoidCli' => [ 'default' => [ '/srv/mathoid/src/cli.js', '-c', '/etc/mathoid/config.yaml' ] ], 'wgMathValidModes' => [ 'default' => [ 'mathml' ], ], // MultiBoilerplate 'wgMultiBoilerplateDisplaySpecialPage' => [ 'vgportdbwiki' => true, 'ext-MultiBoilerplate' => false, ], 'wgMultiBoilerplateOptions' => [ 'ext-MultiBoilerplate' => false, ], 'wgMultiBoilerplateOverwrite' => [ 'vgportdbwiki' => true, 'ext-MultiBoilerplate' => false, ], // NamespacePreload 'wgNamespacePreloadDoExpansion' => [ 'default' => true, ], // New User Email Notification 'wgNewUserNotifEmailTargets' => [ 'default' => [], ], // NewUserMessage configs 'wgNewUserMessageOnAutoCreate' => [ 'default' => false, 'nmfwikiwiki' => true, ], // nofollow links 'wgNoFollowLinks' => [ 'default' => true, ], 'wgNoFollowNsExceptions' => [ 'default' => [], ], // Users Notified On All Changes 'wgUsersNotifiedOnAllChanges' => [ 'default' => [], ], // OATHAuth 'wgOATHAuthDatabase' => [ 'default' => 'mhglobal', 'ldapwikiwiki' => 'ldapwikiwiki', 'betaheze' => 'testglobal', ], 'wgOATHExclusiveRights' => [ 'default' => [ 'abusefilter-privatedetails', 'abusefilter-privatedetails-log', 'centralauth-lock', 'centralauth-rename', 'centralauth-suppress', 'checkuser', 'checkuser-log', 'globalblock', 'globalgrouppermissions', 'globalgroupmembership', 'suppressionlog', 'suppressrevision', 'userrights', 'userrights-interwiki', ], '+metawiki' => [ 'edituserjs', 'editsitejs', ], ], 'wgOATHRequiredForGroups' => [ 'default' => [ 'checkuser', 'oversight', 'steward', ], '+metawiki' => [ 'globalsysop', ], ], // OAuth 'wgMWOAuthCentralWiki' => [ 'default' => 'metawiki', 'ldapwikiwiki' => false, 'betaheze' => 'betawiki', ], 'wgOAuth2GrantExpirationInterval' => [ 'default' => 'PT4H', ], 'wgOAuth2RefreshTokenTTL' => [ 'default' => 'P365D', ], 'wgMWOAuthSharedUserSource' => [ 'default' => 'CentralAuth', ], 'wgMWOAuthSecureTokenTransfer' => [ 'default' => true, ], 'wgOAuth2PublicKey' => [ 'default' => '/srv/mediawiki/config/OAuth2.key.pub', ], 'wgOAuth2PrivateKey' => [ 'default' => '/srv/mediawiki/config/OAuth2.key', ], // Page Images 'wgPageImagesNamespaces' => [ 'default' => [ NS_MAIN, ], 'gpcommonswiki' => [ NS_MAIN, NS_CATEGORY, ], 'vgportdbwiki' => [ NS_MAIN, 3000, 3004, 3006, ], ], 'wgPageImagesDenylist' => [ 'ext-PageImages' => [ [ 'type' => 'db', 'page' => 'MediaWiki:Pageimages-denylist', 'db' => false, ], ], ], 'wgPageImagesExpandOpenSearchXml' => [ 'default' => false, 'gratispaideiawiki' => true, 'gratisdatawiki' => true, 'gpcommonswiki' => true, ], // Pagelang 'wgPageLanguageUseDB' => [ 'default' => false, ], // PageForms 'wgPageFormsRenameEditTabs' => [ 'default' => false, ], 'wgPageFormsRenameMainEditTab' => [ 'default' => false, ], 'wgPageFormsSimpleUpload' => [ 'default' => false, ], 'wgPageFormsLinkAllRedLinksToForms' => [ 'default' => false, ], // Page Size 'wgMaxArticleSize' => [ 'default' => 2048, ], // ParserFunctions 'wgPFEnableStringFunctions' => [ 'default' => false, ], // Parsoid 'wgParsoidSettings' => [ 'default' => [ 'useSelser' => true, ], '+ext-Linter' => [ 'linting' => true, ], ], // PdfHandler 'wgPdfProcessor' => [ 'default' => '/usr/local/bin/mediawiki-firejail-ghostscript', ], 'wgPdfPostProcessor' => [ 'default' => '/usr/local/bin/mediawiki-firejail-convert', ], // Permissions 'wgGroupsAddToSelf' => [ 'default' => [], ], 'wgGroupsRemoveFromSelf' => [ 'default' => [], ], '+wgRevokePermissions' => [ 'default' => [], '+metawiki' => [ 'requestwikiblocked' => [ 'requestwiki' => true, ], ], '+simulatorwiki' => [ 'moderated' => [ 'skip-moderation' => true, ], ], '+ext-MediaWikiChat' => [ 'blockedfromchat' => [ 'chat' => true, ], ], ], 'wgImplicitGroups' => [ 'default' => [ '*', 'user', 'autoconfirmed' ], ], // Password policy 'wgPasswordPolicy' => [ 'default' => [ 'policies' => [ 'default' => [ 'MinimalPasswordLength' => [ 'value' => 6, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'bot' => [ 'MinimalPasswordLength' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 6, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'sysop' => [ 'MinimalPasswordLength' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 6, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'bureaucrat' => [ 'MinimalPasswordLength' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 6, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], ], 'checks' => [ 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength', 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin', 'PasswordCannotBeSubstringInUsername' => 'PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername', 'PasswordCannotMatchDefaults' => 'PasswordPolicyChecks::checkPasswordCannotMatchDefaults', 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength', 'PasswordNotInCommonList' => 'PasswordPolicyChecks::checkPasswordNotInCommonList', ], ], ], 'wgCentralAuthGlobalPasswordPolicies' => [ 'default' => [ 'globalsysop' => [ 'MinimalPasswordLength' => [ 'value' => 12, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'interwiki-admin' => [ 'MinimalPasswordLength' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 6, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'steward' => [ 'MinimalPasswordLength' => [ 'value' => 12, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'sysadmin' => [ 'MinimalPasswordLength' => [ 'value' => 12, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], 'trustandsafety' => [ 'MinimalPasswordLength' => [ 'value' => 12, 'suggestChangeOnLogin' => true ], 'MinimumPasswordLengthToLogin' => [ 'value' => 8, 'suggestChangeOnLogin' => true ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ], ], ], ], // Popups 'wgPopupsHideOptInOnPreferencesPage' => [ 'default' => false, ], 'wgPopupsOptInDefaultState' => [ 'default' => 0, ], // PortableInfobox 'wgPortableInfoboxResponsiblyOpenCollapsed' => [ 'default' => true, ], // Preferences '+wgDefaultUserOptions' => [ 'default' => [ 'enotifwatchlistpages' => 0, 'math' => 'mathml', 'usebetatoolbar' => 1, 'usebetatoolbar-cgd' => 1, ], '+crashspyrowiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+criticalrolewiki' => [ 'thumbsize' => 3, ], '+crocwiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+dcmultiversewiki' => [ 'usecodemirror' => 1, 'visualeditor-newwikitext' => 1, 'usebetatoolbar' => 0, 'usebetatoolbar-cgd' => 0, 'visualeditor-enable-experimental' => 1, ], '+dmlwikiwiki' => [ 'imagesize' => 2, ], '+donkeykongwiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+dragonquest2wiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+finalfantasywiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+isvwiki' => [ 'flow-topiclist-sortby' => 'newest', 'usecodemirror' => 1, ], '+kirbywiki' => [ 'thumbsize' => 3, ], '+mariowiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+metroidwiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+nintendowiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+pokemon2wiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+rarewiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+reviwiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, ], '+segawiki' => [ 'usenewrc' => 0, 'rcenhancedfilters-disable' => 1, 'thumbsize' => 3, ], '+smashbroswiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+solarawiki' => [ 'usecodemirror' => 1, ], '+squareenixwiki' => [ 'rcenhancedfilters-disable' => 1, 'usenewrc' => 0, 'thumbsize' => 3, ], '+ext-CleanChanges' => [ 'usenewrc' => 1, ], ], // Preloader 'wgPreloaderSource' => [ 'default' => [ 0 => 'Template:Boilerplate', ], ], // ProofreadPage 'wgProofreadPageNamespaceIds' => [ 'ext-ProofreadPage' => [ 'index' => 252, 'page' => 250, ], ], // PropertySuggester 'wgPropertySuggesterDeprecatedIds' => [ 'default' => [], ], 'wgPropertySuggesterClassifyingPropertyIds' => [ 'default' => [], ], 'wgPropertySuggesterInitialSuggestions' => [ 'default' => [], ], 'wgPropertySuggesterMinProbability' => [ 'default' => 0.05, ], // RateLimits '+wgRateLimits' => [ 'default' => [], 'metawiki' => [ 'requestwiki' => [ 'user' => [ 1, 3600 ], ], ], ], // RatePage 'wgRPRatingPageBlacklist' => [ 'default' => [], ], 'wgRPAddSidebarSection' => [ 'default' => true, ], 'wgRPSidebarPosition' => [ 'default' => 2, ], 'wgRPShowResultsBeforeVoting' => [ 'default' => false, ], 'wgRPUseMMVModule' => [ 'default' => true, ], // RecentChanges 'wgFeedLimit' => [ 'default' => 50, ], 'wgRCMaxAge' => [ 'default' => 180 * 24 * 3600, ], 'wgRCLinkDays' => [ 'default' => [ 1, 3, 7, 14, 30 ], ], 'wgRCLinkLimits' => [ 'default' => [ 50, 100, 250, 500 ], ], 'wgUseRCPatrol' => [ 'default' => true, ], // RelatedArticles 'wgRelatedArticlesFooterAllowedSkins' => [ 'default' => [ 'minerva', 'timeless', 'vector', 'vector-2022', ], ], 'wgRelatedArticlesUseCirrusSearch' => [ 'ext-RelatedArticles' => false, ], 'wgRelatedArticlesCardLimit' => [ 'default' => 3, ], 'wgRelatedArticlesDescriptionSource' => [ 'default' => false, ], // RemovePII 'wgRemovePIIAllowedWikis' => [ 'default' => [ 'metawiki', 'betawiki', ], ], 'wgRemovePIIAutoPrefix' => [ 'default' => 'MirahezeGDPR_', ], 'wgRemovePIIDPAValidationEndpoint' => [ 'default' => 'https://reports.miraheze.org/api/dpa/{dpa_id}/{username}', ], 'wgRemovePIIHashPrefixOptions' => [ 'default' => [ 'Trust and Safety' => 'MirahezeGDPR_', 'Stewards' => 'Vanished user ', ], ], 'wgRemovePIIHashPrefix' => [ 'default' => 'MirahezeGDPR_', ], // ReplaceText 'wgReplaceTextResultsLimit' => [ 'default' => 250, ], // Restriction types 'wgRestrictionLevels' => [ 'default' => [ '', 'user', 'autoconfirmed', 'sysop' ], '+allpediawiki' => [ 'editextendedconfirmedprotected', ], '+althistorywiki' => [ 'editrollbackprotected', 'edittemplateprotected', 'editrestrictedtemplateprotected', 'editimportprotected', ], '+bigforestwiki' => [ 'editvoter', ], '+celebswiki' => [ 'editmoduleprotected', 'edittemplateprotected', 'editfounderprotected', ], '+cmgwiki' => [ 'bureaucrat', 'sysop', 'pm', 'member', ], '+collegecitoyenwiki' => [ 'editextendedsemiprotected', ], '+devwiki' => [ 'editinterface', ], '+famedatawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], '+famepediawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], '+famepediatechwiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', 'editwikistaffprotected', ], '+gratispaideiawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], '+hypopediawiki' => [ 'bureaucrat', 'editextendedconfirmedprotected', ], '+igrovyesistemywiki' => [ 'trusted', 'sysmag', 'bureaucrat', 'ceo', 'co', ], '+knightnwiki' => [ 'editextendedsemiprotected', ], '+lhmnwiki' => [ 'editqualityarticles', 'editextendedconfirmedprotected', ], '+memeswiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], '+moviepediawiki' => [ 'bureaucrat', 'founder', ], '+naasgamelandwiki' => [ 'editarchiveprotected', 'editofficialprotected', ], '+nicolopediawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], '+sesupportwiki' => [ 'editor', ], '+simulatorwiki' => [ 'edittemplate', ], '+testwiki' => [ 'bureaucrat', 'consul', ], '+theredpionnerwiki' => [ 'extendedconfirmed', 'templateeditor', ], '+vnenderbotwiki' => [ 'template', 'extendedconfirmed', 'owner', ], '+ysmwikiwiki' => [ 'editextendedconfirmedprotected', ], '+ext-AuthorProtect' => [ 'author', ], ], 'wgRestrictionTypes' => [ 'default' => [ 'create', 'edit', 'move', 'upload', ], ], // Rights '+wgAvailableRights' => [ 'default' => [], 'allpediawiki' => [ 'editextendedconfirmedprotected', ], 'althistorywiki' => [ 'editrollbackprotected', 'edittemplateprotected', 'editrestrictedtemplateprotected', 'editimportprotected', ], 'celebswiki' => [ 'editmoduleprotected', 'edittemplateprotected', 'editfounderprotected', ], 'collegecitoyenwiki' => [ 'editextendedsemiprotected', ], 'famedatawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], 'famepediawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], 'famepediatechwiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', 'editwikistaffprotected', ], 'gratispaideiawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], 'hypopediawiki' => [ 'editextendedconfirmedprotected', ], 'knightnwiki' => [ 'editextendedsemiprotected', ], 'lhmnwiki' => [ 'editqualityarticles', 'editextendedconfirmedprotected', ], 'memeswiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], 'naasgamelandwiki' => [ 'editarchiveprotected', 'editofficialprotected', ], 'nicolopediawiki' => [ 'editextendedconfirmedprotected', 'edittemplateprotected', ], 'pokemonarowiki' => [ 'unrestricted_edit', ], 'simulatorwiki' => [ 'editfragment', 'edittemplate', ], 'testwiki' => [ 'bureaucrat', 'consul', ], 'theredpionnerwiki' => [ 'extendedconfirmed', 'templateeditor', ], 'ysmwikiwiki' => [ 'editextendedconfirmedprotected', ], '+ext-SocialProfile' => [ 'updatepoints', ], ], // RightFunctions 'wgRightFunctionsUserGroups' => [ 'default' => [ '*', 'user', 'autoconfirmed', 'sysop', 'bureaucrat', ], '+quoteunquotecampaignwiki' => [ 'remi', 'melon', 'ink', 'jaden', 'thursday', 'kyle', 'voyd', 'sami', ], ], // RottenLinks 'wgRottenLinksCurlTimeout' => [ 'default' => 10, ], 'wgRottenLinksExcludeWebsites' => [ 'default' => [ 'localhost', '127.0.0.1', ], '+snapwikiwiki' => [ 'smerge.imp.fu-berlin.de', 'www.hinkler.com.au', ], ], // Robot policy 'wgDefaultRobotPolicy' => [ 'default' => 'index,follow', ], 'wgNamespaceRobotPolicies' => [ 'default' => [ NS_SPECIAL => 'noindex', ], ], // Referrer Policy 'wgReferrerPolicy' => [ 'default' => [ 'origin-when-cross-origin', 'origin' ], ], // RSS Settings 'wgRSSCacheAge' => [ 'default' => 3600, ], 'wgRSSProxy' => [ 'default' => 'http://bast.miraheze.org:8080', ], 'wgRSSDateDefaultFormat' => [ 'default' => 'Y-m-d H:i:s' ], 'wgRSSUrlWhitelist' => [ 'ext-RSSfeed' => [ '*', ], ], // ScratchBlocks 'wgScratchBlocks4BlockVersion' => [ 'default' => 3, ], // Scribunto 'wgCodeEditorEnableCore' => [ 'default' => true, ], 'wgScribuntoDefaultEngine' => [ 'default' => 'luasandbox', ], 'wgScribuntoUseCodeEditor' => [ 'default' => true, ], 'wgScribuntoSlowFunctionThreshold' => [ 'default' => 0.99, ], // Server 'wgArticlePath' => [ 'default' => '/wiki/$1', ], 'wgDisableOutputCompression' => [ 'default' => true, ], 'wgScriptPath' => [ 'default' => '/w', ], 'wgShowHostnames' => [ 'default' => true, ], 'wgThumbPath' => [ 'default' => '/w/thumb_handler.php' ], 'wgUsePathInfo' => [ 'default' => true, ], // SimpleChanges 'wgSimpleChangesOnlyContentNamespaces' => [ 'default' => false, ], 'wgSimpleChangesOnlyLatest' => [ 'default' => true, ], 'wgSimpleChangesShowUser' => [ 'default' => false, ], // Share 'wgShareEmail' => [ 'default' => false, ], 'wgShareFacebook' => [ 'default' => true, ], 'wgShareLinkedIn' => [ 'default' => false, ], 'wgShareReddit' => [ 'default' => false, ], 'wgShareTumblr' => [ 'default' => false, ], 'wgShareTwitter' => [ 'default' => true, ], 'wgShareUseBasicButtons' => [ 'default' => false, ], 'wgShareUsePlainLinks' => [ 'default' => true, ], // Site notice opt out 'wmgSiteNoticeOptOut' => [ 'default' => false, ], // Skins 'wgSkipSkins' => [ 'default' => [], ], // SlackNotifications 'wgSlackFromName' => [ 'default' => $wi->sitename, ], 'wgSlackNotificationWikiUrlEnding' => [ 'default' => 'index.php?title=', ], 'wgSlackNotificationWikiUrl' => [ 'default' => $wi->server . '/w/', ], 'wgSlackShowNewUserEmail' => [ 'default' => false, ], 'wgSlackShowNewUserIP' => [ 'default' => false, ], 'wgSlackIncomingWebhookUrl' => [ 'default' => '', ], // Snap! skin 'wgSnapwikiskinWvuiSearchOptions' => [ 'default' => [ 'showThumbnail' => false, 'showDescription' => false, ], 'snapwikiwiki' => [ 'showThumbnail' => true, 'showDescription' => false, ], ], // SocialProfile 'wgUserBoard' => [ 'default' => false, ], 'wgUserProfileThresholds' => [ 'default' => [ 'edits' => 0, ], 'allthetropeswiki' => [ 'edits' => 10, ], ], 'wgUserProfileDisplay' => [ 'default' => [ 'activity' => false, 'articles' => true, 'avatar' => true, 'awards' => true, 'board' => false, 'custom' => true, 'foes' => false, 'friends' => false, 'games' => false, 'gifts' => true, 'interests' => true, 'personal' => true, 'profile' => true, 'stats' => false, 'userboxes' => false, ], ], 'wgUserStatsPointValues' => [ 'default' => [ 'edit' => 50, 'vote' => 0, 'comment' => 0, 'comment_plus' => 0, 'comment_ignored' => 0, 'opinions_created' => 0, 'opinions_pub' => 0, 'referral_complete' => 0, 'friend' => 0, 'foe' => 0, 'gift_rec' => 0, 'gift_sent' => 0, 'points_winner_weekly' => 0, 'points_winner_monthly' => 0, 'user_image' => 1000, 'poll_vote' => 0, 'quiz_points' => 0, 'quiz_created' => 0, ], ], 'wgFriendingEnabled' => [ 'default' => true, ], 'wgUserPageChoice' => [ 'default' => true, ], // Statistics 'wgArticleCountMethod' => [ 'default' => 'link', ], // StopForumSpam // Download from https://www.stopforumspam.com/downloads (recommended listed_ip_30_all.zip) // for ipv4 + ipv6 combined. // TODO: Setup cron to update this automatically. 'wgSFSIPListLocation' => [ 'default' => '/mnt/mediawiki-static/private/stopforumspam/listed_ip_30_ipv46_all.txt', ], // Styling 'wgAllowUserCss' => [ 'default' => true, ], 'wgAllowUserJs' => [ 'default' => true, ], 'wgAppleTouchIcon' => [ 'default' => '/apple-touch-icon.png', ], 'wgCentralAuthLoginIcon' => [ 'default' => '/srv/mediawiki/favicons/default.ico', ], 'wgDefaultSkin' => [ 'default' => 'vector-2022', ], 'wgFallbackSkin' => [ 'default' => 'vector-2022', ], 'wgFavicon' => [ 'default' => '/favicon.ico', ], 'wgLogo' => [ 'default' => "https://$wmgUploadHostname/metawiki/3/35/Miraheze_Logo.svg", ], 'wgIcon' => [ 'default' => false, ], 'wgWordmark' => [ 'default' => false, ], 'wgWordmarkHeight' => [ 'default' => 18, ], 'wgWordmarkWidth' => [ 'default' => 116, ], 'wgMaxTocLevel' => [ 'default' => 999, ], // TabberNeue 'wgTabberNeueEnableMD5Hash' => [ 'default' => true, ], // TemplateStyles 'wgTemplateStylesAllowedUrls' => [ 'default' => [ 'audio' => [ '<^(?:https:)?//upload\\.wikimedia\\.org/wikipedia/commons/>', '<^(?:https:)?//static\\.miraheze\\.org/>', ], 'image' => [ '<^(?:https:)?//upload\\.wikimedia\\.org/wikipedia/commons/>', '<^(?:https:)?//static\\.miraheze\\.org/>', ], 'svg' => [ '<^(?:https:)?//upload\\.wikimedia\\.org/wikipedia/commons/[^?#]*\\.svg(?:[?#]|$)>', '<^(?:https:)?//static\\.miraheze\\.org/[^?#]*\\.svg(?:[?#]|$)>', ], 'font' => [], 'namespace' => [ '<.>', ], 'css' => [], ], ], // TextExtracts 'wgExtractsRemoveClasses' => [ 'default' => [ 'table', 'div', 'script', 'input', 'style', 'ul.gallery', '.mw-editsection', 'sup.reference', 'ol.references', '.error', '.nomobile', '.noprint', '.noexcerpt', '.sortkey', ], '+gratispaideiawiki' => [ '.metadata', 'span.coordinates', 'span.geo-multi-punct', 'span.geo-nondefault', '#coordinates', ], ], // TimedMediaHandler 'wgOggThumbLocation' => [ 'default' => false, ], 'wgTmhEnableMp4Uploads' => [ 'default' => false, ], // Timeless 'wgTimelessBackdropImage' => [ 'default' => 'cat.svg', ], 'wgTimelessLogo' => [ 'default' => null, ], 'wgTimelessWordmark' => [ 'default' => null, ], // Timeline 'wgTimelineFontDirectory' => [ 'default' => '/usr/share/fonts/truetype/freefont', ], // Time 'wgLocaltimezone' => [ 'default' => 'UTC', ], 'wgAmericanDates' => [ 'default' => false, ], // Theme 'wgDefaultTheme' => [ 'default' => '', ], // TitleBlacklist 'wgTitleBlacklistSources' => [ 'default' => [ 'global' => [ 'type' => 'url', 'src' => 'https://meta.miraheze.org/w/index.php?title=Title_blacklist&action=raw', ], 'local' => [ 'type' => 'localpage', 'src' => 'MediaWiki:Titleblacklist', ], ], 'betaheze' => [ 'global' => [ 'type' => 'url', 'src' => 'https://beta.betaheze.org/w/index.php?title=Title_blacklist&action=raw', ], 'local' => [ 'type' => 'localpage', 'src' => 'MediaWiki:Titleblacklist', ], ], ], 'wgTitleBlacklistUsernameSources' => [ 'default' => '*', ], 'wgTitleBlacklistLogHits' => [ 'default' => false, ], 'wgTitleBlacklistBlockAutoAccountCreation' => [ 'default' => false, ], // Translate 'wgTranslateDisabledTargetLanguages' => [ 'default' => [], 'hkrailwiki' => [ '*' => [ 'zh-hant' => '本站已配置[[Project:繁簡處理|自動繁簡轉換]]功能,請在語言表單選擇翻譯語言為「中文」而非「中文(繁體)」。', 'zh-hk' => '本站已配置[[Project:繁簡處理|自動繁簡轉換]]功能,請在語言表單選擇翻譯語言為「中文」而非「中文(香港)」。', 'zh-tw' => '本站已配置[[Project:繁簡處理|自動繁簡轉換]]功能,請在語言表單選擇翻譯語言為「中文」而非「中文(台灣)」。', 'zh-mo' => '本站已配置[[Project:繁簡處理|自動繁簡轉換]]功能,請在語言表單選擇翻譯語言為「中文」而非「中文(澳門)」。', 'zh-hant' => '本站已配置[[Project:繁簡處理|自动简繁转换]]功能,请在语言表单选择翻译语言为「中文」而非「中文(简体)」。', 'zh-cn' => '本站已配置[[Project:繁簡處理|自动简繁转换]]功能,请在语言表单选择翻译语言为「中文」而非「中文(中国大陆)」。', 'zh-sg' => '本站已配置[[Project:繁簡處理|自动简繁转换]]功能,请在语言表单选择翻译语言为「中文」而非「中文(新加坡)」。', 'zh-my' => '本站已配置[[Project:繁簡處理|自动简繁转换]]功能,请在语言表单选择翻译语言为「中文」而非「中文(马来西亚)」。', ], ], 'metawiki' => [ '*' => [ 'en' => 'English is the source language.', ], ], 'spiralwiki' => [ '*' => [ 'en' => 'English is the source language.', ], ], ], 'wgTranslateDocumentationLanguageCode' => [ 'default' => false, ], 'wgTranslatePageTranslationULS' => [ 'default' => false, ], 'wgTranslateTranslationServices' => [ 'default' => [], ], // Tweeki 'wgTweekiSkinUseBootstrap4' => [ 'default' => false, ], 'wgTweekiSkinImagePageTOCTabs' => [ 'default' => false, ], 'wgTweekiSkinFooterIcons' => [ 'default' => false, ], 'wgTweekiSkinUseBtnParser' => [ 'default' => false, ], 'wgTweekiSkinUseTooltips' => [ 'default' => false, ], 'wgTweekiSkinUseIconWatch' => [ 'default' => false, ], 'wgTweekiSkinHideAnon' => [ 'default' => [ 'subnav' => true ], 'obeymewiki' => [ 'subnav' => false, ], ], // UploadWizard 'wmgUploadWizardFlickrApiKey' => [ 'ext-UploadWizard' => 'aeefff139445d825d4460796616f9349', ], // Uploads 'wmgPrivateUploads' => [ 'default' => false, 'ciptamediawiki' => true, 'staffwiki' => true, ], 'wmgEnableSharedUploads' => [ 'default' => false, ], 'wmgSharedUploadBaseUrl' => [ 'default' => false, ], 'wmgSharedUploadDBname' => [ 'default' => false, ], 'wmgSharedUploadClientDBname' => [ 'default' => false, ], // UniversalLanguageSelector 'wgULSAnonCanChangeLanguage' => [ 'default' => false, ], 'wgULSLanguageDetection' => [ 'default' => false, ], 'wgULSPosition' => [ 'default' => 'personal', ], 'wgULSGeoService' => [ 'ext-Translate' => false, 'ext-UniversalLanguageSelector' => false, ], 'wgULSIMEEnabled' => [ 'default' => true, 'gratispaideiawiki' => false, ], 'wgULSWebfontsEnabled' => [ 'default' => true, ], // UrlShortener 'wgUrlShortenerTemplate' => [ 'default' => '/m/$1', ], 'wgUrlShortenerDBName' => [ 'default' => 'metawiki', 'betaheze' => 'betawiki', ], // UserFunctions 'wgUFEnabledPersonalDataFunctions' => [ /** * 'ip', 'realname' and/or 'useremail' should never * be enabled here under any circumstances, in order * to ensure privacy. */ 'default' => [ 'nickname', 'username', ], ], // UserPageEditProtection 'wgOnlyUserEditUserPage' => [ 'ext-UserPageEditProtection' => true, ], // Varnish 'wgUseCdn' => [ 'default' => true, ], 'wgCdnServers' => [ 'default' => [ /** cp20 */ // '[2001:41d0:801:2000::4c25]:81', /** cp21 */ // '[2001:41d0:801:2000::1b80]:81', /** cp22 */ '[2a00:da00:1800:326::1]:81', /** cp23 */ '[2a00:da00:1800:328::1]:81', /** cp30 */ '[2607:5300:201:3100::929a]:81', /** cp31 */ '[2607:5300:201:3100::5ebc]:81', ], ], // Vector 'wgVectorSkinMigrationMode' => [ // Remove with 1.39 'default' => false, ], 'wgVectorResponsive' => [ 'default' => false, ], 'wgVectorDefaultSidebarVisibleForAnonymousUser' => [ 'default' => true, ], 'wgVectorWvuiSearchOptions' => [ 'default' => [ 'showThumbnail' => true, 'showDescription' => true, ], 'snapwikiwiki' => [ 'showThumbnail' => true, 'showDescription' => false, ], ], 'wgVectorMaxWidthOptions' => [ 'default' => [ 'exclude' => [ 'mainpage' => false, 'querystring' => [ 'action' => '(history|edit)', 'diff' => '.+', ], 'namespaces' => [ NS_SPECIAL, NS_CATEGORY, ], ], 'include' => [ 'Special:Preferences', ], ], '+gratispaideiawiki' => [ 'include' => [ 'Special:Preferences', 'Special:UserLogin', 'Special:CreateAccount', ], ], '+gpcommonswiki' => [ 'include' => [ 'Special:Preferences', 'Special:UserLogin', 'Special:CreateAccount', ], ], 'gratisdatawiki' => [ 'exclude' => [ 'mainpage' => false, 'querystring' => [ 'action' => '(history|edit)', 'diff' => '.+', ], 'namespaces' => [ NS_MAIN, NS_SPECIAL, NS_CATEGORY, ], ], 'include' => [ 'Special:Preferences', 'Special:UserLogin', 'Special:CreateAccount', ], ], ], 'wgVectorStickyHeader' => [ 'default' => [ 'logged_in' => true, 'logged_out' => false, ], 'gpcommonswiki' => [ 'logged_in' => false, 'logged_out' => false, ], 'gratisdatawiki' => [ 'logged_in' => false, 'logged_out' => false, ], ], 'wgVectorLanguageInHeader' => [ 'default' => [ 'logged_in' => true, 'logged_out' => true, ], 'gpcommonswiki' => [ 'logged_in' => false, 'logged_out' => false, ], 'gratisdatawiki' => [ 'logged_in' => false, 'logged_out' => false, ], ], // VisualEditor 'wmgVisualEditorEnableDefault' => [ 'default' => false, 'ext-VisualEditor' => true, ], 'wgVisualEditorEnableWikitext' => [ 'default' => false, ], 'wgVisualEditorShowBetaWelcome' => [ 'default' => true, ], 'wgVisualEditorUseSingleEditTab' => [ 'default' => false, ], 'wgVisualEditorEnableDiffPage' => [ 'default' => false, ], 'wgVisualEditorEnableVisualSectionEditing' => [ 'default' => 'mobile', ], 'wgVisualEditorTransclusionDialogSuggestedValues' => [ 'default' => false, ], 'wgVisualEditorTransclusionDialogInlineDescriptions' => [ 'default' => false, ], 'wgVisualEditorTransclusionDialogBackButton' => [ 'default' => false, ], 'wgVisualEditorTransclusionDialogNewSidebar' => [ 'default' => false, ], 'wgVisualEditorTemplateSearchImprovements' => [ 'default' => false, ], // ProtectSite 'wgProtectSiteLimit' => [ 'default' => '1 week', ], 'wgProtectSiteDefaultTimeout' => [ 'default' => '1 hour', ], // Wikibase 'wmgAllowEntityImport' => [ 'default' => false, ], 'wmgCanonicalUriProperty' => [ 'default' => false, ], 'wmgEnableEntitySearchUI' => [ 'default' => false, ], 'wmgFederatedPropertiesEnabled' => [ 'default' => false, ], 'wmgFormatterUrlProperty' => [ 'default' => false, ], 'wmgWikibaseRepoDatabase' => [ 'default' => $wi->dbname ], 'wmgWikibaseRepoUrl' => [ 'default' => 'https://wikidata.org' ], 'wmgWikibaseItemNamespaceID' => [ 'default' => 0 ], 'wmgWikibasePropertyNamespaceID' => [ 'default' => 120 ], 'wmgWikibaseRepoItemNamespaceID' => [ 'default' => 860 ], 'wmgWikibaseRepoPropertyNamespaceID' => [ 'default' => 862 ], // WikibaseLexeme 'wgLexemeLanguageCodePropertyId' => [ 'default' => null, ], 'wgLexemeEnableDataTransclusion' => [ 'default' => false, ], // WikibaseQualityConstraints 'wgWBQualityConstraintsInstanceOfId' => [ 'default' => 'P31', ], 'wgWBQualityConstraintsSubclassOfId' => [ 'default' => 'P279', ], 'wgWBQualityConstraintsStartTimePropertyIds' => [ 'default' => [ 'P569', 'P571', 'P580', 'P585', ], 'gratisdatawiki' => [ 'P26', 'P11', 'P174', 'P80', ], ], 'wgWBQualityConstraintsEndTimePropertyIds' => [ 'default' => [ 'P570', 'P576', 'P582', 'P585', ], 'gratisdatawiki' => [ 'P132', 'P539', 'P175', 'P80', ], ], 'wgWBQualityConstraintsPropertyConstraintId' => [ 'default' => 'P2302', ], 'wgWBQualityConstraintsExceptionToConstraintId' => [ 'default' => 'P2303', ], 'wgWBQualityConstraintsConstraintStatusId' => [ 'default' => 'P2316', ], 'wgWBQualityConstraintsMandatoryConstraintId' => [ 'default' => 'Q21502408', ], 'wgWBQualityConstraintsSuggestionConstraintId' => [ 'default' => 'Q62026391', ], 'wgWBQualityConstraintsDistinctValuesConstraintId' => [ 'default' => 'Q21502410', ], 'wgWBQualityConstraintsMultiValueConstraintId' => [ 'default' => 'Q21510857', ], 'wgWBQualityConstraintsUsedAsQualifierConstraintId' => [ 'default' => 'Q21510863', ], 'wgWBQualityConstraintsSingleValueConstraintId' => [ 'default' => 'Q19474404', ], 'wgWBQualityConstraintsSymmetricConstraintId' => [ 'default' => 'Q21510862', ], 'wgWBQualityConstraintsTypeConstraintId' => [ 'default' => 'Q21503250', ], 'wgWBQualityConstraintsValueTypeConstraintId' => [ 'default' => 'Q21510865', ], 'wgWBQualityConstraintsInverseConstraintId' => [ 'default' => 'Q21510855', ], 'wgWBQualityConstraintsItemRequiresClaimConstraintId' => [ 'default' => 'Q21503247', ], 'wgWBQualityConstraintsValueRequiresClaimConstraintId' => [ 'default' => 'Q21510864', ], 'wgWBQualityConstraintsConflictsWithConstraintId' => [ 'default' => 'Q21502838', ], 'wgWBQualityConstraintsOneOfConstraintId' => [ 'default' => 'Q21510859', ], 'wgWBQualityConstraintsMandatoryQualifierConstraintId' => [ 'default' => 'Q21510856', ], 'wgWBQualityConstraintsAllowedQualifiersConstraintId' => [ 'default' => 'Q21510851', ], 'wgWBQualityConstraintsRangeConstraintId' => [ 'default' => 'Q21510860', ], 'wgWBQualityConstraintsDifferenceWithinRangeConstraintId' => [ 'default' => 'Q21510854', ], 'wgWBQualityConstraintsCommonsLinkConstraintId' => [ 'default' => 'Q21510852', ], 'wgWBQualityConstraintsContemporaryConstraintId' => [ 'default' => 'Q25796498', ], 'wgWBQualityConstraintsFormatConstraintId' => [ 'default' => 'Q21502404', ], 'wgWBQualityConstraintsUsedForValuesOnlyConstraintId' => [ 'default' => 'Q21528958', ], 'wgWBQualityConstraintsUsedAsReferenceConstraintId' => [ 'default' => 'Q21528959', ], 'wgWBQualityConstraintsNoBoundsConstraintId' => [ 'default' => 'Q51723761', ], 'wgWBQualityConstraintsAllowedUnitsConstraintId' => [ 'default' => 'Q21514353', ], 'wgWBQualityConstraintsSingleBestValueConstraintId' => [ 'default' => 'Q52060874', ], 'wgWBQualityConstraintsAllowedEntityTypesConstraintId' => [ 'default' => 'Q52004125', ], 'wgWBQualityConstraintsCitationNeededConstraintId' => [ 'default' => 'Q54554025', ], 'wgWBQualityConstraintsPropertyScopeConstraintId' => [ 'default' => 'Q53869507', ], 'wgWBQualityConstraintsLexemeLanguageConstraintId' => [ 'default' => 'Q55819106', ], 'wgWBQualityConstraintsLabelInLanguageConstraintId' => [ 'default' => 'Q108139345', ], 'wgWBQualityConstraintsLanguagePropertyId' => [ 'default' => 'P424', ], 'wgWBQualityConstraintsClassId' => [ 'default' => 'P2308', ], 'wgWBQualityConstraintsRelationId' => [ 'default' => 'P2309', ], 'wgWBQualityConstraintsInstanceOfRelationId' => [ 'default' => 'Q21503252', ], 'wgWBQualityConstraintsSubclassOfRelationId' => [ 'default' => 'Q21514624', ], 'wgWBQualityConstraintsInstanceOrSubclassOfRelationId' => [ 'default' => 'Q30208840', ], 'wgWBQualityConstraintsPropertyId' => [ 'default' => 'P2306', ], 'wgWBQualityConstraintsQualifierOfPropertyConstraintId' => [ 'default' => 'P2305', ], 'wgWBQualityConstraintsMinimumQuantityId' => [ 'default' => 'P2313', ], 'wgWBQualityConstraintsMaximumQuantityId' => [ 'default' => 'P2312', ], 'wgWBQualityConstraintsMinimumDateId' => [ 'default' => 'P2310', ], 'wgWBQualityConstraintsMaximumDateId' => [ 'default' => 'P2311', ], 'wgWBQualityConstraintsNamespaceId' => [ 'default' => 'P2307', ], 'wgWBQualityConstraintsFormatAsARegularExpressionId' => [ 'default' => 'P1793', ], 'wgWBQualityConstraintsSyntaxClarificationId' => [ 'default' => 'P2916', ], 'wgWBQualityConstraintsConstraintScopeId' => [ 'default' => 'P4680', ], 'wgWBQualityConstraintsConstraintEntityTypesId' => [ 'default' => 'P4680', ], 'wgWBQualityConstraintsSeparatorId' => [ 'default' => 'P4155', ], 'wgWBQualityConstraintsConstraintCheckedOnMainValueId' => [ 'default' => 'Q46466787', ], 'wgWBQualityConstraintsConstraintCheckedOnQualifiersId' => [ 'default' => 'Q46466783', ], 'wgWBQualityConstraintsConstraintCheckedOnReferencesId' => [ 'default' => 'Q46466805', ], 'wgWBQualityConstraintsNoneOfConstraintId' => [ 'default' => 'Q52558054', ], 'wgWBQualityConstraintsIntegerConstraintId' => [ 'default' => 'Q52848401', ], 'wgWBQualityConstraintsWikibaseItemId' => [ 'default' => 'Q29934200', ], 'wgWBQualityConstraintsWikibasePropertyId' => [ 'default' => 'Q29934218', ], 'wgWBQualityConstraintsWikibaseLexemeId' => [ 'default' => 'Q51885771', ], 'wgWBQualityConstraintsWikibaseFormId' => [ 'default' => 'Q54285143', ], 'wgWBQualityConstraintsWikibaseSenseId' => [ 'default' => 'Q54285715', ], 'wgWBQualityConstraintsWikibaseMediaInfoId' => [ 'default' => 'Q59712033', ], 'wgWBQualityConstraintsPropertyScopeId' => [ 'default' => 'P5314', ], 'wgWBQualityConstraintsAsMainValueId' => [ 'default' => 'Q54828448', ], 'wgWBQualityConstraintsAsQualifiersId' => [ 'default' => 'Q54828449', ], 'wgWBQualityConstraintsAsReferencesId' => [ 'default' => 'Q54828450', ], 'wgWBQualityConstraintsEnableSuggestionConstraintStatus' => [ 'default' => false, ], // WebChat config 'wgWebChatServer' => [ 'default' => false, ], 'wgWebChatChannel' => [ 'default' => false, ], 'wgWebChatClient' => [ 'default' => 'LiberaChat', ], // WikiForum 'wgWikiForumAllowAnonymous' => [ 'default' => true, ], 'wgWikiForumLogsInRC' => [ 'default' => true, ], // WikiDiscover 'wgWikiDiscoverUseDescriptions' => [ 'default' => true, ], // WikimediaIncubator 'wmincProjects' => [ 'default' => [ 'p' => 'Wikipedia', 'b' => 'Wikibooks', 't' => 'Wiktionary', 'q' => 'Wikiquote', 'n' => 'Wikinews', 'y' => 'Wikivoyage', 's' => 'Wikisource', 'v' => 'Wikiversity', ], ], 'wmincProjectSite' => [ 'default' => [ 'name' => 'Incubator Plus 2.0', 'short' => 'incplus', ], ], 'wmincSisterProjects' => [ 'default' => [ 'm' => 'Miraheze Meta', ], ], 'wmincExistingWikis' => [ 'default' => null, ], 'wmincClosedWikis' => [ 'default' => false, ], 'wmincMultilingualProjects' => [ 'default' => [], ], 'wmincTestWikiNamespaces' => [ 'default' => [ NS_MAIN, NS_TALK, NS_TEMPLATE, NS_TEMPLATE_TALK, NS_CATEGORY, NS_CATEGORY_TALK, /** NS_MODULE */ 828, /** NS_MODULE_TALK */ 829, ], 'idiotpediaincubatorwiki' => [ NS_MAIN, NS_TALK, NS_CATEGORY, NS_CATEGORY_TALK, /** NS_MODULE */ 828, /** NS_MODULE_TALK */ 829, ], ], // WikiLove 'wgWikiLoveGlobal' => [ 'ext-WikiLove' => true, ], // WikiSEO configs 'wgTwitterCardType' => [ 'default' => 'summary_large_image', ], 'wgGoogleSiteVerificationKey' => [ 'default' => false, ], 'wgBingSiteVerificationKey' => [ 'default' => false, ], 'wgFacebookAppId' => [ 'default' => false, ], 'wgYandexSiteVerificationKey' => [ 'default' => false, ], 'wgAlexaSiteVerificationKey' => [ 'default' => false, ], 'wgPinterestSiteVerificationKey' => [ 'default' => false, ], 'wgNaverSiteVerificationKey' => [ 'default' => false, ], 'wgWikiSeoDefaultImage' => [ 'default' => null, ], 'wgWikiSeoDisableLogoFallbackImage' => [ 'default' => false, ], 'wgWikiSeoEnableAutoDescription' => [ 'default' => true, ], 'wgWikiSeoTryCleanAutoDescription' => [ 'default' => true, ], 'wgMetadataGenerators' => [ 'default' => '', 'gratispaideiawiki' => [ 'OpenGraph', 'Twitter', 'SchemaOrg', ], ], 'wgTwitterSiteHandle' => [ 'default' => '', 'gratisdatawiki' => '@gratisdatawiki', ], 'wgWikiSeoDefaultLanguage' => [ 'default' => '', 'gratisdatawiki' => 'en-en', 'gratispaideiawiki' => 'en-en', ], // CreateWiki Defined Special Variables 'cwClosed' => [ 'default' => false, ], 'cwExperimental' => [ 'default' => false, ], 'cwInactive' => [ 'default' => false, ], 'cwPrivate' => [ 'default' => false, ], // Uncategorised 'wgRandomGameDisplay' => [ 'default' => [ 'random_picturegame' => false, 'random_poll' => false, 'random_quiz' => false, ], ], 'wgForceHTTPS' => [ 'default' => true, ], // Logging configuation (Graylog) // Temporary config used to faciliate the migration // to rsyslog. 'wmgSyslogHandler' => [ 'default' => 'rsyslog', ], 'wmgLogToDisk' => [ 'default' => false, ], 'wmgMonologChannels' => [ 'default' => [ '404' => 'debug', 'AbuseFilter' => false, 'ActionFactory' => false, 'antispoof' => false, 'api' => 'warning', 'api-feature-usage' => false, 'api-readonly' => false, // When using this, use buffer. 'api-request' => [ 'graylog' => 'debug', 'buffer' => true ], 'api-warning' => false, 'authentication' => 'info', 'authevents' => 'info', 'autoloader' => false, 'BlockManager' => false, 'BlogPage' => false, 'BounceHandler' => false, 'cache-cookies' => false, 'caches' => false, 'captcha' => 'debug', 'cargo' => false, 'CentralAuth' => 'debug', 'CentralAuthRename' => false, 'CentralAuthVerbose' => false, 'CentralNotice' => false, 'cite' => false, 'ContentHandler' => false, 'CookieWarning' => false, 'cookie' => false, 'CreateWiki' => 'debug', 'DBConnection' => 'warning', 'DBPerformance' => false, 'DBQuery' => false, 'DBReplication' => false, 'DBTransaction' => false, 'DeferredUpdates' => 'error', 'deprecated' => [ 'graylog' => 'debug', 'sample' => 100 ], 'diff' => 'debug', 'DuplicateParse' => false, 'dynamic-sidebar' => false, 'editpage' => false, 'Echo' => 'debug', 'EditConflict' => 'error', 'EditConstraintRunner' => 'error', 'error' => 'debug', 'error-json' => false, 'EventLogging' => false, 'EventStreamConfig' => false, 'exception' => 'debug', 'exception-json' => false, 'exec' => 'debug', 'export' => false, 'ExternalStore' => false, 'fatal' => 'debug', 'FileImporter' => false, 'FileOperation' => false, 'Flow' => 'debug', 'formatnum' => false, 'FSFileBackend' => false, 'gitinfo' => false, 'GlobalTitleFail' => false, 'GlobalWatchlist' => false, 'headers-sent' => false, 'http' => 'warning', 'HitCounters' => false, // Only log http errors with a 500+ code 'HttpError' => 'error', // 'JobExecutor' => [ 'logstash' => 'warning' ], 'JobQueueRedis' => 'debug', 'localisation' => false, 'ldap' => 'warning', 'LinkBatch' => false, 'Linter' => 'debug', 'LocalFile' => 'warning', 'localhost' => false, 'LockManager' => false, 'logging' => false, 'LoginNotify' => 'debug', 'ManageWiki' => 'debug', 'MassMessage' => false, 'Math' => 'info', 'MatomoAnalytics' => 'debug', 'Mime' => false, // debug sprews too much information + sample // otherwise we get 2 million+ messages within a few minutes 'memcached' => [ 'graylog' => 'error' ], 'message-format' => false, 'MessageCache' => false, 'MessageCacheError' => false, 'mobile' => false, 'NewUserMessage' => false, 'OAuth' => 'info', 'objectcache' => false, 'OldRevisionImporter' => false, 'OutputBuffer' => false, 'PageTriage' => false, 'ParserCache' => false, 'Parsoid' => 'warning', 'preferences' => false, 'purge' => false, 'query' => false, 'quickinstantcommons' => 'error', 'ratelimit' => false, 'readinglists' => false, 'recursion-guard' => false, 'RecursiveLinkPurge' => false, // debug sprews too much information + sample // otherwise we get 2 million+ messages within a few minutes 'redis' => [ 'graylog' => 'warning', 'sample' => 20 ], 'Renameuser' => 'debug', 'resourceloader' => false, 'ResourceLoaderImage' => false, 'RevisionStore' => false, 'runJobs' => 'warning', 'SaveParse' => false, 'security' => 'debug', 'session' => 'info', 'session-ip' => 'info', 'SimpleAntiSpam' => false, 'slow-parse' => 'debug', 'slow-parsoid' => 'info', 'SocialProfile' => false, 'SpamBlacklist' => false, 'SpamBlacklistHit' => false, 'SpamRegex' => false, 'SQLBagOStuff' => false, 'squid' => false, 'StashEdit' => false, 'T263581' => false, 'texvc' => false, 'throttler' => false, 'thumbnail' => 'debug', 'thumbnailaccess' => false, 'TitleBlacklist' => false, 'TitleBlacklist-cache' => false, 'torblock' => false, 'TranslationNotifications.Jobs' => false, 'Translate.Jobs' => false, 'Translate' => false, 'UpdateRepo' => false, 'updateTranstagOnNullRevisions' => false, 'upload' => false, 'UserOptionsManager' => false, 'VisualEditor' => 'debug', 'warning' => false, 'wfDebug' => false, 'wfLogDBError' => 'debug', 'Wikibase' => false, 'Wikibase.NewItemIdFormatter' => false, 'WikibaseQualityConstraints' => false, 'xff' => false, 'XMP' => false, ], ], // Control MediaWiki Deprecation Warnings 'wgDeprecationReleaseLimit' => [ 'default' => '1.34', 'betaheze' => false, ], // Email notifications on privileged actions configuration 'wgMirahezeMagicLogEmailConditions' => [ 'default' => [ 'trustandsafety' => [ 'group' => 'trustandsafety', 'email' => 'owen@miraheze.org', ], ], ], ]; // Start settings requiring external dependency checks/functions if ( wfHostname() === 'test131' ) { // Prevent cache (better be safe than sorry) $wgConf->settings['wgUseCdn']['default'] = false; } // ManageWiki settings require_once __DIR__ . '/ManageWikiExtensions.php'; $wi::$disabledExtensions = [ 'editnotify', 'hitcounters', 'regexfunctions', 'wikiforum', ]; if ( version_compare( MW_VERSION, '1.39', '>=' ) ) { $wi::$disabledExtensions = array_merge( $wi::$disabledExtensions, [ // Broken (https://phabricator.wikimedia.org/T317499) 'protectsite', ] ); } $globals = MirahezeFunctions::getConfigGlobals(); // phpcs:ignore MediaWiki.Usage.ForbiddenFunctions.extract extract( $globals ); $wi->loadExtensions(); require_once __DIR__ . '/ManageWikiNamespaces.php'; require_once __DIR__ . '/ManageWikiSettings.php'; $wgUploadPath = "//static.miraheze.org/$wgDBname"; $wgUploadDirectory = "/mnt/mediawiki-static/$wgDBname"; $wgLocalisationCacheConf['storeClass'] = LCStoreCDB::class; $wgLocalisationCacheConf['storeDirectory'] = '/srv/mediawiki/cache/l10n'; $wgLocalisationCacheConf['manualRecache'] = true; if ( !file_exists( '/srv/mediawiki/cache/l10n/l10n_cache-en.cdb' ) ) { $wgLocalisationCacheConf['manualRecache'] = false; } if ( extension_loaded( 'wikidiff2' ) ) { $wgDiff = false; } // we set $wgInternalServer to $wgServer to get varnish cache purging working // we convert $wgServer to http://, as varnish does not support purging https requests $wgInternalServer = str_replace( 'https://', 'http://', $wgServer ); if ( $wgRequestTimeLimit ) { $wgHTTPMaxTimeout = $wgHTTPMaxConnectTimeout = $wgRequestTimeLimit; } // Include other configuration files require_once '/srv/mediawiki/config/Database.php'; require_once '/srv/mediawiki/config/GlobalCache.php'; require_once '/srv/mediawiki/config/GlobalLogging.php'; require_once '/srv/mediawiki/config/Sitenotice.php'; if ( $wi->missing ) { require_once '/srv/mediawiki/ErrorPages/MissingWiki.php'; } // Define last to avoid all dependencies require_once '/srv/mediawiki/config/GlobalSettings.php'; require_once '/srv/mediawiki/config/LocalWiki.php'; // Define last - Extension message files for loading extensions if ( file_exists( __DIR__ . '/ExtensionMessageFiles.php' ) && !defined( 'MW_NO_EXTENSION_MESSAGES' ) ) { require_once __DIR__ . '/ExtensionMessageFiles.php'; } // Don't need a global here unset( $wi );