Manual:makeTestEdits.php

From Linux Web Expert

Revision as of 05:43, 7 October 2022 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.27
<translate> MediaWiki version:</translate>

makeTestEdits.php maintenance script allows a developer to made random edits for testing. This is a very helpful feature for those who run test wiki and want to create some random pages to testing a new version or patch.

オプション/引数

オプション 説明 必須かどうか 既定値
--user Valid username of an existing user on wiki <translate> Required</translate>
--count Number of edits to be made <translate> Required</translate>
--namespace Namespace number in which edits need to be made <translate> Optional</translate> 0 (Main namespace)

使用法

php maintenance/makeTestEdits.php --user UserName --count EditCounts [--namespace NamespaceNumer]

Making 20 edits with username Foo

Terminal
Spaces inside a username must be replaced with underscores ( _ ) or use double quotation like "Foo Bar"

Common error

No such user exists.

This indicates that the username is not a valid username of an existing user on wiki. If the username contains spaces, see Tip 1 above.

関連項目