Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
167 contributors

Users who have contributed to this file

@Reception123 @paladox @Southparkfan @JohnFLewis @NDKilla @MacFan4000 @The-Voidwalker @Wiki1776 @Amanda-Catherine @labster @revi @HeartsDo-Dev @CnocBride @Pix1234 @ImBoPhil @AlvaroMolinaCL @thelevking @PlasmaLight @robkam @Creepario @sau226 @nilleholger @AYST201 @TriX1 @Wynter @FelixINX
3077 lines (2938 sloc) 63.8 KB
<?php
/*
LocalSettings.php for Miraheze.
Authors of initial version: Southparkfan, John Lewis, Orain contributors
*/
# 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";
# Don't allow web access.
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
$wmgUploadHostname = "static.miraheze.org";
# Initialize $wgConf
$wgConf = new SiteConfiguration;
$wgConf->suffixes = [ 'wiki' ];
$wgLocalVirtualHosts = [ '81.4.109.166' ];
$wmgHostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : 'undefined';
$wgConf->settings = [
// invalidates user sessions
'wgAuthenticationTokenVersion' => [
'default' => '3',
],
// AbuseFilter
'wgAbuseFilterActions' => [
'default' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
],
'wgAbuseFilterCentralDB' => [
'default' => 'metawiki',
],
'wgAbuseFilterIsCentral' => [
'default' => false,
'metawiki' => true,
],
'wgAbuseFilterBlockDuration' => [
'default' => 'indefinte',
'weatherwiki' => '1 week',
],
'wgAbuseFilterAnonBlockDuration' => [
'default' => 2592000,
'weatherwiki' => '72 hours',
],
'wgAbuseFilterRestrictions' => [
'default' => [
'blockautopromote' => true,
'block' => true,
'degroup' => true,
'rangeblock' => true,
],
'weatherwiki' => [
'blockautopromote' => false,
'block' => false,
'degroup' => false,
'rangeblock' => true,
],
],
// Anti-spam
'wgAccountCreationThrottle' => [
'default' => 5,
],
// BetaFeatures
'wgMediaViewerIsInBeta' => [
'default' => false,
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'default' => false,
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'default' => false,
],
'wgPivotFeatures' => [
'thegreatwarwiki' => [
'usePivotTabs' => true,
'fixedNavBar' => true,
'showHelpUnderTools' => false,
'showRecentChangesUnderTools' => false,
'wikiNameDesktop' => 'The Great War 1914-1918',
'showFooterIcons' => true
],
],
// Block
'wgAutoblockExpiry' => [
'default' => 86400, // 24 hours * 60 minutes * 60 seconds
],
'wgBlockAllowsUTEdit' => [
'default' => true,
],
'wgEnableBlockNoticeStats' => [
'default' => false,
],
'wgEnablePartialBlocks' => [
'default' => true,
],
// Bot passwords
'wgBotPasswordsDatabase' => [
'default' => 'mhglobal',
],
// Cache
'wgCacheDirectory' => [
'default' => '/srv/mediawiki/w/cache',
],
'wgLocalisationCacheConf' => [
'default' => [
'class' => 'LocalisationCache',
'store' => 'files',
'storeDirectory' => "$IP/cache/l10n",
'manualRecache' => true,
],
],
'wgPreprocessorCacheThreshold' => [
'default' => false,
],
'wgResourceLoaderMaxage' => [
'default' => [
'versioned' => [
'server' => 12 * 60 * 60, // 12 hours
'client' => 1 * 24 * 60 * 60, // 1 day
],
'unversioned' => [
'server' => 5 * 60, // 5 minutes
'client' => 30 * 60, // 30 minutes
],
],
],
'wgRevisionCacheExpiry' => [
'default' => 0,
],
// CentralNotice
'wgNoticeInfrastructure' => [
'default' => false,
'metawiki' => true,
],
'wgCentralSelectedBannerDispatcher' => [
'default' => "//meta.miraheze.org/w/index.php/Special:BannerLoader",
],
'wgCentralBannerRecorder' => [
'default' => "//meta.miraheze.org/w/index.php/Special:RecordImpression",
],
'wgCentralDBname' => [
'default' => 'metawiki',
],
'wgCentralHost' => [
'default' => "//meta.miraheze.org",
],
'wgNoticeProject' => [
'default' => 'all',
],
'wgNoticeProjects' => [
'default' => [
'all',
'optout',
],
],
'wgNoticeUseTranslateExtension' => [
'default' => true,
],
// Captcha
'wgCaptchaClass' => [
'default' => 'ReCaptchaNoCaptcha',
],
'wgReCaptchaSendRemoteIP' => [
'default' => false,
],
// Category
'wgUseCategoryBrowser' => [
'default' => false,
'modesofdiscoursewiki' => true,
],
// CentralAuth
'wgCentralAuthAutoCreateWikis' => [
'default' => [ 'loginwiki', 'metawiki' ],
],
'wgCentralAuthAutoNew' => [
'default' => true,
],
'wgCentralAuthAutoMigrate' => [
'default' => true,
],
'wgCentralAuthAutoMigrateNonGlobalAccounts' => [
'default' => true,
],
'wgCentralAuthCookies' => [
'default' => true,
],
'wgCentralAuthCookieDomain' => [
'default' => '.miraheze.org',
],
'wgCentralAuthCreateOnView' => [
'default' => true,
'nenawikiwiki' => false,
],
'wgCentralAuthDatabase' => [
'default' => 'mhglobal',
],
'wgCentralAuthEnableGlobalRenameRequest' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthEnableUserMerge' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthLoginWiki' => [
'default' => 'loginwiki',
],
'wgCentralAuthPreventUnattached' => [
'default' => true,
],
'wgCentralAuthSilentLogin' => [
'default' => true,
],
// CheckUser
'wgCheckUserForceSummary' => [
'default' => true,
],
// Comments extension
'wgCommentsDefaultAvatar' => [
'default' => '/w/extensions/SocialProfile/avatars/default_ml.gif',
],
'wgCommentsInRecentChanges' => [
'default' => false,
],
'wgCommentsSortDescending' => [
'default' => false,
],
// Contribution Scores
'wgContribScoreDisableCache' => [
'default' => true,
],
// CreateWiki
'wgCreateWikiCustomDomainPage' => [
'default' => 'Special:MyLanguage/Custom_domains',
],
'wgCreateWikiDatabase' => [
'default' => 'mhglobal',
],
'wgCreateWikiGlobalWiki' => [
'default' => 'metawiki',
],
'wgCreateWikiDBDirectory' => [
'default' => '/srv/mediawiki/dblist',
],
'wgCreateWikiEmailNotifications' => [
'default' => true,
],
'wgCreateWikiNotificationEmail' => [
'default' => 'staff@miraheze.org',
],
'wgCreateWikiSQLfiles' => [
'default' => [
"$IP/maintenance/tables.sql",
"$IP/extensions/AbuseFilter/abusefilter.tables.sql",
"$IP/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql",
"$IP/extensions/BetaFeatures/sql/create_counts.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/globalblocking.sql",
"$IP/extensions/OAuth/backend/schema/mysql/OAuth.sql",
"$IP/extensions/RottenLinks/sql/rottenlinks.sql",
"$IP/extensions/Translate/sql/revtag.sql",
"$IP/extensions/Translate/sql/translate_groupreviews.sql",
"$IP/extensions/Translate/sql/translate_groupstats.sql",
"$IP/extensions/Translate/sql/translate_messageindex.sql",
"$IP/extensions/Translate/sql/translate_metadata.sql",
"$IP/extensions/Translate/sql/translate_reviews.sql",
"$IP/extensions/Translate/sql/translate_sections.sql",
"$IP/extensions/Translate/sql/translate_stash.sql",
"$IP/extensions/Translate/sql/translate_tm.sql",
"$IP/extensions/UrlShortener/schemas/urlshortcodes.sql"
],
],
'wgCreateWikiStateDays' => [
'default' => [
'inactive' => 45,
'closed' => 15,
'removed' => 120,
'deleted' => 14
],
],
'wgCreateWikiCategories' => [
'default' => [
'Community' => 'community',
'Education' => 'education',
'Electronics' => 'eletronics',
'Fandom' => 'fandom',
'Fantasy' => 'fantasy',
'Gaming' => 'gaming',
'Geography' => 'geography',
'Leisure' => 'leisure',
'Literature/Writing' => 'literature',
'Medicine/Medical' => 'medical',
'Military/War' => 'military',
'Music' => 'music',
'Podcast' => 'podcast',
'Private' => 'private',
'Religion' => 'religion',
'Software/Computing' => 'software',
'Sports' => 'sport',
'Uncategorised' => 'uncategorised',
],
],
'wgCreateWikiUseCategories' => [
'default' => true,
],
'wgCreateWikiSubdomain' => [
'default' => 'miraheze.org',
],
'wgCreateWikiUseClosedWikis' => [
'default' => true,
],
'wgCreateWikiUseCustomDomains' => [
'default' => true,
],
'wgCreateWikiUseEchoNotifications' => [
'default' => true,
],
'wgCreateWikiUseInactiveWikis' => [
'default' => true,
],
'wgCreateWikiUsePrivateWikis' => [
'default' => true,
],
// Cookies extension settings
'wgCookieWarningMoreUrl' => [
'default' => 'https://meta.miraheze.org/wiki/Privacy_Policy#4._Cookies',
],
'wgCookieSetOnAutoblock' => [
'default' => true,
],
// Cookies extension settings
'wgCookieWarningEnabled' => [
'default' => true,
],
'wgCookieWarningGeoIPLookup' => [
'default' => 'php',
],
'wgCookieWarningGeoIp2' => [
'default' => true,
],
'wgCookieWarningGeoIp2Path' => [
'default' => '/srv/GeoLite2-City.mmdb',
],
// Cookie stuff
'wgCookieSetOnIpBlock' => [
'default' => true,
],
// Database
'wgAllowSchemaUpdates' => [
'default' => false,
],
'wgCompressRevisions' => [
'default' => false,
'absurdopediawiki' => true,
'allthetropeswiki' => true,
'americangirldollswiki' => true,
'animebathswiki' => true,
'baobabarchiveswiki' => true,
'beidipediawiki' => true,
'buswiki' => true,
'cwarswiki' => true,
'nonciclopediawiki' => true,
'nonsensopediawiki' => true,
'openhatchwiki' => true,
'quircwiki' => true,
'simswiki' => true,
'thelastsovereignwiki' => true,
'trollpastawiki' => true,
'trollpastauncensoredwiki' => true,
],
'wgDBadminuser' => [
'default' => 'wikiadmin',
],
'wgDBuser' => [
'default' => 'mediawiki',
],
'wgReadOnly' => [
'default' => false,
],
'wgSharedDB' => [
'default' => 'metawiki',
],
'wgSharedTables' => [
'default' => [],
],
'wgActorTableSchemaMigrationStage' => [
'default' => SCHEMA_COMPAT_NEW,
'test1wiki' => SCHEMA_COMPAT_NEW,
],
'wgCommentTableSchemaMigrationStage' => [
'default' => MIGRATION_NEW,
],
// Delete
'wgDeleteRevisionsLimit' => [
'default' => '250', // databases don't have much memory - let's not overload them in future
],
// DJVU
'wgDjvuDump' => [
'default' => '/usr/bin/djvudump',
],
'wgDjvuRenderer' => [
'default' => '/usr/bin/ddjvu',
],
'wgDjvuTxt' => [
'default' => '/usr/bin/djvutxt',
],
// ParserFunctions
'wgPFEnableStringFunctions' => [
'default' => false,
],
'wgAllowSlowParserFunctions' => [
'default' => false,
],
// Echo
'wgEchoCrossWikiNotifications' => [
'default' => true,
],
'wgEchoUseJobQueue' => [
'default' => true,
],
'wgEchoSharedTrackingCluster' => [
'default' => 'echo',
],
'wgEchoSharedTrackingDB' => [
'default' => 'metawiki',
],
'wgEchoUseCrossWikiBetaFeature' => [
'default' => true,
],
'wgEchoMentionStatusNotifications' => [
'default' => true,
],
// Exempt from Robot Control (INDEX/NOINDEX namespaces)
'wgExemptFromUserRobotsControl' => [
'default' => $wgContentNamespaces,
'thelonsdalebattalionwiki' => [],
],
// ElasticSearch
'wmgDisableSearchUpdate' => [
'default' => false,
],
'wmgSearchType' => [
'default' => false,
'allthetropeswiki' => true,
'buswiki' => true,
'isvwiki' => true,
'metawiki' => true,
'nonsensopediawiki' => true,
'pointmanwiki' => true,
'test1wiki' => true,
],
// Extensions and Skins
'wmgUse3D' => [
'default' => false,
],
'wmgUseAddThis' => [
'default' => false,
],
'wmgUseAddHTMLMetaAndTitle' => [
'default' => false,
],
'wmgUseAdminLinks' => [
'default' => false,
],
'wmgUseAJAXPoll' => [
'default' => false,
],
'wmgUseApex' => [
'default' => false,
],
'wmgUseApprovedRevs' => [
'default' => false,
],
'wmgUseArticleFeedbackv5' => [
'default' => false,
],
'wmgUseArticleRatings' => [
'default' => false,
],
'wmgUseArticleToCategory2' => [
'default' => false,
],
'wmgUseAuthorProtect' => [
'default' => false,
],
'wmgUseAutoCreateCategoryPages' => [
'default' => false, // DO NOT enable on wikis that have more than 500 categories. See T1230
],
'wmgUseBlogPage' => [
'default' => false,
],
'wmgUseBabel' => [
'default' => false,
],
'wmgUseMSCalendar' => [
'default' => false,
],
'wmgUseCapiunto' => [
'default' => false,
],
'wmgUseCargo' => [
'default' => false,
],
'wmgUseCategorySortHeaders' => [
'default' => false,
],
'wmgUseCategoryTree' => [
'default' => false,
],
'wmgUseCharInsert' => [
'default' => false,
],
'wmgUseCirrusSearch' => [
'default' => false,
'allthetropeswiki' => true,
'buswiki' => true,
'isvwiki' => true,
'metawiki' => true,
'nonsensopediawiki' => true,
'pointmanwiki' => true,
'test1wiki' => true,
],
'wmgUseCite' => [
'default' => false,
],
'wmgUseCiteThisPage' => [
'default' => false,
],
'wmgUseCitoid' => [
'default' => false,
],
'wmgUseCodeEditor' => [
'default' => false,
],
'wmgUseCodeMirror' => [
'default' => false,
],
'wmgUseCollapsibleVector' => [
'default' => false,
],
'wmgUseCollection' => [
'default' => false,
],
'wmgUseComments' => [
'default' => false, // Sysop has 'commentadmin' by default
],
'wmgUseContactPage' => [
'default' => false, // Add wiki config to ContactPage.php
'apellidosmurcianoswiki' => true,
'ayrshirewiki' => true,
'christipediawiki' => true,
'cdcwiki' => true,
'fablabesdswiki' => true,
'guiaslocaiswiki' => true,
'qboxnextwiki' => true,
'test1wiki' => true,
],
'wmgUseContributionScores' => [
'default' => false,
],
'wmgUseCreatePage' => [
'default' => false,
],
'wmgUseCreateRedirect' => [
'default' => false,
],
'wmgUseCrossReference' => [
'default' => false,
],
'wmgUseCSS' => [
'default' => false,
],
'wmgUseDataDump' => [
'default' => true,
],
'wmgUseDescription2' => [
'default' => false,
],
'wmgUseDisambiguator' => [
'default' => false,
],
'wmgUseDismissableSiteNotice' => [
'default' => true,
],
'wmgUseDisplayTitle' => [
'default' => false,
],
'wmgUseDuskToDawn' => [
'default' => false,
],
'wmgUseDonateBoxInSidebar' => [ # Disabled for now --Rececption123
'default' => false,
'metawiki' => true,
'test1wiki' => true,
],
'wmgUseDPLForum' => [
'default' => false,
],
'wmgUseDummyFandoomMainpageTags' => [
'default' => false,
],
'wmgUseDynamicPageList' => [ // DynamicPageList and DynamicPageList3 should NOT be enabled together; they do not work together
'default' => false,
],
'wmgUseDynamicPageList3' => [ // DynamicPageList and DynamicPageList3 should NOT be enabled together; they do not work together
'default' => false,
],
'wmgUseEditcount' => [
'default' => false,
],
'wmgUseEditSubpages' => [
'default' => false,
],
'wmgUseEducationProgram' => [
'default' => false,
],
'wmgUseElectronPdfService' => [
'default' => false,
],
'wmgUseErudite' => [
'default' => false,
],
'wmgUseEventLogging' => [
'default' => false,
],
'wmgUseFancyBoxThumbs' => [
'default' => false,
],
'wmgUseFeaturedFeeds' => [
'default' => false, // Not enabled anywhere?
],
'wmgUseFlaggedRevs' => [
'default' => false,
],
'wmgUseFlow' => [
'default' => false, // Please make sure MediaWiki services is enabled on the wiki in the services.yaml file in the services repo
],
'wmgUseForeground' => [
'default' => false,
],
'wmgUseGadgets' => [
'default' => false,
],
'wmgUseGamepress' => [
'default' => false,
],
'wmgUseGenealogy' => [
'default' => false,
],
'wmgUseGeoCrumbs' => [
'default' => false,
],
'wmgUseGeoData' => [
'default' => false,
],
'wmgUseGettingStarted' => [
'default' => false,
],
'wmgUseGlobalUserPage' => [
'default' => false,
],
'wmgUseGraph' => [
'default' => false,
],
'wmgUseGroupsSidebar' => [
'default' => false,
],
'wmgUseGuidedTour' => [
'default' => false,
],
'wmgUseHAWelcome' => [
'default' => false,
],
'wmgUseHeaderTabs' => [
'default' => false,
],
'wmgUseHideSection' => [
'default' => false,
],
'wmgUseHighlightLinksInCategory' => [
'default' => false,
],
'wmgUseImageMap' => [
'default' => false,
],
'wmgUseImageRating' => [
'default' => false,
],
'wmgUseInputBox' => [
'default' => false,
],
'wmgUseJavascriptSlideshow' => [
'default' => false,
],
'wmgUseJosa' => [
'default' => false,
],
'wmgUseJSBreadCrumbs' => [
'default' => false,
],
'wmgUseKartographer' => [
'default' => false,
],
'wmgUseLabeledSectionTransclusion' => [
'default' => false,
],
'wmgUseLiberty' => [
'default' => false,
],
'wmgUseLinkSuggest' => [
'default' => false,
],
'wmgUseLinkTarget' => [
'default' => false,
],
'wmgUseLinkTitles' => [
'default' => false,
],
'wmgUseListings' => [
'default' => false,
],
'wmgUseLoopsCombo' => [
'default' => false,
],
'wmgUseMagicNoCache' => [
'default' => false,
],
'wmgUseMaps' => [
'default' => false,
],
'wmgUseMask' => [
'default' => false,
],
'wmgUseMassEditRegex' => [
'default' => false, // sysop is given permission 'masseditregex' by default
],
'wmgUseMassMessage' => [
'default' => false,
],
'wmgUseMath' => [
'default' => false,
],
'wmgUseMediaWikiChat' => [
'default' => false,
],
'wmgUseMetrolook' => [
'default' => false,
],
'wmgUseMobileFrontend' => [
'default' => true,
],
'wmgUseModeration' => [
'default' => false,
],
'wmgUseModernSkylight' => [
'default' => false,
],
'wmgUseMsCatSelect' => [
'default' => false,
],
'wmgUseMsLinks' => [
'default' => false,
],
'wmgUseMsUpload' => [
'default' => false,
],
'wmgUseMultimediaViewer' => [
'default' => false,
],
'wmgUseMultiBoilerplate' => [
'default' => false,
],
'wmgUseNewestPages' => [
'default' => false,
],
'wmgUseNews' => [
'default' => false,
],
'wmgUseNewSignupPage' => [
'default' => false,
],
'wmgUseNewsletter' => [
'default' => false,
],
'wmgUseNewUserMessage' => [
'default' => false,
],
'wmgUseNewUserNotif' => [
'default' => false,
],
'wmgUseNostalgia' => [
'default' => false,
],
'wmgUseNoTitle' => [
'default' => false,
],
'wmgUseNukeDPL' => [
'default' => false,
],
'wmgUseNumberedHeadings' => [
'default' => false,
],
'wmgUseOpenGraphMeta' => [
'default' => false,
],
'wmgUsePagedTiffHandler' => [
'default' => false,
],
'wmgUsePageForms' => [
'default' => false,
],
'wmgUsePageNotice' => [
'default' => false,
],
'wmgUsePageTriage' => [
'default' => false,
],
'wmgUsePDFEmbed' => [
'default' => false,
],
'wmgUsePdfHandler' => [
'default' => false,
],
'wmgUsePipeEscape' => [
'default' => false,
],
'wmgUsePivot' => [
'default' => false,
],
'wmgUsePoem' => [
'default' => false,
],
'wmgUsePopups' => [
'default' => false,
],
'wmgUsePoll' => [
'default' => false,
],
'wmgUsePollNY' => [
'default' => false,
],
'wmgUsePortableInfobox' => [
'default' => false,
],
'wmgUseProofreadPage' => [
'default' => false,
],
'wmgUseProtectSite' => [
'default' => false,
],
'wmgUsePurge' => [
'default' => false,
],
'wmgUseQuiz' => [
'default' => false,
],
'wmgUseQuizGame' => [
'default' => false,
],
'wmgUseRandomGameUnit' => [
'default' => false,
],
'wmgUseRandomImage' => [
'default' => false,
],
'wmgUseRandomSelection' => [
'default' => false,
],
'wmgUseRefreshed' => [
'default' => false,
],
'wmgUseRelatedArticles' => [
'default' => false,
],
'wmgUseReplaceText' => [
'default' => false,
],
'wmgUseRevisionSlider' => [
'default' => false,
],
'wmgUseRSS' => [
'default' => false,
],
'wmgUseSandboxLink' => [
'default' => false,
],
'wmgUseScore' => [
'default' => false,
],
'wmgUseScratchBlocks' => [
'default' => false,
],
'wmgUseShortURL' => [
'default' => true,
'macfan4000wiki' => false,
],
'wmgUseSimpleChanges' => [
'default' => false,
],
'wmgUseSimpleTooltip' => [
'default' => false,
],
'wmgUseSiteScout' => [
'default' => false,
],
// Requires copying of two directories: https://www.mediawiki.org/wiki/Extension:SocialProfile#Directories
// Should be this, but change $nameofwiki at the end:
// sudo -u www-data cp -R /srv/mediawiki/w/extensions/SocialProfile/avatars /srv/mediawiki/w/extensions/SocialProfile/awards /mnt/mediawiki-static/$nameofwiki/
'wmgUseSocialProfile' => [
'default' => false,
],
'wmgUseSpoilers' => [
'default' => false,
],
'wmgUseSubpageFun' => [
'default' => false,
],
'wmgUseSubPageList3' => [
'default' => false,
],
'wgScribuntoUseGeSHi' => [
'default' => true,
],
// Combo of Tabs + Tabber
'wmgUseTabsCombination' => [
'default' => false,
],
'wmgUseTemplateSandbox' => [
'default' => false,
],
'wmgUseTemplateStyles' => [
'default' => false,
],
'wmgUseTemplateWizard' => [
'default' => false,
],
'wmgUseTheme' => [
'default' => false,
],
'wmgUseTimedMediaHandler' => [
'default' => false,
],
'wmgUseTimeline' => [
'default' => false,
],
'wmgUseThanks' => [
'default' => false,
],
'wmgUseTitleKey' => [
'default' => false,
],
'wmgUseTocTree' => [
'default' => false,
],
'wmgUseTranslate' => [
'default' => false,
],
'wmgUseTweeki' => [
'default' => false,
],
'wmgUseTwoColConflict' => [
'default' => false,
],
'wmgUseUniversalLanguageSelector' => [
'default' => false,
],
'wmgUseUploadsLink' => [
'default' => false,
],
'wmgUseUrlGetParameters' => [
'default' => false,
],
'wmgUseUserWelcome' => [
'default' => false,
],
'wmgUseVoteNY' => [
'default' => false,
],
'wmgUseVisualEditor' => [
'default' => false, // Please make sure MediaWiki services is enabled on the wiki in the services.yaml file in the services repo
],
'wmgUseVariables' => [
'default' => false,
],
'wmgUseWebChat' => [
'default' => false,
],
'wmgUseWhoIsWatching' => [
'default' => false,
'test1wiki' => true,
],
'wmgUseWidgets' => [
'default' => false,
],
'wmgUseWikibaseRepository' => [
'default' => false,
],
'wmgUseWikibaseClient' => [
'default' => false,
],
'wmgAllowEntityImport' => [
'default' => false,
],
'wmgEnableEntitySearchUI' => [
'default' => true,
],
'wmgUseWikiCategoryTagCloud' => [
'default' => false,
],
'wmgUseWikidataPageBanner' => [
'default' => false,
],
'wmgUseWikiForum' => [
'default' => false,
],
'wmgUsewikihiero' => [
'default' => false,
'test1wiki' => true,
],
'wmgUseWikimediaIncubator' => [
'default' => false,
],
'wmgUseWikiLove' => [
'default' => false,
],
'wmgUseWikiSeo' => [
'default' => false,
],
'wmgUseWikiTextLoggedInOut' => [
'default' => false,
],
'wmgUseYouTube' => [
'default' => false,
],
// TemplateStyles config
'wgTemplateStylesAllowedUrls' => [
// Remove when https://gerrit.wikimedia.org/r/486828/ is merged
'default' => [
'audio' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org\/wikipedia\/commons\/>',
],
'image' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org\/wikipedia\/commons\/>',
],
'svg' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org/wikipedia\/commons\/[^?#]*\\.svg(?:[?#]|$)>',
],
'font' => [],
'namespace' => [ '<.>' ],
'css' => [],
],
],
// External link target
'wgExternalLinkTarget' => [
'default' => false,
],
// Allow External Images
'wgAllowExternalImages' => [
'default' => false,
],
'wgAllowExternalImagesFrom' => [
'default' => false,
'astrobiologywiki' => [
'https://www.science20.com',
'https://quora.com',
'https://robertinventor.com',
],
'doomsdaydebunkedwiki' => [
'https://www.science20.com',
'https://quora.com',
'https://robertinventor.com',
],
],
// Allow HTML <img> tag
'wgAllowImageTag' => [
'default' => false,
],
// FlaggedRevs
'wmgFlaggedRevsProtection' => [
'default' => false,
],
'wmgFlaggedRevsTags' => [
'default' => [
'status' => [
'quality' => 1,
'levels' => 2,
'pristine' => 3,
],
],
'infectopedwiki' => [
'accuracy' => [
'levels' => 3,
'quality' => 2,
'pristine' => 4,
],
'depth' => [
'levels' => 3,
'quality' => 2,
'pristine' => 4,
],
'tone' => [
'levels' => 3,
'quality' => 1,
'pristine' => 4,
],
],
'isvwiki' => [
'status' => [
'levels' => 1,
'quality' => 2,
'pristine' => 4,
],
],
],
'wmgFlaggedRevsTagsRestrictions' => [
'default' => [
'status' => [
'review' => 1,
'autoreview' => 1,
],
],
],
'wmgFlaggedRevsTagsAuto' => [
'default' => [
'status' => 1,
],
],
'wmgFlaggedRevsAutopromote' => [
'default' => [
'days' => 14,
'edits' => 100,
'excludeLastDays' => 1,
'benchmarks' => 1,
'spacing' => 1,
'totalContentEdits' => 100,
'totalCheckedEdits' => 100,
'uniqueContentPages' => 10,
'editComments' => 80,
'userpageBytes' => 1,
'neverBlocked' => true,
'maxRevertedEditRatio' => 0.05,
],
'isvwiki' => false,
'pruebawiki' => false,
],
'wmgFlaggedRevsAutoReview' => [
'default' => 3,
],
'wmgFlaggedRevsRestrictionLevels' => [
'default' => [ '', 'sysop' ],
],
'wmgSimpleFlaggedRevsUI' => [
'default' => false,
],
'wmgFlaggedRevsLowProfile' => [
'default' => false,
],
// Files
'wgEnableUploads' => [
'default' => true,
],
// T3797
'wgMaxUploadSize' => [
'default' => 262144000,
],
'wgUploadSizeWarning' => [
'default' => 262144000,
],
'wgAllowCopyUploads' => [
'default' => false,
],
'wgCopyUploadsFromSpecialUpload' => [
'default' => false,
],
// Must be kept insync with wgFileExtensions in ManageWikiSettings.php
'wgFileExtensions' => [
'default' => [ 'gif', 'ico', 'jpeg', 'jpg', 'ogg', 'png', 'svg', 'pdf', 'djvu' ],
],
'wgUseInstantCommons' => [
'default' => true,
],
'wgMaxImageArea' => [
'default' => '1.25e7',
],
'wgMirahezeCommons' => [
'default' => true,
],
'wgEnableImageWhitelist' => [
'default' => false,
],
'wgShowArchiveThumbnails' => [
'default' => true,
],
'wgVerifyMimeType' => [
'default' => true,
],
'wgSVGMetadataCutoff' => [
'default' => 262144,
],
'wgSVGConverter' => [
'default' => 'ImageMagick',
],
// GlobalBlocking
'wgApplyGlobalBlocks' => [
'default' => true,
'metawiki' => false,
'weatherwiki' => false, // let me do the blocking on my wiki, please
],
'wgGlobalBlockingDatabase' => [
'default' => 'mhglobal', // use mhglobal for global blocks
],
// GlobalCssJs
'wgGlobalCssJsConfig' => [
'default' => [
'wiki' => 'metawiki',
'source' => 'metawiki',
],
],
'+wgResourceLoaderSources' => [
'default' => [
'metawiki' => [
'apiScript' => '//meta.miraheze.org/w/api.php',
'loadScript' => '//meta.miraheze.org/w/load.php',
],
],
],
'wgUseGlobalSiteCssJs' => [
'default' => false,
],
// GlobalPreferences
'wgGlobalPreferencesDB' => [
'default' => 'centralauth',
],
// GlobalUserPage
'wgGlobalUserPageAPIUrl' => [
'default' => 'https://login.miraheze.org/w/api.php',
],
'wgGlobalUserPageDBname' => [
'default' => 'loginwiki',
],
// HighlightLinks
'wgHighlightLinksInCategory' => [
'default' => [],
'allthetropeswiki' => [
'Trope' => 'trope',
'YMMV_Trope' => 'ymmv',
],
],
// ImageMagick
'wgUseImageMagick' => [
'default' => true,
],
'wgImageMagickCommand' => [
'default' => '/usr/bin/convert',
],
// IncidentReporting
'wgIncidentReportingDatabase' => [
'default' => 'incidents',
],
'wgIncidentReportingServices' => [
'default' => [
'Bacula' => 'https://meta.miraheze.org/wiki/Tech:Bacula',
'DNS' => 'https://meta.miraheze.org/wiki/Tech:DNS',
'Ganglia' => 'https://meta.miraheze.org/wiki/Tech:Ganglia',
'Icinga' => 'https://meta.miraheze.org/wiki/Tech:Icinga',
'LizardFS' => false,
'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',
'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',
],
'wgExtraInterlanguageLinkPrefixes' => [
'default' => [],
'+mediatecawiki' => [
'm',
'u',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+nonciclopediawiki' => [
'dlm',
'olb',
'tlh',
'zombie',
],
'+privadowiki' => [
'm',
'u',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+ucroniaswiki' => [
'm',
'u',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
],
// Imports
'wgImportSources' => [
'default' => [
'meta',
'templatewiki',
],
'+incubatorwiki' => [
'wmincubator',
'wikiaincubatorplus',
],
'+weatherwiki' => [
'wikipedia',
],
'+zhdelwiki' => [
'wikipedia',
'zhwikipedia',
],
],
// Job Queue
'wgJobRunRate' => [
'default' => 0,
],
// Kartographer
'wgKartographerWikivoyageMode' => [
'default' => false,
],
'wgKartographerUseMarkerStyle' => [
'default' => false,
],
// Language
'wgLanguageCode' => [ // Hardcode "en"
'default' => 'en',
],
// License
'wgRightsIcon' => [
'default' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'incubatorwiki' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'isvwiki' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'jadtechwiki' => "//$wmgUploadHostname/jadtechwiki/d/d8/CopyrightIcon.png",
'revitwiki' => "//$wmgUploadHostname/revitwiki/d/d8/All_Rights_Reserved.png",
],
'wgRightsPage' => [
'default' => '',
'diavwiki' => 'Project:Copyrights',
'kstartupswiki' => 'Project:저작권',
'wisdomwikiwiki' => 'Copyleft',
],
'wgRightsText' => [
'default' => 'Creative Commons Attribution Share Alike',
'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.',
'revitwiki' => '©2013-2019 by Lionel J. Camara (All Rights Reserved)',
'reviwikiwiki' => 'Creative Commons Attribution Share Alike',
],
'wgRightsUrl' => [
'default' => 'https://creativecommons.org/licenses/by-sa/4.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',
'revitwiki' => 'https://revit.miraheze.org/wiki/MediaWiki:Copyright',
'reviwikiwiki' => 'https://creativecommons.org/licenses/by-sa/2.0/kr',
],
'wmgWikiLicense' => [
'default' => 'cc-by-sa',
],
// Links?
'+wgUrlProtocols' => [
'default' => [],
// file protocol only allowed on private wikis
'bchwiki' => [ "file://" ],
'gzewiki' => [ "file://" ],
'kaiwiki' => [ "file://" ],
],
// Mail
'wgEnableEmail' => [
'default' => true,
],
// When changing the default,
// also updated ManageWiki.php ("Moderation Email") with the new default.
'wgPasswordSender' => [
'default' => 'noreply@miraheze.org',
],
'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,
],
// ManageWiki
'wgManageWiki' => [
'default' => [
'cdb' => true,
'core' => true,
'extensions' => true,
'namespaces' => true,
'permissions' => true,
'settings' => true
],
],
'wgManageWikiExtensionsDefault' => [
'default' => [
'categorytree',
'cite',
'citethispage',
'globaluserpage',
'mobilefrontend',
],
],
'wgManageWikiCDBDirectory' => [
'default' => '/srv/mediawiki/w/cache/managewiki',
],
'wgManageWikiNamespacesExtraContentModels' => [
'default' => [
'Scribunto' => 'Scribunto',
],
],
'wgManageWikiPermissionsAdditionalAddGroups' => [
'default' => [],
'weatherwiki' => [
'founder' => [
'banned',
],
],
],
'wgManageWikiPermissionsAdditionalRights' => [
'default' => [
'*' => [
'autocreateaccount' => true,
'read' => true,
],
'checkuser' => [
'checkuser' => true,
'checkuser-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,
],
'user' => [
'user' => true,
],
'steward' => [
'centralauth-usermerge' => true,
'usermerge' => true,
'userrights' => true,
],
],
'+autocountwiki' => [
'authors' => [
'torunblocked' => true,
'read' => true,
],
],
'+bitcoindebateswiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+cmgwiki' => [
'gst' => [
'read' => true,
],
],
'+cyclonepediawiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'extendedconfirmed' => [
'extendedconfirmed' => true,
],
'sysop' => [
'extendedconfirmed' => true,
],
],
'+dpwiki' => [
'bureaucrat' => [
'bureaucrat' => true,
'respected' => true,
],
'respected' => [
'respected' => true,
],
],
'+enigmawiki' => [
'scribe' => [
'read' => true,
],
],
'+hypopediawiki' => [
'bureaucrat' => [
'bureaucrat' => 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,
],
],
'+jacksonheightswiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+jayuwikiwiki' => [
'sysop' => [
'editvoter' => true,
],
'voter' => [
'editvoter' => true,
],
],
'+lcars47wiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'devteam' => [
'bureaucrat' => true,
'read' => true,
'devteam' => true,
],
],
'+marthaspeakswiki' => [
'sysop' => [
'templateeditor' => true,
],
'templateeditor' => [
'templateeditor' => true,
],
],
'+nenawikiwiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+metawiki' => [
'confirmed' => [
'mwoauthproposeconsumer' => true,
'mwoauthupdateownconsumer' => true,
],
'cvt' => [
'abusefilter-modify-global' => true,
'centralauth-lock' => true,
'globalblock' => true,
],
'proxybot' => [
'globalblock' => true,
'centralauth-lock' => true,
],
'steward' => [
'abusefilter-modify-global' => true,
'centralauth-lock' => true,
'centralauth-oversight' => true,
'centralauth-rename' => true,
'centralauth-unmerge' => true,
'createwiki' => true,
'globalblock' => true,
'managewiki' => true,
'managewiki-restricted' => true,
'noratelimit' => true,
'userrights' => true,
'userrights-interwiki' => true,
],
'sysop' => [
'interwiki' => true,
],
'user' => [
'requestwiki' => true,
],
'wikicreator' => [
'createwiki' => true,
],
],
'+nonsensopediawiki' => [
'moderator' => [
'skipcaptcha' => true,
],
],
'+pruebawiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'read' => true,
'bureaucrat' => true,
'consul' => true,
'torunblocked' => true,
],
'testgroup' => [
'read' => true,
],
],
'+quircwiki' => [
'QuIRC_Staff' => [
'editstaffprotected' => true,
],
],
'+radviserwiki' => [
'editor' => [
'editor' => true,
],
'sysop' => [
'editor' => true,
],
],
'+sau226wiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'bureaucrat' => true,
'consul' => true,
'read' => true,
],
'testgroup' => [
'read' => true,
],
],
'+serinfhospwiki' => [
'SupportStaff' => [
'read' => true,
],
'SalesStaff' => [
'read' => true,
],
'PreSalesStaff' => [
'read' => true,
],
],
'+sovereignwiki' => [
'officer' => [
'read' => true,
'officer' => true,
],
'game-master' => [
'read' => true,
'game-master' => true,
],
],
'+ssptopwiki' => [
'read-only' => [
'read' => true,
],
],
'+swisscomraidwiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+svwiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'bureaucrat' => true,
'consul' => true,
'read' => true,
],
'testgroup' => [
'read' => true,
],
],
'+testwiki' => [
'consul' => [
'consul' => true,
],
],
'+thesciencearchiveswiki' => [
'sysop' => [
'templateeditor' => true,
],
'templateeditor' => [
'templateeditor' => true,
],
],
'+trexwiki' => [
'co' => [
'co' => true,
'ceo' => true,
],
'ceo' => [
'ceo' => true,
'editors' => true,
],
'bureaucrat' => [
'bureaucrat' => true,
],
],
'+whentheycrywiki' => [
'user' => [
'edit-create' => true,
],
],
'weatherwiki' => [
'steward' => [
'userrights' => true,
'userrights-interwiki' => true,
'hideuser' => true,
'suppressrevision' => true,
'suppressionlog' => true,
'viewsuppressed' => true,
'checkuser' => true,
'checkuser-log' => true,
'renameuser' => true,
'abusefilter-private' => true,
'abusefilter-private-log' => true,
'abusefilter-hide-log' => true,
'abusefilter-hidden-log' => true,
'oathauth-enable' => true,
'managewiki' => true,
'managewiki-restricted' => true,
'usermerge' => true,
],
],
'+yeoksawiki' => [
'sysop' => [
'project-edit' => true,
],
],
],
'wgManageWikiPermissionsAdditionalRemoveGroups' => [
'default' => [],
'weatherwiki' => [
'founder' => [
'banned',
],
],
],
'wgManageWikiPermissionsBlacklistRights' => [
'default' => [
'any' => [
'abusefilter-hide-log',
'abusefilter-hidden-log',
'abusefilter-modify-global',
'abusefilter-private',
'abusefilter-private-log',
'aft-oversighter',
'autocreateaccount',
'bigdelete',
'centralauth-lock',
'centralauth-oversight',
'centralauth-rename',
'centralauth-unmerge',
'centralauth-usermerge',
'checkuser',
'checkuser-log',
'createwiki',
'editincidents',
'editothersprofiles',
'flow-suppress',
'globalblock',
'globalblock-exempt',
'globalgroupmembership',
'globalgrouppermissions',
'hideuser',
'interwiki',
'managewiki-restricted',
'managewiki-editdefault',
'moderation-checkuser',
'mwoauthmanageconsumer',
'mwoauthmanagemygrants',
'mwoauthsuppress',
'mwoauthviewprivate',
'mwoauthviewsuppressed',
'renameuser',
'requestwiki',
'siteadmin',
'suppressionlog',
'suppressrevision',
'usermerge',
'userrights',
'userrights-interwiki',
'viewglobalprivatefiles',
'viewpmlog',
'viewsuppressed',
],
'*' => [
'read',
'skipcaptcha',
'torunblocked',
'centralauth-merge',
'generate-dump',
],
],
],
'wgManageWikiPermissionsBlacklistGroups' => [
'default' => [
'checkuser',
'oversight',
'steward'
],
],
'wgManageWikiPermissionsDefaultPrivateGroup' => [
'default' => 'member',
'weatherwiki' => 'user',
],
'wgManageWikiHelpUrl' => [
'default' => '//meta.miraheze.org/wiki/ManageWiki',
],
// MassMessage
'wgAllowGlobalMessaging' => [
'default' => false,
'metawiki' => true,
],
// MatomoAnalytics
'wgMatomoAnalyticsDatabase' => [
'default' => 'mhglobal',
],
'wgMatomoAnalyticsServerURL' => [
'default' => 'https://matomo.miraheze.org/',
],
'wgMatomoAnalyticsUseDB' => [
'default' => true,
],
'wgMatomoAnalyticsGlobalID' => [
'default' => 1,
],
// MediaWikiChat settings
'wgChatLinkUsernames' => [
'default' => false,
],
'wgChatMeCommand' => [
'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
]
],
],
// miraheze specific config
'wgServicesRepo' => [
'default' => '/srv/services/services',
],
'wgMirahezeServicesExtensions' => [
'default' => [ 'VisualEditor', 'Flow' ],
],
// Misc. stuff
'wgSitename' => [
'default' => 'No sitename set!',
],
'wgAllowDisplayTitle' => [
'default' => true,
],
'wgRestrictDisplayTitle' => [
'default' => true, // Wikis with NoTitle have it set to false
],
'wgCapitalLinks' => [
'default' => true,
],
'wgActiveUserDays' => [
'default' => 30,
],
'wgEnableCanonicalServerLink' => [
'default' => false,
],
'wgPageCreationLog' => [
'default' => true,
],
'wgRCWatchCategoryMembership' => [
'default' => false,
],
// Disable in ManageWiki to require all edits, even those by admins, to be approved
'wgApprovedRevsAutomaticApprovals' => [
'default' => true,
],
// MobileFrontend
'wmgMFAutodetectMobileView' => [
'default' => false,
],
'wgMFDefaultSkinClass' => [
'default' => 'SkinMinerva',
],
'wgMobileUrlTemplate' => [
'default' => '',
],
// Moderation extension settings
// Enable or disable notifications.
'wgModerationNotificationEnable' => [
'default' => false,
],
// Notify administrator only about new pages requests.
'wgModerationNotificationNewOnly' => [
'default' => false,
],
// Email to send notifications to.
'wgModerationEmail' => [
'default' => $wgPasswordSender,
],
// MsCatSelect vars
'wgMSCS_WarnNoCategories' => [
'default' => true,
],
// MsUpload settings
'wgMSU_useDragDrop' => [
'default' => true,
],
'wgMSU_showAutoCat' => [
'default' => false,
],
'wgMSU_checkAutoCat' => [
'default' => false,
],
'wgMSU_confirmReplace' => [
'default' => false,
],
// MultiBoilerplate settings
'wgMultiBoilerplateDiplaySpecialPage' => [
'default' => false,
],
// MultimediaViewer (not beta)
'wgMediaViewerEnableByDefault' => [
'default' => false,
],
// MobileFrontend
'wgMFNoMobilePages' => [
'default' => [],
'alwikiwiki' => [
'Main Page',
],
],
// Math
'wgMathValidModes' => [
'default' => [ 'mathml' ],
],
// Namespaces
'wgMetaNamespace' => [
'default' => null,
],
'wgMetaNamespaceTalk' => [
'default' => null,
],
// OATHAuth
'wgOATHAuthDatabase' => [
'default' => 'mhglobal',
],
// OAuth
'wgMWOAuthCentralWiki' => [
'default' => 'metawiki',
],
'wgMWOAuthSharedUserSource' => [
'default' => 'CentralAuth',
],
'wgMWOAuthSecureTokenTransfer' => [
'default' => true,
],
// Pagelang
'wgPageLanguageUseDB' => [
'default' => false,
],
// Page Size
'wgMaxArticleSize' => [
'default' => 2048,
],
// Permissions
'wgGroupsAddToSelf' => [
'default' => [],
],
'wgGroupsRemoveFromSelf' => [
'default' => [],
],
'wgRevokePermissions' => [
'default' => [],
'ssptopwiki' => [
'read-only' => [
'edit' => true,
],
],
'weatherwiki' => [
'banned' => [
'editmyoptions' => true,
'editmyprivateinfo' => true,
'editmyusercss' => true,
'editmyuserjs' => true,
'editmywatchlist' => true,
'edit' => true,
'read' => true,
'writeapi' => true,
'viewmyprivateinfo' => true,
'viewmywatchlist' => true,
],
],
],
'wgImplicitGroups' => [
'default' => [ '*', 'user', 'autoconfirmed' ],
'bitcoindebateswiki' => [ '*', 'user', 'autoconfirmed', 'emailconfirmed' ],
],
// Password policy
'wgPasswordPolicy' => [
'default' => [
'policies' => [
'default' => [
'MinimalPasswordLength' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotMatchBlacklist' => true,
'MaximalPasswordLength' => 4096,
],
'bot' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
],
'sysop' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotBePopular' => 25,
],
'bureaucrat' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotBePopular' => 25,
],
],
'checks' => [
'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist'
],
],
],
// RateLimits
'+wgRateLimits' => [
'default' => [],
'metawiki' => [
'requestwiki' => [
'user' => [ 1, 3600 ],
],
],
],
// RecentChanges
'wgRCMaxAge' => [
'default' => 180 * 24 * 3600,
],
'wgRCLinkDays' => [
'defualt' => [ 1, 3, 7, 14, 30 ],
],
// RelatedArticles settings
'wgRelatedArticlesFooterWhitelistedSkins' => [
'default' => [
'minerva',
'timeless',
'vector',
],
],
'wgRelatedArticlesUseCirrusSearch' => [
'default' => false,
],
// Restriction types
'+wgRestrictionLevels' => [
'default' => [
'user',
],
'+bigforestwiki' => [
'editvoter',
],
'+cmgwiki' => [
'bureaucrat',
'sysop',
'pm',
'member',
],
'+cyclonepediawiki' => [
'bureaucrat',
'extendedconfirmed',
],
'+dpwiki' => [
'bureaucrat',
'respected',
],
'+hypopediawiki' => [
'bureaucrat',
],
'igrovyesistemywiki' => [
'trusted',
'sysmag',
'bureaucrat',
'ceo',
'co',
],
'+kyivstarwiki' => [
'co',
'ceo',
'editor',
'extendedconfirmed',
'sysmag',
'trusted',
],
'+lcars47wiki' => [
'bureaucrat',
'devteam',
],
'+marthaspeakswiki' => [
'templateeditor',
],
'+quircwiki' => [
'editstaffprotected',
],
'+sau226wiki' => [
'bureaucrat',
'consul',
],
'+jayuwikiwiki' => [
'editvoter',
],
'+pruebawiki' => [
'bureaucrat',
'consul',
],
'+radviserwiki' => [
'editor',
],
'+sovereignwiki' => [
'officer',
'game-master',
],
'+studynotekrwiki' => [
'voter',
],
'+testwiki' => [
'bureaucrat',
'consul',
],
'+thesciencearchiveswiki' => [
'templateeditor',
],
'+trexwiki' => [
'sysmag',
'bureaucrat',
'ceo',
'co',
],
'weatherwiki' => [],
],
//
'wgRestrictionTypes' => [
'default' => [
'create',
'delete',
'edit',
'move',
'upload',
],
],
// RottenLinks
'wgRottenLinksCurlTimeout' => [
'default' => 10,
],
// Robot policy
'wgDefaultRobotPolicy' => [
'default' => 'index,follow',
],
// Robot policy
'wgNamespaceRobotPolicies' => [
'default' => [],
'taswinwiki' => [
'NS_TEMPLATE' => 'noindex,nofollow',
],
],
// Referrer Policy
'wgReferrerPolicy' => [
'default' => [ 'origin-when-cross-origin', 'origin-when-crossorigin', 'origin' ],
],
// RSS Settings
'wgRSSCacheAge' => [
'default' => '3600'
],
'wgRSSProxy' => [
'default' => false,
],
'wgRSSDateDefaultFormat' => [
'default' => 'Y-m-d H:i:s'
],
// Scribunto
'wgCodeEditorEnableCore' => [
'default' => true,
],
'wgScribuntoUseCodeEditor' => [
'default' => true,
],
//
'wgScribuntoSlowFunctionThreshold' => [
'default' => 0.99,
],
'wgScribuntoEngineConf' => [
'default' => [
'luasandbox' => [
'cpuLimit' => 10,
'maxLangCacheSize' => 200,
],
'luastandalone' => [
'cpuLimit' => 10,
'maxLangCacheSize' => 200,
],
],
],
// Site notice opt out
'wmgSiteNoticeOptOut' => [
'default' => false,
],
// Server
'wgArticlePath' => [
'default' => '/wiki/$1',
],
'wgDisableOutputCompression' => [
'default' => true,
],
'wgScriptExtension' => [
'default' => '.php',
],
'wgScriptPath' => [
'default' => '/w',
],
'wgServer' => [
'default' => 'https://$lang.miraheze.org',
],
'wgShowHostnames' => [
'default' => true,
],
'wgUsePathInfo' => [
'default' => true,
],
// SiteNotice
'wgDismissableSiteNoticeForAnons' => [
'default' => true,
],
// SocialProfile
'wgUserBoard' => [
'default' => false,
],
'wgUserProfileThresholds' => [
'default' => [
'edits' => 0,
],
'allthetropes' => [
'edits' => 10,
],
],
'wgUserProfileDisplay' => [
'default' => [
'board' => false,
'friends' => false,
'foes' => 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,
],
'uncyclopedia2wiki' => [
'edit' => 50,
'vote' => 10,
'comment' => 0,
'comment_plus' => 40,
'comment_ignored' => -10,
'opinions_created' => 0,
'opinions_pub' => 10,
'referral_complete' => 0,
'friend' => 100,
'foe' => 0,
'gift_rec' => 25,
'gift_sent' => 10,
'points_winner_weekly' => 0,
'points_winner_monthly' => 0,
'user_image' => 1000,
'poll_vote' => 10,
'quiz_points' => 50,
'quiz_created' => 20,
],
],
// Statistics
'wgArticleCountMethod' => [
'default' => 'link', // To update it, you will need to run the maintenance/updateArticleCount.php script
'fourleafficswiki' => 'any',
'hrfwiki2' => 'any',
'ildrilwiki' => 'any',
'lothuialethwiki' => 'any',
],
// Squid (aka Varnish)
'wgUseSquid' => [
'default' => true,
],
'wgSquidServers' => [
'default' => [
'107.191.126.23:81', // cp2
'128.199.139.216:81', // cp3
'81.4.109.133:81', // cp4
],
],
// Style
'wgAllowUserCss' => [
'default' => true,
],
'wgAllowUserJs' => [
'default' => true,
],
'wgAppleTouchIcon' => [
'default' => '/apple-touch-icon.png',
],
'wgCentralAuthLoginIcon' => [
'default' => '/usr/share/nginx/favicons/default.ico',
],
'wgDefaultSkin' => [
'default' => 'vector',
],
'wgFavicon' => [
'default' => '/favicon.ico',
],
'wgLogo' => [
'default' => "//$wmgUploadHostname/metawiki/3/35/Miraheze_Logo.svg",
],
// Timezone
'wgLocaltimezone' => [
'default' => 'UTC',
],
// Theme
'wgDefaultTheme' => [
'default' => "",
],
// TitleBlacklist
'wgTitleBlacklistSources' => [
'default' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=Title_blacklist&action=raw',
],
'meta' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=MediaWiki:Titleblacklist&action=raw',
],
],
'wgTitleBlacklistUsernameSources' => [
'default' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=Title_blacklist&action=raw',
],
'meta' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=MediaWiki:Titleblacklist&action=raw',
],
],
'wgTidyConfig' => [
'default' => [
'driver' => 'RemexHtml'
],
],
// Translate
'wmgTranslateBlacklist' => [
'default' => [],
'metawiki' => [
'*' => [
'en' => 'English is the source language.',
],
],
'spiralwiki' => [
'*' => [
'en' => 'English is the source language.',
],
],
],
'wmgTranslateTranslationServices' => [
'default' => [],
],
'wmgTranslateDocumentationLanguageCode' => [
'default' => false,
],
// UniversalLanguageSelector
'wgULSAnonCanChangeLanguage' => [
'default' => false,
],
// UrlShortener
'wgUrlShortenerTemplate' => [
'default' => '/m/$1',
],
'wgUrlShortenerDBName' => [
'default' => 'metawiki',
],
'wgUrlShortenerDomainsWhitelist' => [
'default' => [
'(.*\.)?miraheze\.org',
'adadevelopersacademy\.wiki',
'allthetropes\.org',
'aman\.info\.tm',
'antiguabarbudacalypso\.com',
'astrapedia\.ru',
'athenapedia\.org',
'b1tes\.org',
'bconnected\.aidanmarkham\.com',
'bebaskanpengetahuan\.org',
'wiki\.ameciclo\.org',
'wiki\.autocountsoft\.com',
'wiki\.besuccess\.com',
'wiki\.clonedeploy\.org',
'wiki\.ciptamedia\.org',
'wiki\.consentcraft\.uk',
'cornetto\.online',
'dariawiki\.org',
'decrypted\.wiki',
'wiki.dobots\.nl',
'wiki\.dottorconte\.eu',
'wiki\.downhillderelicts\.com',
'wiki\.drones4nature\.info',
'wiki\.dwplive\.com',
'www\.eerstelijnszones\.be',
'embobada\.com',
'wiki\.exnihilolinux\.org',
'froggy\.info',
'fibromyalgia-engineer\.com',
'fikcyjnatv\.pl',
'wiki\.gamergeeked\.us',
'wiki\.gesamtschule-nordkirchen\.de',
'garrettcountyguide\.com',
'give\.effectively\.to',
'wiki\.grottocenter\.org',
'wiki\.gtsc\.vn',
'www\.iceposeidonwiki\.com',
'wiki\.inebriation-confederation\.com',
'wiki\.jacksonheights\.nyc',
'karagash\.info',
'wiki\.kourouklides\.com',
'kunwok\.org',
'www\.lab612\.at',
'wiki\.ldmsys\.net',
'wiki\.lostminecraftminers\.org',
'lodge\.jsnydr\.com',
'wiki\.make717\.org',
'wiki\.macc\.nyc',
'madgenderscience\.wiki',
'marinebiodiversitymatrix\.org',
'meregos\.com',
'nenawiki\.org',
'wiki\.ngscott\.net',
'nonbinary\.wiki',
'wiki\.lbcomms\.co.za',
'wiki\.rizalespe\.com',
'saf\.songcontests\.eu',
'wiki\.staraves-no\.cz',
'wiki.pupilliam\.com',
'oecumene\.org',
'www\.openonderwijs\.org',
'papelor\.io',
'permanentfuturelab\.wiki',
'pl\.nonbinary\.wiki',
'podpedia\.org',
'programming\.red',
'publictestwiki\.com',
'pwiki.arkcls.com',
'reviwiki\.info',
'russopedia\.info',
'private\.revi.wiki',
'saveta\.org',
'sdiy\.info',
'studentwiki\.ddns\.net',
'www\.splat-teams\.com',
'takethatwiki\.com',
'wiki\.taotac.org',
'taotac\.info' .
'wiki\.teessidehackspace\.org\.uk',
'wiki\.tensorflow\.community',
'thelonsdalebattalion\.co.uk',
'toonpedia\.cf',
'wiki\.tulpa\.info',
'wiki\.valentinaproject.org',
'wiki\.kaisaga.com',
'wikiescola\.com\.br',
'wiki\.worlduniversityandschool\.org' .
'wikipuk\.cl',
'wiki\.ombre\.io',
'wiki.rmbrk\.com',
'wisdomwiki\.org',
'sandbox\.wisdomwiki.org',
'savage-wiki\.com',
'speleo\.wiki',
'www\.zenbuddhism\.info',
'wiki\.zymonic\.com',
'espiral\.org',
'spiral\.wiki',
'wikibase\.revi\.wiki',
'wiki\.teamwizardry\.com',
'wiki\.svenskabriardklubben\.se',
'www\.schulwiki\.de',
'holonet\.pw',
'guiasdobrasil\.com\.br',
'enc\.for\.uz',
'docs\.websmart\.media',
'wiki\.mikrodev\.com',
'wiki\.campaign-labour\.org',
'encyclopedie\.didactiqueprofessionnelle\.org',
'www\.thesimswiki\.com',
'nonciclopedia\.org',
],
],
// VisualEditor
'wmgVisualEditorEnableDefault' => [
'default' => true,
],
'wgVisualEditorEnableWikitext' => [
'default' => false,
],
'wgVisualEditorShowBetaWelcome' => [
'default' => true,
],
'wgVisualEditorUseSingleEditTab' => [
'default' => false,
],
// Protect site config
'wgProtectSiteLimit' => [
'default' => '1 week',
],
'wgProtectSiteDefaultTimeout' => [
'default' => '1 hour',
],
// WebChat config
'wmgWebChatServer' => [
'default' => false,
],
'wmgWebChatChannel' => [
'default' => false,
],
'wmgWebChatClient' => [
'default' => false,
],
// WikiForum settings
'wgWikiForumAllowAnonymous' => [
'default' => true,
],
'wgWikiForumLogsInRC' => [
'default' => true,
],
// Wikimedia Incubator Settings
'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' => [],
],
// WikiDiscover
'wgWikiDiscoverClosedList' => [
'default' => '/srv/mediawiki/dblist/closed.dblist',
],
'wgWikiDiscoverInactiveList' => [
'default' => '/srv/mediawiki/dblist/inactive.dblist',
],
'wgWikiDiscoverPrivateList' => [
'default' => '/srv/mediawiki/dblist/private.dblist',
],
// Empty arrays (do not touch unless you know what you're doing)
'wmgClosedWiki' => [
'default' => false,
],
'wmgInactiveWiki' => [
'default' => false,
],
'wmgPrivateWiki' => [
'default' => false,
],
// Uncategorised
'wgRandomGameDisplay' => [
'default' => [
'random_picturegame' => false,
'random_poll' => false,
'random_quiz' => false,
],
],
];
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach ( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return [
'suffix' => $site,
'lang' => $lang,
'params' => [
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
],
'tags' => [],
];
}
$wgConf->siteParamsCallback = 'efGetSiteParams';
# The thing that determines the dbname
if ( defined( 'MW_DB' ) ) {
$wgDBname = MW_DB;
} elseif ( $wmgHostname === 'meta.miraheze.org' ) {
$wgDBname = 'metawiki';
} elseif ( preg_match( '/^(.*)\.m\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgDBname = $matches[1] . 'wiki';
} elseif ( preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgDBname = $matches[1] . 'wiki';
} else {
$wgDBname = '';
}
# Initialize dblist
$wgLocalDatabases = [];
$wmgDatabaseList = file( "/srv/mediawiki/dblist/all.dblist" );
// ManageWiki settings
require_once __DIR__ . "/ManageWikiExtensions.php";
require_once __DIR__ . "/ManageWikiSettings.php";
foreach ( $wmgDatabaseList as $wikiLine ) {
$wikiDB = explode( '|', $wikiLine, 6 );
list( $DBname, $siteName, $siteLang, $siteExtensions, $siteSettings ) = array_pad( $wikiDB, 6, '' );
$wgLocalDatabases[] = $DBname;
$wgConf->settings['wgSitename'][$DBname] = $siteName;
$wgConf->settings['wgLanguageCode'][$DBname] = $siteLang;
$siteExtensionsArray = explode( ",", $siteExtensions );
foreach ( $wgManageWikiExtensions as $name => $ext ) {
if ( in_array( $name, $siteExtensionsArray ) ) {
$wgConf->settings[$ext['var']][$DBname] = true;
}
}
$siteSettingsArray = json_decode( $siteSettings, true );
if ( is_array( $siteSettingsArray ) || is_object( $siteSettingsArray ) ) {
foreach ( $siteSettingsArray as $setVar => $setVal ) {
$wgConf->settings[$setVar][$DBname] = $setVal;
}
}
}
foreach ( $wgConf->settings['wgServer'] as $name => $val ) {
foreach ( $wgConf->settings['wgMobileUrlTemplate'] as $value => $mobileurl ) {
if ( $mobileurl === $wmgHostname ) {
$wgDBname = $value;
}
}
if ( $val === 'https://' . $wmgHostname ) {
$wgDBname = $name;
}
}
$wmgPrivateDatabasesList = file( "/srv/mediawiki/dblist/private.dblist" );
foreach ( $wmgPrivateDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgPrivateWiki'][$database] = true;
}
$wmgClosedDatabasesList = file( "/srv/mediawiki/dblist/closed.dblist" );
foreach ( $wmgClosedDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgClosedWiki'][$database] = true;
}
$wmgInactiveDatabasesList = file( "/srv/mediawiki/dblist/inactive.dblist" );
foreach ( $wmgInactiveDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgInactiveWiki'][$database] = true;
}
// Needs to be set AFTER $wgDBname is set to a correct value
$wgUploadDirectory = "/mnt/mediawiki-static/$wgDBname";
$wgUploadPath = "https://static.miraheze.org/$wgDBname";
$wgConf->wikis = $wgLocalDatabases;
$wgConf->extractAllGlobals( $wgDBname );
if ( preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgMobileUrlTemplate = '%h0.m.miraheze.org';
} elseif ( preg_match( '/^(.*)\.m\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgMobileUrlTemplate = '%h0.m.miraheze.org';
}
if ( !preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgCentralAuthCookieDomain = $wmgHostname;
$wgCookieDomain = $wmgHostname;
}
# Footer icon
$wgFooterIcons['poweredby']['miraheze'] = [
'src' => "https://$wmgUploadHostname/metawiki/7/7e/Powered_by_Miraheze.png",
'url' => 'https://meta.miraheze.org/wiki/',
'alt' => 'Miraheze Wiki Hosting',
];
if ( $wgDBname === 'permanentfuturelabwiki' ) {
$wgFooterIcons['poweredby']['wikiapiary'] = [
'src' => 'https://wikiapiary.com/w/images/wikiapiary/b/b4/Monitored_by_WikiApiary.png',
'url' => 'https://wikiapiary.com/wiki/Permanent_Future_Lab',
'alt' => 'Monitored by WikiApiary',
];
}
if ( $wgDBname === 'tmewiki' ) {
$wgFooterIcons['poweredby']['wikiapiary'] = [
'src' => 'https://wikiapiary.com/w/images/wikiapiary/b/b4/Monitored_by_WikiApiary.png',
'url' => 'https://wikiapiary.com/wiki/The_Multilingual_Encyclopedia_(miraheze.org)',
'alt' => 'Monitored by WikiApiary',
];
}
$wgDefaultUserOptions['enotifwatchlistpages'] = 0;
$wgDefaultUserOptions['usebetatoolbar'] = 1;