Manual:MakeTestEdits.php/fi

MediaWiki version:
1.27
Category:MediaWiki code/fi#MakeTestEdits.php

Details

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.

Options/Arguments

Option Description Required? Default value
--userValid username of an existing user on wikiRequired
--countNumber of edits to be madeRequired
--namespaceNamespace number in which edits need to be madeOptional0 (Main namespace)

Usage

php maintenance/run.php makeTestEdits --user UserName --count EditCounts [--namespace NamespaceNumer]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

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

Kyseistä käyttäjää ei ole olemassa.

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.

Katso myös

Category:Maintenance scripts/fi Category:Content maintenance scripts/fi
Category:Content maintenance scripts/fi Category:Maintenance scripts/fi Category:MediaWiki code/fi