« InitialiseSettings-labs.php

( version controlblameraw text )



<?php
# WARNING: This file is publicly viewable on the web. Do not put private data here.

# This file holds per-wiki overrides specific to Beta Cluster.
# For overrides common to all wikis, see CommonSettings-labs.php.
#
# This for BETA and MUST NOT be loaded for production.
#
# Usage:
# - Prefix a setting key with '-' to override all values from
# production InitialiseSettings.php.
# - Please wrap your code in functions to avoid tainting the global scope.
#
# Effective load order:
# - multiversion
# - mediawiki/DefaultSettings.php
# - wmf-config/*Services.php
# - wmf-config/InitialiseSettings.php
# - wmf-config/InitialiseSettings-labs.php [THIS FILE]
# - wmf-config/CommonSettings.php
# - wmf-config/CommonSettings-labs.php
#
# Included from: wmf-config/InitialiseSettings.php.
#

/**
* Main entry point to override production settings. Supports key beginning with
* a dash to completely override a setting.
* Settings are fetched through wmfLabsSettings() defined below.
*
* @return array
*/
function wmfLabsOverrideSettings() {
global
$wmfConfigDir, $wgConf;

// Override (or add) settings that we need within the labs environment,
// but not in production.
$betaSettings = wmfLabsSettings();

// Set configuration string placeholder 'variant' to 'beta'.
// Add a wikitag of 'beta' that can be used to merge beta specific and
// default settings by using `'+beta' => array(...),`
$wgConf->siteParamsCallback = function ( $conf, $wiki ) {
$wikiTags = [ 'beta' ];

$betaDblistTags = [ 'flow_only_labs' ];
foreach (
$betaDblistTags as $tag ) {
$dblist = MWWikiversions::readDbListFile( $tag );
if (
in_array( $wiki, $dblist ) ) {
$wikiTags[] = $tag;
}
}

return [
'params' => [ 'variant' => 'beta' ],
'tags' => $wikiTags
];
};

foreach (
$betaSettings as $key => $value ) {
if (
substr( $key, 0, 1 ) == '-' ) {
// Settings prefixed with - are completely overriden
$wgConf->settings[substr( $key, 1 )] = $value;
} elseif ( isset(
$wgConf->settings[$key] ) ) {
$wgConf->settings[$key] = array_merge( $wgConf->settings[$key], $value );
} else {
$wgConf->settings[$key] = $value;
}
}
}

