Jump to content

MediaWiki-Docker/Extension/TemplateStyles

From mediawiki.org

This page instructs you to install Extension:TemplateStyles inside MediaWiki-Docker.

Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080, then continue with instructions on this page.

All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Clone the repository and its dependencies

[edit]
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles" extensions/TemplateStyles

Modify LocalSettings.php

[edit]

If not already there, add this to the end of LocalSettings.php.

wfLoadExtension( 'TemplateStyles' );

Install Composer dependencies

[edit]

If you haven't done so already,

mv composer.local.json-sample composer.local.json

This should include all the local extensions' composer.json files.

If you already have a composer.local.json, you can add this instead:

{
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/TemplateStyles/composer.json"
			]
		}
	}
}

Run:

docker compose exec mediawiki composer update