Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

MediaWiki-Docker/Extension/CheckUser

From mediawiki.org
<MediaWiki-Docker |Extension
Translate this page
Languages:

This page instructs you to installExtension:CheckUser insideMediaWiki-Docker.

Follow theQuickstart instructions at MediaWiki-Docker page.Once MediaWiki is running and available athttp://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]
gitclone"https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser"extensions/CheckUsergitclone"https://gerrit.wikimedia.org/r/mediawiki/skins/Vector"skins/Vector

Install Composer dependencies

[edit]

Add this tocomposer.local.json:

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

Alternatively copy

mvcomposer.local.json-samplecomposer.local.json

As this will include all extensions' composer.json files by default.

Run:

dockercomposeexecmediawikicomposerupdate

Modify LocalSettings.php

[edit]

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

wfLoadExtension('CheckUser');wfLoadSkin('Vector');

Run maintenance scripts

[edit]
dockercomposeexecmediawikiphpmaintenance/run.phpupdate.php

Giving an account the rights to use the CheckUser extension (optional)

[edit]

To be able to access the data provided by the CheckUser extension, you will need an account with the checkuser group.This can be done using the script where<username> is replaced with the username of an existing account you want to give the checkuser rights.

dockercomposeexecmediawikiphpmaintenance/run.phpcreateAndPromote.php<username>[password]--custom-groupscheckuser

Alternatively standard installations should allow granting the checkuser rights by any bureaucrat.

Adding fake data for testing (optional)

[edit]
MediaWiki version:
1.41

To effectively test the CheckUser extension, you may desire to insert fake testing data to the results tables.This can be done by running thepopulateCheckUserTablesWithSimulatedData.php maintenance script.You must change add$wgCheckUserDeveloperMode = true; to yourLocalSettings.php file to use the script.The first argument for the script is the number of testing actions to insert, which if not specified defaults to 1000.

WarningWarning:This will create real revisions and create entries in Special:Log. Do not use this on a production wiki.
dockercomposeexecmediawikiphpextensions/CheckUser/maintenance/populateCheckUserTablesWithSimulatedData.php<count>
Retrieved from "https://www.mediawiki.org/w/index.php?title=MediaWiki-Docker/Extension/CheckUser&oldid=8002150"

[8]ページ先頭

©2009-2025 Movatter.jp