MediaWiki-Docker/GrowthExperiments

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎čeština • ‎日本語

First have a quick read of MediaWiki-Docker and install the prerequisites.

Then clone MediaWiki: git clone https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki and go into that directory: cd mediawiki

Follow the instructions from DEVELOPERS.md to install MediaWiki. Once MediaWiki is running and available at http://localhost:8080, then:

git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/GrowthExperiments" extensions/GrowthExperiments
git clone "https://gerrit.wikimedia.org/r/mediawiki/skins/Vector" skins/Vector
git clone "https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue" skins/MinervaNeue
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/PageViewInfo" extensions/PageViewInfo
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend" extensions/MobileFrontend
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/Elastica" extensions/Elastica
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch" extensions/CirrusSearch

You should have a file called LocalSettings.php in the root of the mediawiki directory; edit the file and add these lines at the bottom:

wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'Vector' );
wfLoadExtension( 'MobileFrontend' );
wfLoadExtension( 'GrowthExperiments' );
wfLoadExtension( 'PageViewInfo' );

To set up the suggested edits featureEdit

  1. Follow the ElasticSearch instructions from MediaWiki-Docker/Configuration_recipes/ElasticSearch.
  2. Copy the contents of MediaWiki:NewcomerTopicsOres.json to http://localhost:8080/index.php?title=MediaWiki:NewcomerTopicsOres.json&action=edit.
  3. Copy the contents of MediaWiki:NewcomerTasks.json to http://localhost:8080/index.php?title=MediaWiki:NewcomerTasks.json&action=edit
  4. Add $wgGENewcomerTasksTopicType = 'ores' to LocalSettings.php.
  5. Add $wgGERestbaseUrl = 'https://cs.wikipedia.org/api/rest_v1'; to LocalSettings.php.
  6. Add $wgGENewcomerTasksGuidanceEnabled = true; to LocalSettings.php.