MediaWiki-Docker/Extension/WikibaseLexeme
This page instructs you to install Extension:WikibaseLexeme inside MediaWiki-Docker. All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.
Install MediaWiki-Docker
editFollow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080
, then continue with instructions on this page.
Install Wikibase
editInstall Wikibase.
Clone the repository and its dependencies
editgit clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseLexeme" extensions/WikibaseLexeme
Install Composer dependencies
editAdd this to composer.local.json
:
{
"extra": {
"merge-plugin": {
"include": [
"extensions/Wikibase/composer.json",
"extensions/WikibaseLexeme/composer.json"
]
}
}
}
Run:
docker compose exec mediawiki composer update
Modify LocalSettings.php
editIf not already there, add this to the end of LocalSettings.php
.
wfLoadExtension( 'WikibaseLexeme' );
Run maintenance scripts
editdocker compose exec mediawiki php maintenance/run.php update.php