Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase.ci.php File Reference

Variables

 $wgWBCSUseCirrus = false
 CI configuration for the Wikibase Repo extension.
 
 $wgCirrusSearchDisableUpdate = true
 
 $wgWBRepoSettings ['idGenerator'] = 'auto'
 
 $wgWBRepoSettings ['dataBridgeEnabled'] = true
 
 $wgWBRepoSettings ['taintedReferencesEnabled'] = true
 
 $wgRestAPIAdditionalRouteFiles [] = 'extensions/Wikibase/repo/rest-api/routes.json'
 
 $wgWBRepoSettings ['tmpNormalizeDataValues'] = true
 
 $wgWBRepoSettings ['federatedPropertiesEnabled'] = true
 
 $wgWBRepoSettings ['federatedPropertiesSourceScriptUrl'] = 'https://wikidata.beta.wmflabs.org/w/'
 
 $wgWBRepoSettings ['siteLinkGroups'] = [ 'CI' ]
 
 $originalBadgeItems = $wgWBRepoSettings['badgeItems'] ?? []
 
 $originalRedirectBadgeItems = $wgWBRepoSettings['redirectBadgeItems'] ?? []
 
 $wgWBRepoSettings ['badgeItems']
 
 $wgWBRepoSettings ['redirectBadgeItems']
 

Variable Documentation

◆ $originalBadgeItems

$originalBadgeItems = $wgWBRepoSettings['badgeItems'] ?? []

◆ $originalRedirectBadgeItems

$originalRedirectBadgeItems = $wgWBRepoSettings['redirectBadgeItems'] ?? []

◆ $wgCirrusSearchDisableUpdate

$wgCirrusSearchDisableUpdate = true

◆ $wgRestAPIAdditionalRouteFiles

$wgRestAPIAdditionalRouteFiles[] = 'extensions/Wikibase/repo/rest-api/routes.json'

◆ $wgWBCSUseCirrus

$wgWBCSUseCirrus = false

CI configuration for the Wikibase Repo extension.

Largely uses the example config for testing, with some settings that are not part of the default example yet and also some overrides specific to browser tests.

This file is NOT an entry point the Wikibase extension. It should not be included from outside the extension.

See also
docs/options.wiki

◆ $wgWBRepoSettings [1/9]

$wgWBRepoSettings[ 'badgeItems']
Initial value:
= static function () use ( $originalBadgeItems ) {
global $wgRequest;
$badges = $wgRequest->getHeader( 'X-Wikibase-CI-Badges', WebRequest::GETHEADER_LIST ) ?: [];
return $originalBadgeItems + array_fill_keys( $badges, 'CI-badge-class' );
}
$originalBadgeItems
Definition Wikibase.ci.php:49

◆ $wgWBRepoSettings [2/9]

$wgWBRepoSettings[ 'dataBridgeEnabled'] = true

◆ $wgWBRepoSettings [3/9]

$wgWBRepoSettings[ 'federatedPropertiesEnabled'] = true

◆ $wgWBRepoSettings [4/9]

$wgWBRepoSettings[ 'federatedPropertiesSourceScriptUrl'] = 'https://wikidata.beta.wmflabs.org/w/'

◆ $wgWBRepoSettings [5/9]

$wgWBRepoSettings[ 'idGenerator'] = 'auto'

◆ $wgWBRepoSettings [6/9]

$wgWBRepoSettings[ 'redirectBadgeItems']
Initial value:
= static function () use ( $originalRedirectBadgeItems ) {
global $wgRequest;
return array_merge(
$wgRequest->getHeader( 'X-Wikibase-CI-Redirect-Badges', WebRequest::GETHEADER_LIST ) ?: []
);
}
$originalRedirectBadgeItems
Definition Wikibase.ci.php:50

◆ $wgWBRepoSettings [7/9]

$wgWBRepoSettings[ 'siteLinkGroups'] = [ 'CI' ]

◆ $wgWBRepoSettings [8/9]

$wgWBRepoSettings[ 'taintedReferencesEnabled'] = true

◆ $wgWBRepoSettings [9/9]

$wgWBRepoSettings[ 'tmpNormalizeDataValues'] = true