diff --git a/LocalExtensions.php b/LocalExtensions.php index 40b0398f..05637c6e 100644 --- a/LocalExtensions.php +++ b/LocalExtensions.php @@ -1,1053 +1,1055 @@ 'Enable ApprovedRevs in this namespace?', 'main' => true, 'talk' => true, 'vestyle' => true, 'overridedefault' => false ]; } if ( $wmgUseArticleFeedbackv5 ) { wfLoadExtension( 'ArticleFeedbackv5' ); $wgManageWikiPermissionsAdditionalRights['oversight']['aft-oversighter'] = true; } if ( $wmgUseArticleRatings ) { wfLoadExtension( 'ArticleRatings' ); } if ( $wmgUseArticleToCategory2 ) { wfLoadExtension( 'ArticleToCategory2' ); } if ( $wmgUseAuthorProtect ) { wfLoadExtension( 'AuthorProtect' ); } if ( $wmgUseAutoCreateCategoryPages ) { wfLoadExtension( 'AutoCreateCategoryPages' ); } if ( $wmgUseBabel ) { wfLoadExtension( 'Babel' ); } if ( $wmgUseBlogPage ) { require_once "$IP/extensions/SocialProfile/SocialProfile.php"; wfLoadExtension( 'BlogPage' ); $wgBlogPageDisplay['comments_of_day'] = false; } if ( $wmgUseMSCalendar ) { wfLoadExtension( 'MsCalendar' ); } if ( $wmgUseCargo ) { wfLoadExtension( 'Cargo' ); $wgCargoDBname = $wgDBname; $wgCargoDBtype = $wgDBtype; $wgCargoDBserver = "81.4.109.166"; $wgCargoDBuser = $wgDBuser; $wgCargoDBpassword = $wgDBpassword; } if ( $wmgUseCategoryTree ) { wfLoadExtension( 'CategoryTree' ); } if ( $wmgUseCapiunto ) { wfLoadExtension( 'Capiunto' ); } if ( $wmgUseCharInsert ) { wfLoadExtension( 'CharInsert' ); } if ( $wmgUseCirrusSearch ) { require_once "$IP/extensions/CirrusSearch/CirrusSearch.php"; wfLoadExtension( 'Elastica' ); $wgCirrusSearchClusters = [ 'default' => [ [ 'host' => 'elasticsearch-lb.miraheze.org', 'transport' => 'Https', 'port' => '443', ], ], ]; if ( $wmgSearchType ) { $wgSearchType = 'CirrusSearch'; } if ( $wmgDisableSearchUpdate ) { $wgDisableSearchUpdate = true; } else { $wgDisableSearchUpdate = false; } } if ( $wmgUseCite ) { wfLoadExtension( 'Cite' ); } if ( $wmgUseCiteThisPage ) { wfLoadExtension( 'CiteThisPage' ); } if ( $wmgUseCitoid ) { wfLoadExtension( 'Citoid' ); $wgCitoidServiceUrl = "https://{$wmgHostname}/api/rest_"; } if ( $wmgUseCodeEditor ) { wfLoadExtension( 'CodeEditor' ); } if ( $wmgUseCodeMirror ) { wfLoadExtension( 'CodeMirror' ); } if ( $wmgUseCollapsibleVector ) { wfLoadExtension( 'CollapsibleVector' ); } if ( $wmgUseCollection ) { require_once "$IP/extensions/Collection/Collection.php"; $wgCommunityCollectionNamespace = 5; $wgCollectionMWServeURL = 'https://ocg-lb.miraheze.org'; $wgCollectionPODPartners = false; wfLoadExtension( 'ElectronPdfService' ); } if ( $wmgUseComments ) { wfLoadExtension( 'Comments' ); } if ( $wmgUseContactPage ) { wfLoadExtension( 'ContactPage' ); // Contact Page is a fairly complex (well long) extension to configure. // All config should be in the file below on a wikidb basis. require_once "/srv/mediawiki/config/ContactPage.php"; } if ( $wmgUseContributionScores ) { require_once "$IP/extensions/ContributionScores/ContributionScores.php"; } if ( $wmgUseCreatePage ) { require_once "$IP/extensions/CreatePage/CreatePage.php"; } if ( $wmgUseCreateRedirect ) { wfLoadExtension( 'CreateRedirect' ); } if ( $wmgUseCrossReference ) { require_once "$IP/extensions/CrossReference/CrossReference.php"; } if ( $wmgUseCSS ) { wfLoadExtension( 'CSS' ); } if ( $wmgUseDarkVector ) { wfLoadSkin( 'DarkVector' ); $wgManageWikiSettings['wgDefaultSkin']['options']['DarkVector'] = 'darkvector'; $wgManageWikiSettings['wgDefaultTheme']['options']['DarkVector'] = 'darkvector'; } /** * This is a global extension, but we define the config here. */ if ( $wmgUseDataDump ) { wfLoadExtension( 'DataDump' ); $wgDataDumpDirectory = "/mnt/mediawiki-static/private/dumps/${wgDBname}/"; $wgDataDump = [ 'xml' => [ 'file_ending' => '.xml.gz', 'generate' => [ 'type' => 'mwscript', 'script' => "$IP/maintenance/dumpBackup.php", 'options' => [ '--full', '--output', "gzip:${wgDataDumpDirectory}" . '${filename}', ], ], 'limit' => 1, 'permissions' => [ 'view' => 'view-dump', 'generate' => 'generate-dump', 'delete' => 'delete-dump', ], ], 'image' => [ 'file_ending' => '.zip', 'generate' => [ 'type' => 'script', 'script' => '/usr/bin/zip', 'options' => [ '-r', $wgDataDumpDirectory . '${filename}', "/mnt/mediawiki-static/${wgDBname}/" ], ], 'limit' => 1, 'permissions' => [ 'view' => 'view-dump', 'generate' => 'managewiki-restricted', 'delete' => 'delete-dump', ], ], ]; $wgAvailableRights[] = 'view-dump'; $wgAvailableRights[] = 'generate-dump'; $wgAvailableRights[] = 'delete-dump'; } if ( $wmgUseDescription2 ) { wfLoadExtension( 'Description2' ); $wgEnableMetaDescriptionFunctions = true; } if ( $wmgUseDisambiguator ) { wfLoadExtension( 'Disambiguator' ); } if ( $wmgUseDisplayTitle ) { wfLoadExtension( 'DisplayTitle' ); } if ( $wmgUseDismissableSiteNotice ) { wfLoadExtension( 'DismissableSiteNotice' ); } if ( $wmgUseDuskToDawn ) { wfLoadSkin( 'DuskToDawn' ); $wgManageWikiSettings['wgDefaultSkin']['options']['DuskToDawn'] = 'dusktodawn'; $wgManageWikiSettings['wgDefaultTheme']['options']['DuskToDawn'] = 'dusktodawn'; } if ( $wmgUseDonateBoxInSidebar ) { require_once "$IP/extensions/DonateBoxInSidebar/DonateBoxInSidebar.php"; } if ( $wmgUseDPLForum ) { wfLoadExtension( 'DPLForum' ); } if ( $wmgUseDummyFandoomMainpageTags ) { wfLoadExtension( 'DummyFandoomMainpageTags' ); } if ( $wmgUseDuplicator ) { require_once "$IP/extensions/Duplicator/Duplicator.php"; } if ( $wmgUseDynamicPageList ) { wfLoadExtension( 'DynamicPageList' ); } if ( $wmgUseDynamicPageList3 ) { wfLoadExtension( 'DynamicPageList3' ); } if ( $wmgUseEditcount ) { wfLoadExtension( 'Editcount' ); } if ( $wmgUseEditSubpages ) { wfLoadExtension( 'EditSubpages' ); } if ( $wmgUseEducationProgram ) { wfLoadExtension( 'EducationProgram' ); } if ( $wmgUseElectronPdfService ) { wfLoadExtension( 'ElectronPdfService' ); } if ( $wmgUseErudite ) { wfLoadSkin( 'erudite' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Erudite'] = 'erudite'; $wgManageWikiSettings['wgDefaultTheme']['options']['Erudite'] = 'erudite'; } if ( $wmgUseEventLogging ) { wfLoadExtension( 'EventLogging' ); $wgEventLoggingBaseUri = 'http://localhost:8080/event.gif'; $wgEventLoggingFile = '$wmgLogDir/debuglogs/events.log'; } if ( $wmgUseFancyBoxThumbs ) { require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php"; } if ( $wmgUseFlaggedRevs ) { require_once "$IP/extensions/FlaggedRevs/FlaggedRevs.php"; $wgFlaggedRevsProtection = $wmgFlaggedRevsProtection; $wgFlaggedRevsTags = $wmgFlaggedRevsTags; $wgFlaggedRevsTagsRestrictions = $wmgFlaggedRevsTagsRestrictions; $wgFlaggedRevsTagsAuto = $wmgFlaggedRevsTagsAuto; $wgFlaggedRevsAutopromote = $wmgFlaggedRevsAutopromote; $wgFlaggedRevsAutoReview = $wmgFlaggedRevsAutoReview; $wgFlaggedRevsRestrictionLevels = $wmgFlaggedRevsRestrictionLevels; $wgSimpleFlaggedRevsUI = $wmgSimpleFlaggedRevsUI; $wgFlaggedRevsLowProfile = $wmgFlaggedRevsLowProfile; $wgManageWikiNamespacesAdditional['wgFlaggedRevsNamespaces'] = [ 'name' => 'Enable FlaggedRevs in this namespace?', 'main' => true, 'talk' => false, 'vestyle' => false, 'overridedefault' => false ]; } if ( $wmgUseFlow ) { wfLoadExtension( 'Flow' ); $wgVirtualRestConfig['modules']['parsoid'] = [ 'url' => 'https://parsoid-lb.miraheze.org:443', 'prefix' => $wgDBname, 'forwardCookies' => true, ]; $wgManageWikiPermissionsAdditionalRights['oversight']['flow-suppress'] = true; $wgManageWikiNamespacesExtraContentModels['Flow'] = 'flow-board'; } if ( $wmgUseFeaturedFeeds ) { wfLoadExtension( 'FeaturedFeeds' ); } if ( $wmgUseForeground ) { wfLoadSkin( 'foreground' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Foreground'] = 'foreground'; $wgManageWikiSettings['wgDefaultTheme']['options']['Foreground'] = 'foreground'; } if ( $wmgUseGadgets ) { wfLoadExtension( 'Gadgets' ); } if ( $wmgUseGamepress ) { wfLoadSkin( 'Gamepress' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Gamepress'] = 'gamepress'; $wgManageWikiSettings['wgDefaultTheme']['options']['Gamepress'] = 'gamepress'; } if ( $wmgUseGenealogy ) { wfLoadExtension( 'Genealogy' ); } if ( $wmgUseGeoCrumbs ) { wfLoadExtension( 'GeoCrumbs' ); } if ( $wmgUseGeoData ) { wfLoadExtension( 'GeoData' ); } if ( $wmgUseGettingStarted ) { wfLoadExtension( 'GettingStarted' ); // Required deps of GettingStarted wfLoadExtension( 'EventLogging' ); wfLoadExtension( 'GuidedTour' ); $wgEventLoggingBaseUri = 'http://localhost:8080/event.gif'; $wgEventLoggingFile = '$wmgLogDir/debuglogs/events.log'; } if ( $wmgUseGlobalUserPage ) { wfLoadExtension( 'GlobalUserPage' ); } if ( $wmgUseGraph ) { wfLoadExtension( 'Graph' ); } if ( $wmgUseGroupsSidebar ) { require_once "$IP/extensions/GroupsSidebar/GroupsSidebar.php"; } if ( $wmgUseGuidedTour ) { wfLoadExtension( 'GuidedTour' ); } if ( $wmgUseHAWelcome ) { wfLoadExtension( 'HAWelcome' ); } if ( $wmgUseHeaderTabs ) { wfLoadExtension( 'HeaderTabs' ); } if ( $wmgUseHideSection ) { wfLoadExtension( 'HideSection' ); } if ( $wmgUseHighlightLinksInCategory ) { wfLoadExtension( 'HighlightLinksInCategory' ); } if ( $wmgUseImageMap ) { wfLoadExtension( 'ImageMap' ); } if ( $wmgUseImageRating ) { wfLoadExtension( 'ImageRating' ); } if ( $wmgUseInputBox ) { wfLoadExtension( 'InputBox' ); } if ( $wmgUseJavascriptSlideshow ) { require_once "$IP/extensions/JavascriptSlideshow/JavascriptSlideshow.php"; } if ( $wmgUseJosa ) { wfLoadExtension( 'Josa' ); } if ( $wmgUseJSBreadCrumbs ) { wfLoadExtension( 'JSBreadCrumbs' ); } if ( $wmgUseKartographer ) { + wfLoadExtension( 'JsonConfig' ); + wfLoadExtension( 'Kartographer' ); } if ( $wmgUseLabeledSectionTransclusion ) { wfLoadExtension( 'LabeledSectionTransclusion' ); } if ( $wmgUseLiberty ) { wfLoadSkin( 'liberty' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Liberty'] = 'liberty'; $wgManageWikiSettings['wgDefaultTheme']['options']['Liberty'] = 'liberty'; } if ( $wmgUseLinkSuggest ) { wfLoadExtension( 'LinkSuggest' ); } if ( $wmgUseLinkTarget ) { require_once "$IP/extensions/LinkTarget/LinkTarget.php"; } if ( $wmgUseLinkTitles ) { wfLoadExtension( 'LinkTitles' ); } if ( $wmgUseListings ) { wfLoadExtension( 'Listings' ); } if ( $wmgUseLoopsCombo ) { require_once "$IP/extensions/Variables/Variables.php"; require_once "$IP/extensions/Loops/Loops.php"; } if ( $wmgUseMagicNoCache ) { wfLoadExtension( 'MagicNoCache' ); } if ( $wmgUseMaps ) { wfLoadExtension( 'Maps' ); $egMapsDefaultService = 'openlayers'; $egMapsDisableSmwIntegration = true; $egMapsGMaps3ApiKey = $wmgMapsGMaps3ApiKey; } if ( $wmgUseMask ) { wfLoadSkin( 'Mask' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Mask'] = 'mask'; $wgManageWikiSettings['wgDefaultTheme']['options']['Mask'] = 'mask'; } if ( $wmgUseMassEditRegex ) { require_once "$IP/extensions/MassEditRegex/MassEditRegex.php"; } if ( $wmgUseMassMessage ) { wfLoadExtension( 'MassMessage' ); $wgManageWikiNamespacesAdditional['wgNamespacesToPostIn'] = [ 'name' => 'Can MassMessage post messages in this namespace?', 'main' => true, 'talk' => false, 'vestyle' => false, 'overridedefault' => false ]; } if ( $wmgUseMath ) { wfLoadExtension( 'Math' ); } if ( $wmgUseMediaWikiChat ) { wfLoadExtension( 'MediaWikiChat' ); } if ( $wmgUseMetrolook ) { wfLoadSkin( 'Metrolook' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Metrolook'] = 'metrolook'; $wgManageWikiSettings['wgDefaultTheme']['options']['Metrolook'] = 'metrolook'; } if ( $wmgUseMobileFrontend ) { wfLoadExtension( 'MobileFrontend' ); wfLoadSkin( 'MinervaNeue' ); $wgMFAutodetectMobileView = $wmgMFAutodetectMobileView; $wgMFMobileHeader = 'X-Subdomain'; $wgMFNoindexPages = false; $wgHooks['EnterMobileMode'][] = function () { global $wgIncludeLegacyJavaScript; // Disable loading of legacy wikibits in the mobile web experience $wgIncludeLegacyJavaScript = false; return true; }; $wgManageWikiSettings['wgDefaultSkin']['options']['MinervaNeue'] = 'minerva'; $wgManageWikiSettings['wgDefaultTheme']['options']['MinervaNeue'] = 'minerva'; } if ( $wmgUseModeration ) { wfLoadExtension( 'Moderation' ); } if ( $wmgUseModernSkylight ) { wfLoadSkin( 'ModernSkylight' ); $wgManageWikiSettings['wgDefaultSkin']['options']['ModernSkylight'] = 'modernskylight'; $wgManageWikiSettings['wgDefaultTheme']['options']['ModernSkylight'] = 'modernskylight'; } if ( $wmgUseMsCatSelect ) { wfLoadExtension( 'MsCatSelect' ); } if ( $wmgUseMsLinks ) { wfLoadExtension( 'MsLinks' ); } if ( $wmgUseMsUpload ) { wfLoadExtension( 'MsUpload' ); } if ( $wmgUseMultimediaViewer ) { wfLoadExtension( 'MultimediaViewer' ); if ( $wmgUse3D ) { $wgMediaViewerExtensions['stl'] = 'mmv.3d'; } } if ( $wmgUseMultiBoilerplate ) { wfLoadExtension( 'MultiBoilerplate' ); $wgMultiBoilerplateDisplaySpecialPage = true; $wgMultiBoilerplateOptions = false; } if ( $wmgUseNewestPages ) { wfLoadExtension( 'NewestPages' ); } if ( $wmgUseNews ) { require_once "$IP/extensions/News/News.php"; } if ( $wmgUseNewSignupPage ) { wfLoadExtension( 'NewSignupPage' ); } if ( $wmgUseNewsletter ) { wfLoadExtension( 'Newsletter' ); } if ( $wmgUseNewUserMessage ) { wfLoadExtension( 'NewUserMessage' ); } if ( $wmgUseNewUserNotif ) { require_once "$IP/extensions/NewUserNotif/NewUserNotif.php"; } if ( $wmgUseNostalgia ) { wfLoadSkin( 'Nostalgia' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Nostalgia'] = 'nostalgia'; $wgManageWikiSettings['wgDefaultTheme']['options']['Nostalgia'] = 'nostalgia'; } if ( $wmgUseNoTitle ) { wfLoadExtension( 'NoTitle' ); $wgRestrictDisplayTitle = false; } if ( $wmgUseNukeDPL ) { wfLoadExtension( 'NukeDPL' ); } if ( $wmgUseNumberedHeadings ) { wfLoadExtension( 'NumberedHeadings' ); } if ( $wmgUseOpenGraphMeta ) { wfLoadExtension( 'OpenGraphMeta' ); } if ( $wmgUsePagedTiffHandler ) { wfLoadExtension( 'PagedTiffHandler' ); } if ( $wmgUsePageForms ) { wfLoadExtension( 'PageForms' ); } if ( $wmgUsePageNotice ) { require_once "$IP/extensions/PageNotice/PageNotice.php"; } if ( $wmgUsePageTriage ) { wfLoadExtension( 'PageTriage' ); } if ( $wmgUsePDFEmbed ) { wfLoadExtension( 'PDFEmbed' ); } if ( $wmgUsePdfHandler ) { wfLoadExtension( 'PdfHandler' ); } if ( $wmgUsePipeEscape ) { require_once "$IP/extensions/PipeEscape/PipeEscape.php"; } if ( $wmgUsePivot ) { wfLoadSkin( 'pivot' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Pivot'] = 'pivot'; $wgManageWikiSettings['wgDefaultTheme']['options']['Pivot'] = 'pivot'; } if ( $wmgUsePoem ) { wfLoadExtension( 'Poem' ); } if ( $wmgUsePoll ) { require_once "$IP/extensions/Poll/Poll.php"; } if ( $wmgUsePollNY ) { wfLoadExtension( 'PollNY' ); } if ( $wmgUsePortableInfobox ) { wfLoadExtension( 'PortableInfobox' ); } if ( $wmgUsePopups ) { wfLoadExtension( 'PageImages' ); wfLoadExtension( 'Popups' ); wfLoadExtension( 'TextExtracts' ); } if ( $wmgUseProofreadPage ) { wfLoadExtension( 'ProofreadPage' ); $wgExtraNamespaces[250] = 'Page'; $wgExtraNamespaces[251] = 'Page_talk'; $wgExtraNamespaces[252] = 'Index'; $wgExtraNamespaces[253] = 'Index_talk'; $wgProofreadPageNamespaceIds = [ 'index' => 252, 'page' => 250 ]; } if ( $wmgUseProtectSite ) { wfLoadExtension( 'ProtectSite' ); } if ( $wmgUsePurge ) { require_once "$IP/extensions/Purge/Purge.php"; $wgAvailableRights[] = 'purge'; } if ( $wmgUseQuiz ) { wfLoadExtension( 'Quiz' ); } if ( $wmgUseQuizGame ) { wfLoadExtension( 'QuizGame' ); } if ( $wmgUseRandomGameUnit ) { wfLoadExtension( 'RandomGameUnit' ); } if ( $wmgUseRandomImage ) { wfLoadExtension( 'RandomImage' ); } if ( $wmgUseRandomSelection ) { wfLoadExtension( 'RandomSelection' ); } if ( $wmgUseRefreshed ) { wfLoadSkin( 'Refreshed' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Refreshed'] = 'refreshed'; $wgManageWikiSettings['wgDefaultTheme']['options']['Refreshed'] = 'refreshed'; } if ( $wmgUseRelatedArticles ) { wfLoadExtension( 'RelatedArticles' ); $wgRelatedArticlesUseCirrusSearch = false; } if ( $wmgUseReplaceText ) { wfLoadExtension( 'ReplaceText' ); } if ( $wmgUseRevisionSlider ) { wfLoadExtension( 'RevisionSlider' ); } if ( $wmgUseRSS ) { wfLoadExtension( 'RSS' ); $wgRSSUrlWhitelist = [ "*" ]; } if ( $wmgUseSandboxLink ) { wfLoadExtension( 'SandboxLink' ); } if ( $wmgUseScratchBlocks ) { wfLoadExtension( "ScratchBlocks" ); } if ( $wmgUseScore ) { wfLoadExtension( 'Score' ); } if ( $wmgUseSimpleChanges ) { wfLoadExtension( 'SimpleChanges' ); } if ( $wmgUseShortURL ) { wfLoadExtension( 'UrlShortener' ); } if ( $wmgUseSimpleTooltip ) { require_once "$IP/extensions/SimpleTooltip/SimpleTooltip.php"; } if ( $wmgUseSiteScout ) { wfLoadExtension( 'SiteScout' ); } if ( $wmgUseSocialProfile ) { require_once "$IP/extensions/SocialProfile/SocialProfile.php"; } if ( $wmgUseSpoilers ) { wfLoadExtension( 'Spoilers' ); } if ( $wmgUseSubpageFun ) { require_once "$IP/extensions/SubpageFun/SubpageFun.php"; } if ( $wmgUseSubPageList3 ) { wfLoadExtension( 'SubPageList3' ); } if ( $wmgUseTabsCombination ) { wfLoadExtension( 'Tabber' ); wfLoadExtension( 'Tabs' ); } if ( $wmgUseTemplateSandbox ) { wfLoadExtension( 'TemplateSandbox' ); $wgManageWikiNamespacesAdditional['wgTemplateSandboxEditNamespaces'] = [ 'name' => 'Can TemplateSandbox be used in this namespace?', 'main' => true, 'talk' => true, 'vestyle' => false, 'overridedefault' => false ]; } if ( $wmgUseTemplateStyles ) { wfLoadExtension( 'TemplateStyles' ); } if ( $wmgUseTemplateWizard ) { wfLoadExtension( 'TemplateWizard' ); wfLoadExtension( 'TemplateData' ); } if ( $wmgUseTranslate ) { wfLoadExtension( 'UniversalLanguageSelector' ); require_once "$IP/extensions/Translate/Translate.php"; $wgTranslateBlacklist = $wmgTranslateBlacklist; $wgTranslateTranslationServices = $wmgTranslateTranslationServices; $wgTranslateDocumentationLanguageCode = $wmgTranslateDocumentationLanguageCode; require_once "/srv/mediawiki/config/TranslateConfigHack.php"; $wgULSGeoService = false; } if ( $wmgUseThanks ) { wfLoadExtension( 'Thanks' ); } if ( $wmgUseTheme ) { wfLoadExtension( 'Theme' ); } if ( $wmgUseTimedMediaHandler ) { wfLoadExtension( 'TimedMediaHandler' ); $wgFFmpeg2theoraLocation = '/usr/bin/ffmpeg2theora'; } if ( $wmgUseTimeline ) { wfLoadExtension( 'Timeline' ); } if ( $wmgUseTitleKey ) { wfLoadExtension( 'TitleKey' ); } if ( $wmgUseTocTree ) { wfLoadExtension( 'TocTree' ); } if ( $wmgUseTweeki ) { wfLoadSkin( 'Tweeki' ); $wgManageWikiSettings['wgDefaultSkin']['options']['Tweeki'] = 'tweeki'; $wgManageWikiSettings['wgDefaultTheme']['options']['Tweeki'] = 'tweeki'; } if ( $wmgUseTwoColConflict ) { wfLoadExtension( 'TwoColConflict' ); } if ( $wmgUseUniversalLanguageSelector ) { wfLoadExtension( 'UniversalLanguageSelector' ); $wgULSGeoService = false; } if ( $wmgUseUploadsLink ) { wfLoadExtension( 'UploadsLink' ); } if ( $wmgUseUrlGetParameters ) { require_once "$IP/extensions/UrlGetParameters/UrlGetParameters.php"; } if ( $wmgUseUserWelcome ) { require_once "$IP/extensions/SocialProfile/SocialProfile.php"; wfLoadExtension( 'SocialProfile/UserWelcome' ); } if ( $wmgUseVariables ) { require_once "$IP/extensions/Variables/Variables.php"; } if ( $wmgUseVisualEditor ) { wfLoadExtension( 'VisualEditor' ); $wgVirtualRestConfig['modules']['parsoid'] = [ 'url' => 'https://parsoid-lb.miraheze.org:443', 'prefix' => $wgDBname, 'forwardCookies' => true, ]; if ( $wmgVisualEditorEnableDefault ) { $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor"; } else { $wgDefaultUserOptions['visualeditor-enable'] = 0; } $wgManageWikiNamespacesAdditional['wgVisualEditorAvailableNamespaces'] = [ 'name' => 'Enable VisualEditor in this namespace?', 'main' => true, 'talk' => true, 'vestyle' => true, 'overridedefault' => false ]; // Load TemplateData wfLoadExtension( 'TemplateData' ); } if ( $wmgUseVoteNY ) { wfLoadExtension( 'VoteNY' ); } if ( $wmgUseWebChat ) { wfLoadExtension( 'WebChat' ); $wgWebChatClient = $wmgWebChatClient; $wgWebChatServer = $wmgWebChatServer; $wgWebChatChannel = $wmgWebChatChannel; $wgWebChatClients['Mibbit']['url'] = 'https://embed.mibbit.com/index.html'; } if ( $wmgUseWhoIsWatching ) { wfLoadExtension( 'WhoIsWatching' ); } if ( $wmgUseWidgets ) { wfLoadExtension( 'Widgets' ); } if ( $wmgUseWikiCategoryTagCloud ) { wfLoadExtension( 'WikiCategoryTagCloud' ); } if ( $wmgUseWikidataPageBanner ) { wfLoadExtension( 'WikidataPageBanner' ); $wgManageWikiNamespacesAdditional['wgWPBNamespaces'] = [ 'name' => 'Enable WikidataPageBanner in this namespace?', 'main' => true, 'talk' => true, 'vestyle' => false, 'overridedefault' => false ]; } if ( $wmgUseWikibaseRepository ) { $wgEnableWikibaseRepo = true; require_once "$IP/extensions/Wikibase/repo/Wikibase.php"; } if ( $wmgUseWikibaseClient ) { $wgEnableWikibaseClient = true; require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; } if ( $wmgUseWikibaseRepository || $wmgUseWikibaseClient ) { // Includes Wikibase Configuration. There is a global and per-wiki system here. require_once "/srv/mediawiki/config/Wikibase.php"; } if ( $wmgUseWikiForum ) { wfLoadExtension( 'WikiForum' ); $wgAvailableRights[] = 'wikiforum-admin'; $wgAvailableRights[] = 'wikiforum-moderator'; $wgCaptchaTriggers['wikiforum'] = true; } if ( $wmgUsewikihiero ) { wfLoadExtension( 'wikihiero' ); } if ( $wmgUseWikiLove ) { wfLoadExtension( 'WikiLove' ); $wgWikiLoveGlobal = true; } if ( $wmgUseWikimediaIncubator ) { wfLoadExtension( 'WikimediaIncubator' ); } if ( $wmgUseWikiSeo ) { wfLoadExtension( 'WikiSEO' ); } if ( $wmgUseWikiTextLoggedInOut ) { wfLoadExtension( 'WikiTextLoggedInOut' ); } if ( $wmgUseYouTube ) { wfLoadExtension( 'YouTube' ); } diff --git a/extension-list b/extension-list index 5ec8fdf2..177c3c7f 100644 --- a/extension-list +++ b/extension-list @@ -1,235 +1,236 @@ $IP/extensions/3D/extension.json $IP/extensions/AJAXPoll/extension.json $IP/extensions/AddThis/extension.json $IP/extensions/AddHTMLMetaAndTitle/extension.json $IP/extensions/AdminLinks/extension.json $IP/extensions/ApprovedRevs/extension.json $IP/extensions/ArticleFeedbackv5/extension.json $IP/extensions/ArticleRatings/extension.json $IP/extensions/ArticleToCategory2/extension.json $IP/extensions/AuthorProtect/extension.json $IP/extensions/AutoCreateCategoryPages/extension.json $IP/extensions/Babel/extension.json $IP/extensions/BetaFeatures/extension.json $IP/extensions/BlogPage/extension.json $IP/extensions/CSS/extension.json $IP/extensions/Cargo/extension.json $IP/extensions/CategoryTree/extension.json $IP/extensions/CentralAuth/extension.json $IP/extensions/CentralNotice/extension.json $IP/extensions/CharInsert/extension.json $IP/extensions/CheckUser/extension.json $IP/extensions/CirrusSearch/CirrusSearch.php $IP/extensions/Cite/extension.json $IP/extensions/CiteThisPage/extension.json $IP/extensions/Citoid/extension.json $IP/extensions/CodeEditor/extension.json $IP/extensions/CodeMirror/extension.json $IP/extensions/CollapsibleVector/extension.json $IP/extensions/Collection/Collection.php $IP/extensions/Comments/extension.json $IP/extensions/ConfirmEdit/ReCaptchaNoCaptcha/extension.json $IP/extensions/ConfirmEdit/extension.json $IP/extensions/ContactPage/extension.json $IP/extensions/ContentTranslation/extension.json $IP/extensions/ContributionScores/ContributionScores.php $IP/extensions/CookieWarning/extension.json $IP/extensions/CreatePage/CreatePage.php $IP/extensions/CreateRedirect/extension.json $IP/extensions/CreateWiki/extension.json $IP/extensions/CrossReference/extension.json $IP/extensions/DataDump/extension.json $IP/extensions/Description2/extension.json $IP/extensions/DPLForum/extension.json $IP/extensions/Disambiguator/extension.json $IP/extensions/DiscordNotifications/extension.json $IP/extensions/DismissableSiteNotice/extension.json $IP/extensions/DisplayTitle/extension.json $IP/extensions/DummyFandoomMainpageTags/extension.json $IP/extensions/Duplicator/Duplicator.php $IP/extensions/DynamicPageList/extension.json $IP/extensions/DynamicPageList3/extension.json $IP/extensions/Echo/extension.json $IP/extensions/EditSubpages/extension.json $IP/extensions/Editcount/extension.json $IP/extensions/EducationProgram/extension.json $IP/extensions/ElectronPdfService/extension.json $IP/extensions/Elastica/extension.json $IP/extensions/EventLogging/extension.json $IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php $IP/extensions/FeaturedFeeds/extension.json $IP/extensions/FlaggedRevs/FlaggedRevs.php $IP/extensions/Flow/extension.json $IP/extensions/Gadgets/extension.json $IP/extensions/Genealogy/extension.json $IP/extensions/GeoCrumbs/extension.json $IP/extensions/GeoData/extension.json $IP/extensions/GettingStarted/extension.json $IP/extensions/GlobalBlocking/extension.json $IP/extensions/GlobalCssJs/extension.json $IP/extensions/GlobalPreferences/extension.json $IP/extensions/GlobalUserPage/extension.json $IP/extensions/Graph/extension.json $IP/extensions/GroupsSidebar/GroupsSidebar.php $IP/extensions/GuidedTour/extension.json $IP/extensions/HAWelcome/extension.json $IP/extensions/HeaderTabs/extension.json $IP/extensions/HideSection/extension.json $IP/extensions/HighlightLinksInCategory/extension.json $IP/extensions/ImageMap/extension.json $IP/extensions/ImageRating/extension.json $IP/extensions/InputBox/extension.json $IP/extensions/Interwiki/extension.json $IP/extensions/JavascriptSlideshow/JavascriptSlideshow.php $IP/extensions/Josa/extension.json $IP/extensions/JSBreadCrumbs/extension.json +$IP/extensions/JsonConfig/extension.json $IP/extensions/Kartographer/extension.json $IP/extensions/LabeledSectionTransclusion/extension.json $IP/extensions/LinkSuggest/extension.json $IP/extensions/LinkTarget/LinkTarget.php $IP/extensions/LinkTitles/extension.json $IP/extensions/Listings/extension.json $IP/extensions/LocalisationUpdate/extension.json $IP/extensions/LoginNotify/extension.json $IP/extensions/Loops/Loops.php $IP/extensions/MagicNoCache/extension.json $IP/extensions/ManageWiki/extension.json $IP/extensions/Maps/extension.json $IP/extensions/MassEditRegex/MassEditRegex.php $IP/extensions/MassMessage/extension.json $IP/extensions/Math/extension.json $IP/extensions/MediaWikiChat/extension.json $IP/extensions/MirahezeMagic/extension.json $IP/extensions/MobileDetect/MobileDetect.php $IP/extensions/MobileFrontend/extension.json $IP/extensions/Moderation/extension.json $IP/extensions/MsCalendar/extension.json $IP/extensions/MsCatSelect/extension.json $IP/extensions/MsLinks/extension.json $IP/extensions/MsUpload/extension.json $IP/extensions/MultiBoilerplate/extension.json $IP/extensions/MultiUpload/extension.json $IP/extensions/MultimediaViewer/extension.json $IP/extensions/NewSignupPage/extension.json $IP/extensions/NewUserMessage/extension.json $IP/extensions/NewUserNotif/NewUserNotif.php $IP/extensions/NewestPages/extension.json $IP/extensions/News/News.php $IP/extensions/Newsletter/extension.json $IP/extensions/NoTitle/extension.json $IP/extensions/Nuke/extension.json $IP/extensions/NukeDPL/extension.json $IP/extensions/NumberedHeadings/extension.json $IP/extensions/OATHAuth/extension.json $IP/extensions/OAuth/extension.json $IP/extensions/OpenGraphMeta/extension.json $IP/extensions/PDFEmbed/extension.json $IP/extensions/PageForms/extension.json $IP/extensions/PageImages/extension.json $IP/extensions/PageNotice/PageNotice.php $IP/extensions/PageTriage/extension.json $IP/extensions/PagedTiffHandler/extension.json $IP/extensions/ParserFunctions/extension.json $IP/extensions/PdfHandler/extension.json $IP/extensions/Poem/extension.json $IP/extensions/PipeEscape/PipeEscape.php $IP/extensions/Poll/Poll.php $IP/extensions/PollNY/extension.json $IP/extensions/PortableInfobox/extension.json $IP/extensions/Popups/extension.json $IP/extensions/ProofreadPage/extension.json $IP/extensions/ProtectSite/extension.json $IP/extensions/Purge/Purge.php $IP/extensions/Quiz/extension.json $IP/extensions/Poem/extension.json $IP/extensions/RottenLinks/extension.json $IP/extensions/RSS/extension.json $IP/extensions/RandomGameUnit/extension.json $IP/extensions/RandomImage/extension.json $IP/extensions/RandomSelection/extension.json $IP/extensions/RelatedArticles/extension.json $IP/extensions/Renameuser/extension.json $IP/extensions/ReplaceText/extension.json $IP/extensions/RevisionSlider/extension.json $IP/extensions/SandboxLink/extension.json $IP/extensions/Score/extension.json $IP/extensions/ScratchBlocks/extension.json $IP/extensions/Scribunto/Scribunto.php $IP/extensions/SimpleChanges/extension.json $IP/extensions/SimpleTooltip/SimpleTooltip.php $IP/extensions/SiteScout/extension.json $IP/extensions/SocialProfile/SocialProfile.php $IP/extensions/SocialProfile/SystemGifts/extension.json $IP/extensions/SocialProfile/UserActivity/extension.json $IP/extensions/SocialProfile/UserBoard/extension.json $IP/extensions/SocialProfile/UserGifts/extension.json $IP/extensions/SocialProfile/UserRelationship/extension.json $IP/extensions/SocialProfile/UserStats/extension.json $IP/extensions/SocialProfile/UserWelcome/extension.json $IP/extensions/SpamBlacklist/extension.json $IP/extensions/Spoilers/extension.json $IP/extensions/SubPageList3/extension.json $IP/extensions/SubpageFun/SubpageFun.php $IP/extensions/SyntaxHighlight_GeSHi/extension.json $IP/extensions/Tabber/extension.json $IP/extensions/Tabs/extension.json $IP/extensions/TemplateData/extension.json $IP/extensions/TemplateSandbox/extension.json $IP/extensions/TemplateStyles/extension.json $IP/extensions/TemplateWizard/extension.json $IP/extensions/TextExtracts/extension.json $IP/extensions/Thanks/extension.json $IP/extensions/Theme/extension.json $IP/extensions/TimedMediaHandler/extension.json $IP/extensions/Timeline/extension.json $IP/extensions/TitleBlacklist/extension.json $IP/extensions/TitleKey/extension.json $IP/extensions/TocTree/extension.json $IP/extensions/TorBlock/extension.json $IP/extensions/Translate/Translate.php $IP/extensions/TwoColConflict/extension.json $IP/extensions/UniversalLanguageSelector/extension.json $IP/extensions/UploadsLink/extension.json $IP/extensions/UserMerge/extension.json $IP/extensions/UrlGetParameters/UrlGetParameters.php $IP/extensions/UrlShortener/extension.json $IP/extensions/Variables/Variables.php $IP/extensions/VisualEditor/extension.json $IP/extensions/VoteNY/extension.json $IP/extensions/WebChat/extension.json $IP/extensions/WhoIsWatching/extension.json $IP/extensions/Widgets/extension.json $IP/extensions/WikiCategoryTagCloud/extension.json $IP/extensions/WikiDiscover/extension.json $IP/extensions/WikiEditor/extension.json $IP/extensions/WikiForum/extension.json $IP/extensions/WikiLove/extension.json $IP/extensions/WikimediaIncubator/extension.json $IP/extensions/WikiSEO/extension.json $IP/extensions/WikiTextLoggedInOut/extension.json $IP/extensions/Wikibase/client/WikibaseClient.php $IP/extensions/Wikibase/repo/Wikibase.php $IP/extensions/WikidataPageBanner/extension.json $IP/extensions/YouTube/extension.json $IP/extensions/cldr/extension.json $IP/extensions/wikihiero/extension.json $IP/skins/CologneBlue/skin.json $IP/skins/DarkVector/skin.json $IP/skins/DuskToDawn/skin.json $IP/skins/Gamepress/skin.json $IP/skins/liberty/skin.json $IP/skins/Mask/skin.json $IP/skins/Metrolook/skin.json $IP/skins/MinervaNeue/skin.json $IP/skins/Modern/skin.json $IP/skins/ModernSkylight/skin.json $IP/skins/MonoBook/skin.json $IP/skins/Nostalgia/skin.json $IP/skins/Refreshed/skin.json $IP/skins/Timeless/skin.json $IP/skins/Tweeki/skin.json $IP/skins/Vector/skin.json $IP/skins/apex/skin.json $IP/skins/erudite/skin.json $IP/skins/foreground/skin.json $IP/skins/pivot/skin.json