hi how can I enable wikibase repo in wikidata extension.
Topic on Project:Support desk
Please explain your problem clearly. There's no extension named 'Wikidata', so I suppose you're meaning Extension:Wikibase Repository.
Well now there is now an extension called extension:wikidata build and it includes wikibase and all the other required extensions init but I doint know how to enable WikibaseRepo epo in wikidata
According to Extension:Wikidata build#Configuration, you should put the following code in your wiki's LocalSettings.php (not tested):
// Load the Repo Extension (default false)
$wmgUseWikibaseRepo = true;
I have added that but it still haven't enabled it
Can you post your full LocalSettings.php?
What do you mean post my full LocalSettings.php
LocalSettings.php is the custom configuration file for your wiki. Copying all its contents into a reply could help us searching for problems. Anyway, you have to insert
require_once("$IP/extensions/Wikidata/Wikidata.php");
into it.
Oh ok I will copy it but li will leave out password
Extended content |
---|
<?php
# This file was automatically generated by the MediaWiki 1.23wmf3
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "Random Wikisaur";
$wgMetaNamespace = "Random_Wikisaur";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://en.random-wikisaur.tk";
$wgArticlePath = "/wiki/$1";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgStylePath/common/images/Wikivoyage_fantasy_balloon_logo_5_lenka_stabilo_wo_text.svg";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@en.random-wikisaur.tk";
$wgPasswordSender = "apache@en.random-wikisaur.tk";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "paladox_en";
$wgDBuser = "paladox_admin";
$wgDBpassword = "example";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "example";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "example";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
$wgReadOnly = false;
require_once( "$IP/extensions/InputBox/InputBox.php" );
require_once("$IP/extensions/Cite/Cite.php");
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
require_once( "$IP/extensions/Nuke/Nuke.php" );
require_once("$IP/extensions/Renameuser/Renameuser.php");
require_once( "$IP/extensions/UserMerge/UserMerge.php" );
// By default nobody can use this function, enable for bureaucrat?
$wgGroupPermissions['bureaucrat']['usermerge'] = true;
// optional: default is array( 'sysop' )
$wgUserMergeProtectedGroups = array( 'groupname' );
#Dynamic Page List
require_once("$IP/extensions/intersection/DynamicPageList.php");
require_once( "$IP/extensions/Interwiki/Interwiki.php" );
// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;
// To create a new user group that may edit interwiki data
// (bureaucrats can add users to this group)
#$wgGroupPermissions['developer']['interwiki'] = true; #<---delete the comment indicator as appropriate
$wgEnableScaryTranscluding = true;
$wgInterwikiMagic = true;
$wgHideInterlanguageLinks = false;
require_once( "$IP/extensions/CharInsert/CharInsert.php" );
define("NS_RANDOM_WIKISAUR_BLOG", 500);
define("NS_RANDOM_WIKISAUR_BLOG_TALK", 501);
$wgExtraNamespaces[NS_RANDOM_WIKISAUR_BLOG] = "Random_WikiSaur_Blog";
$wgExtraNamespaces[NS_RANDOM_WIKISAUR_BLOG_TALK] = "Random_WikiSaur_Blog_talk"; // underscore required
define("NS_PORTAL", 502);
define("NS_PORTAL_TALK", 503);
$wgExtraNamespaces[NS_PORTAL] = "Portal";
$wgExtraNamespaces[NS_PORTAL_TALK] = "Portal_talk"; // underscore required
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
# Enables use of WikiEditor by default but still allow users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
require_once("$IP/extensions/LocalisationUpdate/LocalisationUpdate.php");
# Diff
require_once( "$IP/extensions/Diff/Diff.php" );
require_once( "$IP/extensions/Scribunto/Scribunto.php" );
$wgScribuntoDefaultEngine = 'luastandalone';
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");
require_once( "$IP/extensions/ExtensionDistributor/ExtensionDistributor.php" );
require_once( "$IP/extensions/SiteMatrix/SiteMatrix.php" );
require_once( "$IP/extensions/MaintenanceShell/MaintenanceShell.php" );
// Grant access to Special:MaintenanceShell to the "developer" user group:
$wgGroupPermissions['developer']['maintenanceshell'] = true;
# Or
// Create a new "maintenanceshell" user group for Special:MaintenanceShell:
$wgGroupPermissions['maintenanceshell']['maintenanceshell'] = true;
$wgAllowUserCss = true;
require_once( "$IP/extensions/Echo/Echo.php" );
require_once ("$IP/extensions/CentralAuth/CentralAuth.php"); //require the extension, pretty self-explanitory
# General CentralAuth configuration
$wgCentralAuthAutoNew = true;
$wgCentralAuthDatabase = 'paladox_en'; // default is 'centralauth'
$wgCentralAuthAutoMigrate = true;
#$wgCentralAuthCookieDomain = '.example.org';
# Create the local account on pageview, set false to require a local login to create it.
$wgCentralAuthCreateOnView = true;
# Skips the "login success" page
$wgCentralAuthSilentLogin = true;
# Deprecated, will be removed soon.
$wgCentralAuthUseOldAutoLogin = false;
$wgConf = new SiteConfiguration;
# Read wiki lists
$wgLocalDatabases = array( 'paladox_en', ); //all wiki databases, as an array. Important to change.
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
); //We have the same suffix of wiki
//all databases have suffix wiki
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( 'localhost' ); //your database server. could be example.com or IP address. no http://
$wgConf->fullLoadCallback = 'wmfLoadInitialiseSettings';
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'paladox_en' => 'http://en.random-wikisaur.tk',
),
'wgScriptPath' => array(
'default' => '',
),
'wgArticlePath' => array(
'default' => '/wiki/$1',
),
//IF IT'S NOT WORKING
//keep articlepath the same as scriptpath, with /$1 at the end. So for test_wiki it would be /testwiki and /testwiki/$1
'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name!
'paladox_en' => 'en',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
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 array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
$wgFavicon = "$wgScriptPath/favicon.ico";
require_once ( "$IP/extensions/CheckUser/CheckUser.php" );
require_once("$IP/extensions/GlobalBlocking/GlobalBlocking.php");
require_once( "$IP/extensions/Gadgets/Gadgets.php" );
require_once( "$IP/extensions/CodeEditor/CodeEditor.php" );
$wgScribuntoUseGeSHi = true;
$wgScribuntoUseCodeEditor = true;
require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php";
$wgConfirmAccountRequestFormItems['Biography']['minWords'] = false;
require_once "$IP/extensions/BetaFeatures/BetaFeatures.php";
require_once "$IP/extensions/TemplateSandbox/TemplateSandbox.php";
require_once "$IP/extensions/Wikidata/Wikidata.php";
// Load the Repo Extension (default false)
$wmgUseWikibaseRepo = true;
# End of automatically generated settings.
# Add more configuration options below.
|
there you go I have removed the security code and password.
It just seems ok... but you could need some additional configuration.
ok but wikibase repo should show in special version on my wiki but it doesent
As a nearly hopeless try, you could test
$wgUseWikibaseRepo = true;
(I really don't know what wmg
means)
Otherwise, you should wait for a reply by a real tech guru.
Ok
it still dosent work ill wait till the expert can answer this but thanks for your help
Well they can update the extension to support that and to not support meaning you would add a setting to LocalSettings and you says ether true or false for people who doint or have access to sh
hi I have fixed the issue and have got it to enable it but one of these settings enabled it
$wgEnableWikibaseRepo = true; $wgEnableWikibaseClient = false; $wmgUseWikibaseRepo = true; $wmgUseWikibaseClient = false; require_once __DIR__ . "/extensions/Wikidata/Wikidata.php"; require_once __DIR__ . "/extensions/Wikidata/extensions/Wikibase/repo/ExampleSettings.php";
and by going to http://wikidata-jenkins.wmflabs.org/ci/job/wikidata-build-repo-tests/ws/ and looking at the settings in localsetting.php