Manual:ImportTextFiles.php/en

Details
importTextFiles.php file is a that imports text files to pages on the wiki, optionally preserving the file timestamp. The file name (without extension) is used as the page title, optionally preceded by a given prefix.

Examples
This command imports files matching the wildcard  in the current directory to pages starting with. For example,  will be imported to the page. The file's modification timestamp will be used as the revision timestamp. Existing pages will be overwritten.

Regressions
importTextFiles.php is broken on MediaWiki 1.35.0. A patch has been merged into  and   and should be fixed in MediaWiki 1.35.1. Alternatively, you can replace the contents of importTextFiles.php with the fixed version on Gerrit.