Wikimedia
Add parameters to MediaWiki's importTextFiles.php maintenance script
The importTextFiles.php
maintenance script, which reads text files from disk and imports them as pages on the wiki, currently only supports three options: --user
, --summary
, --use-timestamp
.
Your task is to add a few additional options to this script:
--bot
: Whether to mark the edit as a bot edit. (This may require extending WikiRevision to provide this functionality.)--overwrite
: Whether to overwrite existing pages. (The default behaviour is to skip pages that already exist.) If--use-timestamp
is also supplied, the script should skip pages whose current revision is more recent than the file's timestamp.--prefix
: A string to place in front of the file name. Examples:"Template:"
,"MyData/"
,"Template:Meteorological observations "
(with final space).--rc
: If supplied, entries should be placed in Recent Changes for the newly created revisions. (By default, this is not done.)
Task tags
Students who completed this task
unicornisaurous