rEWDA/f1d2110a5b4cmaster
/
README.md
Wikidata Build
Wikidata is using a build with Wikibase and its dependencies packaged into one git repo.
If you update the master branch of this repo it will likely be overwritten in the next 24 hours. To change things please see here
Installation
- Clone the git repo into the mediawiki extensions directory
- Add the following line to your LocalSettings.php. This entry point in turn loads all other entry points.
To enable Repo add the following
$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";
To enable Client add the following
$wgEnableWikibaseRepo = false; $wgEnableWikibaseClient = true; $wmgUseWikibaseRepo = false; $wmgUseWikibaseClient = true; require_once __DIR__ . "/extensions/Wikidata/Wikidata.php";
Configuration
Wikibase itself needs to be configured, with appropriate settings. See the below links:
Using this repo provides extra options to allow you to choose to deploy the Repo and/or Client.
// Load the Repo Extension (default false) $wmgUseWikibaseRepo = true; // Load the Client Extension (default false) $wmgUseWikibaseClient = true;
Maintenance scripts
The Maintenance scripts help within this repo will not work if you do not have the environment variable MW_INSTALL_PATH defined.
If you do not and can not define this variable please use the runScript.php maintenance script within mediawiki core (see comments in that file for instructions).
Manually update a build
Manually updating a Wikidata build requires composer to be installed on the system.
In the root Wikidata "extension" directory, run:
composer update -o
Updating this README
This readme is located here. Any changes made to the README in the Wikidata build repo will be overwritten by this file daily.