/**
* Return settings for wmflabs cluster. This is used by wmfLabsOverride().
* Keys that start with a hyphen will completely override the regular settings
* in InitializeSettings.php. Keys that don't start with a hyphen will have
* their settings combined with the regular settings.
*
* @return array
*/
function wmfLabsSettings() {
global
$wmfUdp2logDest;

return [

'wgParserCacheType' => [
'default' => CACHE_MEMCACHED,
],

'wgLanguageCode' => [
'deploymentwiki' => 'en',
],

'wgSitename' => [
'deploymentwiki' => 'Deployment',
'wikivoyage' => 'Wikivoyage',
],

'-wgServer' => [
'wiktionary' => 'https://$lang.wiktionary.$variant.wmflabs.org',
'wikipedia' => 'https://$lang.wikipedia.$variant.wmflabs.org',
'wikiversity' => 'https://$lang.wikiversity.$variant.wmflabs.org',
'wikisource' => 'https://$lang.wikisource.$variant.wmflabs.org',
'wikiquote' => 'https://$lang.wikiquote.$variant.wmflabs.org',
'wikinews' => 'https://$lang.wikinews.$variant.wmflabs.org',
'wikibooks' => 'https://$lang.wikibooks.$variant.wmflabs.org',
'wikivoyage' => 'https://$lang.wikivoyage.$variant.wmflabs.org',

'commonswiki' => 'https://commons.wikimedia.$variant.wmflabs.org',
'deploymentwiki' => 'https://deployment.wikimedia.$variant.wmflabs.org',
'loginwiki' => 'https://login.wikimedia.$variant.wmflabs.org',
'metawiki' => 'https://meta.wikimedia.$variant.wmflabs.org',
'testwiki' => 'https://test.wikimedia.$variant.wmflabs.org',
'zerowiki' => 'https://zero.wikimedia.$variant.wmflabs.org',
'wikidatawiki' => 'https://wikidata.$variant.wmflabs.org',
'en_rtlwiki' => 'https://en-rtl.wikipedia.$variant.wmflabs.org',
],

'-wgCanonicalServer' => [
'wikipedia' => 'https://$lang.wikipedia.$variant.wmflabs.org',
'wikibooks' => 'https://$lang.wikibooks.$variant.wmflabs.org',
'wikiquote' => 'https://$lang.wikiquote.$variant.wmflabs.org',
'wikinews' => 'https://$lang.wikinews.$variant.wmflabs.org',
'wikisource' => 'https://$lang.wikisource.$variant.wmflabs.org',
'wikiversity' => 'https://$lang.wikiversity.$variant.wmflabs.org',
'wiktionary' => 'https://$lang.wiktionary.$variant.wmflabs.org',
'wikivoyage' => 'https://$lang.wikivoyage.$variant.wmflabs.org',

'metawiki' => 'https://meta.wikimedia.$variant.wmflabs.org',
'commonswiki' => 'https://commons.wikimedia.$variant.wmflabs.org',
'deploymentwiki' => 'https://deployment.wikimedia.$variant.wmflabs.org',
'loginwiki' => 'https://login.wikimedia.$variant.wmflabs.org',
'testwiki' => 'https://test.wikimedia.$variant.wmflabs.org',
'zerowiki' => 'https://zero.wikimedia.$variant.wmflabs.org',
'wikidatawiki' => 'https://wikidata.$variant.wmflabs.org',
'en_rtlwiki' => 'https://en-rtl.wikipedia.$variant.wmflabs.org',
],

'-wgUploadPath' => [
'default' => 'https://upload.$variant.wmflabs.org/$site/$lang',
'private' => '/w/img_auth.php',
// 'wikimania2005wiki' => 'http://upload..org/wikipedia/wikimania', // back compat
'commonswiki' => 'https://upload.$variant.wmflabs.org/wikipedia/commons',
'metawiki' => 'https://upload.$variant.wmflabs.org/wikipedia/meta',
'testwiki' => 'https://upload.$variant.wmflabs.org/wikipedia/test',
],

'-wgThumbnailBuckets' => [
'default' => [ 256, 512, 1024, 2048, 4096 ],
],

'-wgThumbnailMinimumBucketDistance' => [
'default' => 32,
],

'-wmgMathPath' => [
'default' => 'https://upload.$variant.wmflabs.org/math',
],

'-wgDebugLogFile' => [
'default' => "udp://{$wmfUdp2logDest}/wfDebug",
],

'-wmgDefaultMonologHandler' => [
'default' => 'wgDebugLogFile',
],

// Additional log channels for beta cluster
'wmgMonologChannels' => [
'+beta' => [
'CentralAuthVerbose' => 'debug',
'dnsblacklist' => 'debug',
'EventBus' => 'debug',
'JobExecutor' => [ 'logstash' => 'debug' ],
'runJobs' => [ 'logstash' => 'info' ],
'squid' => 'debug',
'MessageCache' => 'debug',
],
],

'-wmgLogstashUseCee' => [
'default' => true,
],

'wmgApplyGlobalBlocks' => [ // T123936
'default' => true,
'metawiki' => true,
'deploymentwiki' => false
],

'-wgLogo' => [
'default' => '/static/images/project-logos/betawiki.png',
'commonswiki' => '/static/images/project-logos/betacommons.png',
'metawiki' => '/static/images/project-logos/betametawiki.png', // T125942
'wikibooks' => '/static/images/project-logos/betacommons.png',
'wikidata' => '/static/images/project-logos/betawikidata.png',
'wikinews' => '/static/images/project-logos/betacommons.png',
'wikiquote' => '/static/images/project-logos/betacommons.png',
'wikisource' => '/static/images/project-logos/betacommons.png',
'wikiversity' => '/static/images/project-logos/betawikiversity.png',
'wikivoyage' => '/static/images/project-logos/betacommons.png',
'wiktionary' => '/static/images/project-logos/betacommons.png',
],

'wgFavicon' => [
'dewiki' => 'https://upload.wikimedia.org/wikipedia/commons/1/14/Favicon-beta-wikipedia.png',
],

'-wmgEnableCaptcha' => [
'default' => true,
],

'-wmgEchoCluster' => [
'default' => false,
],

# FIXME: make that settings to be applied
'-wgShowExceptionDetails' => [
'default' => true,
],

'-wgUseContributionTracking' => [
'default' => false,
],

# To help fight spam, makes rules maintained on deploymentwiki
# to be available on all beta wikis.
'-wmgAbuseFilterCentralDB' => [
'default' => 'deploymentwiki',
],
'-wmgUseGlobalAbuseFilters' => [
'default' => true,
],

// T39852
'wmgUseWikimediaShopLink' => [
'default' => false,
'enwiki' => true,
'simplewiki' => true,
],

'-wgKartographerEnableMapFrame' => [
'default' => true,
],
'wgWMECitationUsagePopulationSize' => [
'enwiki' => 1 // 100% — T213969
],
'wgWMECitationUsagePageLoadPopulationSize' => [
'enwiki' => 3 // 33.3% — T213969
],

'wgMobileUrlTemplate' => [
'default' => '%h0.m.%h1.%h2.%h3.%h4',
'wikidatawiki' => 'm.%h0.%h1.%h2.%h3', // T87440
],
'wgMFMobileFormatterHeadings' => [
'default' => [ 'h2', 'h3', 'h4', 'h5', 'h6' ], // T110436, T110837
],

'wgMinervaShowShareButton' => [
'default' => [
'base' => false,
'beta' => true
]
],
'wgMFRemovableClasses' => [
'default' => [
'base' => [ '.navbox' ],
'beta' => [ '.navbox' ],
'HTML' => [],
],
],
'wgMFPhotoUploadEndpoint' => [
'default' => 'https://commons.wikimedia.$variant.wmflabs.org/w/api.php',
],
'wgMFSpecialCaseMainPage' => [
'default' => true,
'enwiki' => false,
],
'wgMFExperiments' => [
'default' => [
],
],
'wgMinervaErrorLogSamplingRate' => [
'default' => 1,
],
'wgMinervaCountErrors' => [
'default' => true
],
# Do not run any A/B tests on beta cluster (T206179)
'-wgMinervaABSamplingRate' => [
'default' => 0,
],

'wmgULSPosition' => [
# Beta-specific
'deploymentwiki' => 'personal',
],

'wmgCommonsMetadataForceRecalculate' => [
'default' => true,
],

// Don't use an http/https proxy
'-wgCopyUploadProxy' => [
'default' => false,
],

///
/// ----------- BetaFeatures start ----------
///

// Enable all Beta Features in Beta Labs, even if not in production whitelist
'wgBetaFeaturesWhitelist' => [
'default' => false,
],

'wmgVisualEditorEnableWikitext' => [
'default' => true,
'commonswiki' => false,
],

///
/// ------------ BetaFeatures end -----------
///

'wmgUseRSSExtension' => [
'dewiki' => true,
],
'wmgRSSUrlWhitelist' => [
'dewiki' => [ 'http://de.planet.wikimedia.org/atom.xml' ],
],

'wmgContentTranslationCluster' => [
'default' => false,
],
'wmgContentTranslationCampaigns' => [
'default' => [ 'newarticle' ],
],

// Whether Compact Links is enabled for new accounts *by default*
'wmgULSCompactLinksForNewAccounts' => [
'default' => true,
],

// Whether Compact Links is enabled for anonymous users *by default*
'wmgULSCompactLinksEnableAnon' => [
'default' => true,
],

'wgSearchSuggestCacheExpiry' => [
'default' => 300,
],

'wmgUseFlow' => [
// 'flow-labs' is full set applicable on Beta Cluster.
'flow_only_labs' => true,
],
# No separate Flow DB or cluster (yet) for labs.
'-wmgFlowDefaultWikiDb' => [
'default' => false,
],
'-wmgFlowCluster' => [
'default' => false,
],
'wmgFlowEnableOptInBetaFeature' => [
'enwiki' => true,
'hewiki' => true,
],

'wgWPBBannerProperty' => [
'default' => 'P751',
],

'wmgUseRelatedArticles' => [
'default' => true,
],

'wmgExtraLanguageNames' => [
'default' => [ 'en-rtl' => 'English (rtl)' ],
],

'wgQuickSurveysConfig' => [
'default' => [
[
'name' => 'drink-survey',
'type' => 'internal',
'question' => 'anne-survey-question',
'answers' => [
'anne-survey-answer-one',
'anne-survey-answer-two',
'anne-survey-answer-three',
'anne-survey-answer-four'
],
'schema' => 'QuickSurveysResponses',
'enabled' => true,
'coverage' => 0,
'description' => 'anne-survey-description',
'platforms' => [
'desktop' => [ 'stable' ],
'mobile' => [ 'stable', 'beta' ],
],
],
[
'name' => 'internal example survey',
'type' => 'internal',
'question' => 'ext-quicksurveys-example-internal-survey-question',
'answers' => [
'ext-quicksurveys-example-internal-survey-answer-positive',
'ext-quicksurveys-example-internal-survey-answer-neutral',
'ext-quicksurveys-example-internal-survey-answer-negative',
],
'schema' => 'QuickSurveysResponses',
'enabled' => true,
'coverage' => 0,
'description' => 'ext-quicksurveys-example-internal-survey-description',
'platforms' => [
'desktop' => [ 'stable' ],
'mobile' => [ 'stable', 'beta' ],
],
],
[
'name' => 'external example survey',
'type' => 'external',
'question' => 'ext-quicksurveys-example-external-survey-question',
'description' => 'ext-quicksurveys-example-external-survey-description',
'link' => 'ext-quicksurveys-example-external-survey-link',
'privacyPolicy' => 'ext-quicksurveys-example-external-survey-privacy-policy',
'coverage' => 0,
'enabled' => true,
'platforms' => [
'desktop' => [ 'stable' ],
'mobile' => [ 'stable', 'beta' ],
],
],
],
'enwiki' => [
// T209882
[
'enabled' => true,
'type' => 'external',
'name' => 'Reader-trust-survey-en-v1',
'description' => 'Reader-trust-1-description',
'link' => 'Reader-trust-1-link',
'instanceTokenParameterName' => 'token',
'question' => 'Reader-trust-1-message',
'privacyPolicy' => 'Reader-trust-1-privacy',
'coverage' => 1, // 1 out of 1
'platforms' => [
'desktop' => [ 'stable' ],
'mobile' => [ 'stable' ],
],
],
],
],
'wmgUseSentry' => [
'default' => true,
],
'wgSentryDsn' => [
'default' => 'https://c357be0613e24340a96aeaa28dde08ad@sentry-beta.wmflabs.org/4',
],

'-wmgScorePath' => [
'default' => "//upload.beta.wmflabs.org/score",
],

'wgRateLimitsExcludedIPs' => [
'default' => [
'198.73.209.0/24', // T87841 Office IP
'162.222.72.0/21', // T126585 Sauce Labs IP range for browser tests
'66.85.48.0/21', // also Sauce Labs
'10.68.16.0/21', // Jenkins and Sauce labs T167432
],
],

'wmgUseCapiunto' => [
'default' => true,
],

'wmgUseCheckUser' => [
'default' => false,
],

'wgMediaViewerNetworkPerformanceSamplingFactor' => [
'default' => 1,
],

'wgMediaViewerUseThumbnailGuessing' => [
'default' => false, // T69651
],

'wmgUseArticlePlaceholder' => [
'default' => false,
'wikidataclient' => true,
],

'wgArticlePlaceholderRepoApiUrl' => [
'default' => 'https://wikidata.beta.wmflabs.org/w/api.php',
],

'wgLexemeLanguageCodePropertyId' => [
'default' => null,
'wikidatawiki' => 'P218',
],

'-wmgWikibaseSearchIndexProperties' => [
'default' => []
],

'-wmgWikibaseSearchIndexPropertiesExclude' => [
'default' => []
],

'-wmgWikibaseSearchStatementBoosts' => [
'default' => []
],

// For better testing of Structured Data on Commons edits
'wmgEnhancedRecentChanges' => [
'commonswiki' => true,
],

// Hard-enable 'depicts' statements for Beta Cluster Commons
'wgMediaInfoEnableFilePageDepicts' => [
'commonswiki' => true,
],

// Test the extension Collection in other languages for book creator,
// which avoids the bugs related to the PDF generator.
'wmgUseCollection' => [
'zhwiki' => true, // T128425
],

// Affects URL uploads and chunked uploads (experimental).
// Limit on other web uploads is enforced by PHP.
'wgMaxUploadSize' => [
'default' => 1024 * 1024 * 4096, // 4 GB (i.e. equals 2^31 - 1)
'ptwiki' => 1024 * 500, // 500 KB - T25186
],

'wmgUseNewsletter' => [
'default' => true, // T127297
],

// Ensure ?action=credits isn't break and allow to work
// to cache this information. See T130820.
'wgMaxCredits' => [
'default' => -1,
],

// Test PageAssessments. See T125551.
'wmgUsePageAssessments' => [
'default' => true,
],

// Test PerformanceInspector
'wmgUsePerformanceInspector' => [
'default' => true,
],

// The LOWER the value, the MORE requests will be logged.
// 100 = 1 of every 100 (1%), 1 = 1 of every 1 (100%).
'wgNavigationTimingSamplingFactor' => [
// Beta Cluster: 10% of page loads
'default' => 10,
],

'wmgUseFileImporter' => [
'default' => false,
'commonswiki' => 'FileImporter-WikimediaSitesTableSite',
'testwiki' => 'FileImporter-Site-DefaultMediaWiki',
],

'wmgUseFileExporter' => [
'default' => false,
'metawiki' => true,
'deploymentwiki' => true,
'wikipedia' => true,
],
"wgMFContentProviderClass" => [
'default' => 'MobileFrontend\ContentProviders\DefaultContentProvider',
// T207508
'enwiki' => 'MobileFrontend\ContentProviders\MwApiContentProvider',
],
// Test Wikidata descriptions on mobile: T127250
'wgMFDisplayWikibaseDescriptions' => [
'enwiki' => [
'tagline' => true, 'search' => true, 'nearby' => true, 'watchlist' => true
]
],

// Test numeric sorting. See T8948.
'wgCategoryCollation' => [
'default' => 'uppercase',
'dewiki' => 'uca-de-u-kn', // T128806
'enwiki' => 'uca-default-u-kn',
'fawiki' => 'uca-fa',
],

// Test Quiz. See T142692
'wmgUseQuiz' => [
'cawiki' => true,
],

// Test gallery settings; see T141349
'wmgGalleryOptions' => [
'default' => [
'imagesPerRow' => 0,
'imageWidth' => 120,
'imageHeight' => 120,
'captionLength' => true,
'showBytes' => true,
'mode' => 'traditional',
],
'+enwiki' => [
'mode' => 'packed', // T141349
],
],

'wgPageViewInfoWikimediaDomain' => [
'default' => 'en.wikipedia.org',
],

'wgLinterSubmitterWhitelist' => [
'default' => [
'172.16.5.63' => true // deployment-parsoid09.deployment-prep.eqiad.wmflabs
]
],
'wgLinterStatsdSampleFactor' => [
'default' => 10,
],

// T152115
'wgPageImagesLeadSectionOnly' => [
'default' => true,
],

// Probably no point in blocking Tool Labs edits to Beta Labs
'wmgAllowLabsAnonEdits' => [
'default' => true,
],

// Enable page previews for everyone in labs (T162672)
//
// Note well that the Popups extension is only loaded when either
// wmgUsePopups or wmgPopupsBetaFeature is truthy.
'-wmgUsePopups' => [
'default' => true,
],

// T171853: Enable PP EventLogging instrumentation on enwiki only so that we
// can prove the killswitch works.
'-wgPopupsEventLogging' => [
'default' => false,
'enwiki' => true,
],
// T184793: Enable the VirtualPageViews on beta so we can easily test and track
// Popups visible for more than 1s as a virtual page views
'wgPopupsVirtualPageViews' => [
'default' => true
],

// T165018: Make Page Previews (Popups) use RESTBase's page summary endpoint
// and consume the HTML returned.
'-wgPopupsGateway' => [
'default' => 'restbaseHTML',
],

'-wgPopupsStatsvSamplingRate' => [
'default' => 1,
],

'wgPopupsReferencePreviews' => [
'default' => true,
],

'wmgUseCollaborationKit' => [
'default' => false,
'enwiki' => true,
],

'wmgEnableDashikiData' => [
'default' => true,
],

'wgCognateReadOnly' => [
'default' => false,
],

'wgReadingListsCluster' => [
'default' => false,
],
'wgReadingListsDatabase' => [
'default' => 'metawiki',
],

'-wgPageCreationLog' => [
'default' => true, // T196400
],

// Use a constant MLR model for all wikis. It's not ideal, but
// no models were trained specifically for data in labs anyways.
'-wmgCirrusSearchMLRModel' => [
'default' => '20171023_enwiki_v1'
],

'wgActorTableSchemaMigrationStage' => [
'default' => SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD,
],

'wgCommentTableSchemaMigrationStage' => [
'default' => MIGRATION_NEW,
],

'wgChangeTagsSchemaMigrationStage' => [
'default' => MIGRATION_WRITE_BOTH,
],

'wgMultiContentRevisionSchemaMigrationStage' => [
'default' => SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW,
],

'wgTagStatisticsNewTable' => [
'default' => true,
],

'wmgUseJADE' => [
'default' => true,
],

'wgOresUiEnabled' => [
'default' => true,
'wikidatawiki' => false,
],
'wgOresModels' => [
'default' => [
'damaging' => [ 'enabled' => true ],
'goodfaith' => [ 'enabled' => true ],
'reverted' => [ 'enabled' => false ],
'articlequality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'cleanParent' => true ],
'draftquality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'types' => [ 1 ] ],
],
'enwiki' => [
'damaging' => [ 'enabled' => true, 'excludeBots' => true ],
'goodfaith' => [ 'enabled' => true, 'excludeBots' => true ],
'reverted' => [ 'enabled' => false ],
'articlequality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'cleanParent' => true ],
'draftquality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'types' => [ 1 ], 'excludeBots' => true, 'cleanParent' => true ],
],
],
'wgOresExcludeBots' => [
'default' => true,
'enwiki' => false,
],
// T184668
'wmgUseGlobalPreferences' => [
// Explicitly disabled on non-CentralAuth wikis in CommonSettings.php
'default' => true,
],
'wmgLocalAuthLoginOnly' => [
// Explicitly disabled on non-CentralAuth wikis in CommonSettings.php
'default' => true,
],
'wgPageTriageDraftNamespaceId' => [
'enwiki' => 118,
],
'wgPageTriageEnableOresFilters' => [
'default' => false,
'enwiki' => true,
],
'wgPageTriageEnableCopyvio' => [
'default' => false,
'enwiki' => true,
],
'wmgUseSkinPerPage' => [
'default' => false,
'metawiki' => true,
],
'wmgUseEUCopyrightCampaign' => [
'default' => false,
'metawiki' => true,
],
'wmgWikibaseCachePrefix' => [
'commonswiki' => 'commonswiki',
],
'wgWMEUnderstandingFirstDay' => [
'default' => false,
'enwiki' => true,
'kowiki' => true,
],
'wgWMEUnderstandingFirstDaySensitiveNamespaces' => [
'default' => [ 0, 1, 6, 7 ],
'enwiki' => [ 0, 1, 6, 7, 100, 101, 118, 119 ],
'kowiki' => [ 0, 1, 6, 7, 100, 101, 118, 119 ],
],
'wmgUseGrowthExperiments' => [
'enwiki' => true,
'kowiki' => true,
'cawiki' => true,
],
'wgWelcomeSurveyEnabled' => [
'enwiki' => true,
'kowiki' => true,
],
'wgGEHelpPanelEnabled' => [
'enwiki' => true,
'kowiki' => true,
'cawiki' => true,
],
'wgGEHelpPanelLoggingEnabled' => [
'enwiki' => true,
'kowiki' => true,
'cawiki' => true,
],
'wgGEHelpPanelHelpDeskTitle' => [
'enwiki' => 'Wikipedia:Help_desk',
'kowiki' => '위키백과:도움말',
'cawiki' => 'Viquipèdia:Potřebuji_pomoc',
],
'wgGEHelpPanelViewMoreTitle' => [
'enwiki' => 'Help:Contents',
'kowiki' => '위키백과:도움말',
'cawiki' => 'Ajuda:Obsah',
],
'wgGEHelpPanelLinks' => [
'enwiki' => [
[
'title' => 'Help:Contents',
'text' => 'The most helpful help link',
'id' => 'example',
],
[
'title' => 'Wikipedia:Community_portal',
'text' => 'Community Portal',
'id' => 'community',
],
[
'title' => 'Wikipedia:Village_pump',
'text' => 'Village pump',
'id' => 'village-pump',
],
[
'title' => 'Portal:Contents',
'text' => 'Portal contents',
'id' => 'portal-contents',
],
[
'title' => 'Wikipedia:File_Upload_Wizard',
'text' => 'File upload wizard',
'id' => 'file-upload-wizard',
]
],
'kowiki' => [
[
'title' => '위키백과:도움말',
'text' => '도움말',
'id' => 'example',
]
],
'cawiki' => [
[
'title' => 'mw:Help:Contents',
'text' => 'Ajuda',
'id' => 'help',
]
]
],
'wgGEHelpPanelSearchEnabled' => [
'default' => true,
],
'wgGEHelpPanelSearchForeignAPI' => [
'default' => 'https://en.wikipedia.org/w/api.php',
'cawiki' => 'https://cs.wikipedia.org/w/api.php',
'kowiki' => 'https://ko.wikipedia.org/w/api.php',
],
'wgWelcomeSurveyPrivacyPolicyUrl' => [
'kowiki' => 'https://foundation.wikimedia.org/wiki/%EC%83%88_%EC%82%AC%EC%9A%A9%EC%9E%90_%ED%99%98%EC%98%81_%EC%84%A4%EB%AC%B8_%EA%B0%9C%EC%9D%B8_%EC%A0%95%EB%B3%B4_%EB%B3%B4%ED%98%B8_%EC%A0%95%EC%B1%85',
],
'wgWelcomeSurveyExperimentalGroups' => [
'kowiki' => [
'beta_no_survey' => [
'range' => '0-3',
'questions' => [],
],
'beta_specialpage' => [
'format' => 'specialpage',
'range' => '4-6',
'questions' => [
'reason',
'reason-other',
'edited',
'topics',
'topics-other-nojs',
'topics-other-js',
'email',
'mentor-info',
'mentor',
],
],
'beta_popup' => [
'format' => 'popup',
'range' => '7-9',
'nojs-fallback' => 'beta_specialpage',
'questions' => [
'reason',
'edited',
'topics',
'topics-other-js',
'email',
'mentor-info',
'mentor',
]
]
]
],
'wgEnablePartialBlocks' => [
'default' => false,
'enwiki' => true,
'wikidatawiki' => true,
],
'wgPropertySuggesterClassifyingPropertyIds' => [
'wikidatawiki' => [ 694 ],
],
'wgPropertySuggesterInitialSuggestions' => [
'wikidatawiki' => [ 694 ],
],
'wgPropertySuggesterDeprecatedIds' => [
'wikidatawiki' => [ 107 ],
],
'wmgWikibaseRepoBadgeItems' => [
'wikidatawiki' => [
'Q49444' => 'wb-badge-goodarticle',
'Q49447' => 'wb-badge-featuredarticle',
'Q49448' => 'wb-badge-recommendedarticle', // T72268
'Q49449' => 'wb-badge-featuredlist', // T72332
'Q49450' => 'wb-badge-featuredportal', // T75193
'Q98649' => 'wb-badge-notproofread', // T97014 - Wikisource badges
'Q98650' => 'wb-badge-problematic',
'Q98658' => 'wb-badge-proofread',
'Q98651' => 'wb-badge-validated'
],
],
'wmgWikibaseClientBadgeClassNames' => [
'default' => [
'Q49444' => 'badge-goodarticle',
'Q49447' => 'badge-featuredarticle',
'Q49448' => 'badge-recommendedarticle', // T72268
'Q49449' => 'badge-featuredlist', // T72332
'Q49450' => 'badge-featuredportal', // T75193
'Q98649' => 'badge-notproofread', // T97014 - Wikisource badges
'Q98650' => 'badge-problematic',
'Q98658' => 'badge-proofread',
'Q98651' => 'badge-validated'
],
],
'wgWikimediaBadgesCommonsCategoryProperty' => [
'default' => 'P725',
'commonswiki' => null,
],
'wmgUseEntitySourceBasedFederation' => [
'default' => true,
],
'wmgWBRepoFormatterUrlProperty' => [
'wikidatawiki' => 'P9094',
],
'wmgWBRepoPreferredGeoDataProperties' => [
'wikidatawiki' => [
'P740',
'P477',
],
],
'wmgWBRepoPreferredPageImagesProperties' => [
'wikidatawiki' => [
'P448',
'P715',
'P723',
'P733',
'P964',
],
],
'wgArticlePlaceholderImageProperty' => [
'default' => 'P964',
],
'wmgWikibaseClientEchoIcon' => [
'default' => [ 'path' => '/static/images/wikibase/echoIcon.svg' ],
],
'wmgWBRepoCanonicalUriProperty' => [
'default' => null,
'wikidata' => 'P174944',
],
'wmgWikibaseClientUseTermsTableSearchFields' => [
'default' => true,
],
'wmgWikibaseClientPropertyOrderUrl' => [
'default' => null,
],
'wmgWikibaseClientRepoUrl' => [
'default' => 'https://wikidata.beta.wmflabs.org',
],
'wmgWikibaseClientRepoConceptBaseUri' => [
'default' => 'http://www.wikidata.beta.wmflabs.org/entity/'
],
'wmgWikibaseClientRepositories' => [
'default' => [
'' => [
'repoDatabase' => 'wikidatawiki',
'entityNamespaces' => [
'item' => 0,
'property' => 120,
'lexeme' => 146,
],
'baseUri' => 'https://wikidata.beta.wmflabs.org/entity/',
'prefixMapping' => [ '' => '' ],
],
'commons' => [
'repoDatabase' => 'commonswiki',
'entityNamespaces' => [ 'mediainfo' => '6/mediainfo' ],
'baseUri' => 'https://commons.wikimedia.beta.wmflabs.org/entity/',
'prefixMapping' => [],
],
],
],

// T208763
//
'wmgWikibaseClientPageSchemaSplitTestSamplingRatio' => [
// 50% of pages on the Beta Cluster will be sampled. Half of those (25%) will receive the new
// treatment.
'default' => 0.5,
],
'wmgWikibaseClientPageSchemaSplitTestBuckets' => [
// Pages are bucketed in [0, .5) for control and [.5, 1) for treatment. If a page is sampled
// and bucketed in treatment, it will contain the new schema changes. Otherwise, it will have
// no changes.
'default' => [
'control',
'treatment',
]
],

// T209143
'wmgWikibaseUseSSRTermbox' => [
'default' => false,
'wikidatawiki' => true,
],

'wmgWikibaseSSRTermboxServerUrl' => [
'default' => '',
'wikidatawiki' => 'https://ssr-termbox.wmflabs.org/termbox',
],

'wmgWikibaseRepoForeignRepositories' => [
'default' => [],
'commonswiki' => [
'wikidata' => [
'repoDatabase' => 'wikidatawiki',
'baseUri' => 'https://wikidata.beta.wmflabs.org/entity/',
'supportedEntityTypes' => [ 'item', 'property' ],
'prefixMapping' => [],
'entityNamespaces' => [ 'item' => 0, 'property' => 120 ]
],
],
],
// If set to "false": No alternate links will be added to desktop pages,
// and MobileFrontend won't add a canonical tag
// If set to "true": Alternate link will be added, MF will add a canonical tag
'wgMFNoindexPages' => [
'default' => true
],

'wgWBQualityConstraintsEnableConstraintsCheckJobsRatio' => [
'default' => 100, // 100% of edits trigger post edit job run constraint checks
],

// T209957 configure WikibaseQualityConstraints extension on beta
// the default values are entity IDs on production Wikidata,
// the custom values are corresponding entities on Beta Wikidata
// (most of them were automatically imported from production Wikidata)
'wgWBQualityConstraintsInstanceOfId' => [
'wikidatawiki' => 'P694',
],
'wgWBQualityConstraintsSubclassOfId' => [
'wikidatawiki' => 'P279',
],
'wgWBQualityConstraintsPropertyConstraintId' => [
'wikidatawiki' => 'P241048',
],
'wgWBQualityConstraintsExceptionToConstraintId' => [
'wikidatawiki' => 'P241049',
],
'wgWBQualityConstraintsConstraintStatusId' => [
'wikidatawiki' => 'P241050',
],
'wgWBQualityConstraintsMandatoryConstraintId' => [
'wikidatawiki' => 'Q505095',
],
'wgWBQualityConstraintsDistinctValuesConstraintId' => [
'wikidatawiki' => 'Q505096',
],
'wgWBQualityConstraintsMultiValueConstraintId' => [
'wikidatawiki' => 'Q505097',
],
'wgWBQualityConstraintsUsedAsQualifierConstraintId' => [
'wikidatawiki' => 'Q505098',
],
'wgWBQualityConstraintsSingleValueConstraintId' => [
'wikidatawiki' => 'Q505099',
],
'wgWBQualityConstraintsSymmetricConstraintId' => [
'wikidatawiki' => 'Q505100',
],
'wgWBQualityConstraintsTypeConstraintId' => [
'wikidatawiki' => 'Q505101',
],
'wgWBQualityConstraintsValueTypeConstraintId' => [
'wikidatawiki' => 'Q505102',
],
'wgWBQualityConstraintsInverseConstraintId' => [
'wikidatawiki' => 'Q505103',
],
'wgWBQualityConstraintsItemRequiresClaimConstraintId' => [
'wikidatawiki' => 'Q505104',
],
'wgWBQualityConstraintsValueRequiresClaimConstraintId' => [
'wikidatawiki' => 'Q505105',
],
'wgWBQualityConstraintsConflictsWithConstraintId' => [
'wikidatawiki' => 'Q505106',
],
'wgWBQualityConstraintsOneOfConstraintId' => [
'wikidatawiki' => 'Q505107',
],
'wgWBQualityConstraintsMandatoryQualifierConstraintId' => [
'wikidatawiki' => 'Q505108',
],
'wgWBQualityConstraintsAllowedQualifiersConstraintId' => [
'wikidatawiki' => 'Q505109',
],
'wgWBQualityConstraintsRangeConstraintId' => [
'wikidatawiki' => 'Q505110',
],
'wgWBQualityConstraintsDifferenceWithinRangeConstraintId' => [
'wikidatawiki' => 'Q505111',
],
'wgWBQualityConstraintsCommonsLinkConstraintId' => [
'wikidatawiki' => 'Q505112',
],
'wgWBQualityConstraintsContemporaryConstraintId' => [
'wikidatawiki' => 'Q505113',
],
'wgWBQualityConstraintsFormatConstraintId' => [
'wikidatawiki' => 'Q505114',
],
'wgWBQualityConstraintsUsedForValuesOnlyConstraintId' => [
'wikidatawiki' => 'Q505115',
],
'wgWBQualityConstraintsUsedAsReferenceConstraintId' => [
'wikidatawiki' => 'Q505116',
],
'wgWBQualityConstraintsNoBoundsConstraintId' => [
'wikidatawiki' => 'Q505117',
],
'wgWBQualityConstraintsAllowedUnitsConstraintId' => [
'wikidatawiki' => 'Q505118',
],
'wgWBQualityConstraintsSingleBestValueConstraintId' => [
'wikidatawiki' => 'Q505119',
],
'wgWBQualityConstraintsAllowedEntityTypesConstraintId' => [
'wikidatawiki' => 'Q505120',
],
'wgWBQualityConstraintsCitationNeededConstraintId' => [
'wikidatawiki' => 'Q505121',
],
'wgWBQualityConstraintsPropertyScopeConstraintId' => [
'wikidatawiki' => 'Q505122',
],
'wgWBQualityConstraintsClassId' => [
'wikidatawiki' => 'P241051',
],
'wgWBQualityConstraintsRelationId' => [
'wikidatawiki' => 'P241052',
],
'wgWBQualityConstraintsInstanceOfRelationId' => [
'wikidatawiki' => 'Q505123',
],
'wgWBQualityConstraintsSubclassOfRelationId' => [
'wikidatawiki' => 'Q505124',
],
'wgWBQualityConstraintsInstanceOrSubclassOfRelationId' => [
'wikidatawiki' => 'Q505125',
],
'wgWBQualityConstraintsPropertyId' => [
'wikidatawiki' => 'P694',
],
'wgWBQualityConstraintsQualifierOfPropertyConstraintId' => [
'wikidatawiki' => 'P241054',
],
'wgWBQualityConstraintsMinimumQuantityId' => [
'wikidatawiki' => 'P241055',
],
'wgWBQualityConstraintsMaximumQuantityId' => [
'wikidatawiki' => 'P241056',
],
'wgWBQualityConstraintsMinimumDateId' => [
'wikidatawiki' => 'P241057',
],
'wgWBQualityConstraintsMaximumDateId' => [
'wikidatawiki' => 'P241058',
],
'wgWBQualityConstraintsNamespaceId' => [
'wikidatawiki' => 'P241059',
],
'wgWBQualityConstraintsFormatAsARegularExpressionId' => [
'wikidatawiki' => 'P241060',
],
'wgWBQualityConstraintsSyntaxClarificationId' => [
'wikidatawiki' => 'P241061',
],
'wgWBQualityConstraintsConstraintScopeId' => [
'wikidatawiki' => 'P241062',
],
'wgWBQualityConstraintsSeparatorId' => [
'wikidatawiki' => 'P241063',
],
'wgWBQualityConstraintsConstraintCheckedOnMainValueId' => [
'wikidatawiki' => 'Q505126',
],
'wgWBQualityConstraintsConstraintCheckedOnQualifiersId' => [
'wikidatawiki' => 'Q505127',
],
'wgWBQualityConstraintsConstraintCheckedOnReferencesId' => [
'wikidatawiki' => 'Q505128',
],
'wgWBQualityConstraintsNoneOfConstraintId' => [
'wikidatawiki' => 'Q505129',
],
'wgWBQualityConstraintsIntegerConstraintId' => [
'wikidatawiki' => 'Q505130',
],
'wgWBQualityConstraintsWikibaseItemId' => [
'wikidatawiki' => 'Q505131',
],
'wgWBQualityConstraintsWikibasePropertyId' => [
'wikidatawiki' => 'Q505132',
],
'wgWBQualityConstraintsWikibaseLexemeId' => [
'wikidatawiki' => 'Q505133',
],
'wgWBQualityConstraintsWikibaseFormId' => [
'wikidatawiki' => 'Q505134',
],
'wgWBQualityConstraintsWikibaseSenseId' => [
'wikidatawiki' => 'Q505135',
],
'wgWBQualityConstraintsPropertyScopeId' => [
'wikidatawiki' => 'P241064',
],
'wgWBQualityConstraintsAsMainValueId' => [
'wikidatawiki' => 'Q505136',
],
'wgWBQualityConstraintsAsQualifiersId' => [
'wikidatawiki' => 'Q505137',
],
'wgWBQualityConstraintsAsReferencesId' => [
'wikidatawiki' => 'Q505138',
],
];
}
# wmflLabsSettings()