I’m forking a wiki, therefore I have imported an XML dump in a fresh MediaWiki installation.
This dump also contains revisions and user pages (in the User:
namespace), which I want to keep. So there are many links that lead to (existent as well as non-existent) user pages.
However, as I don’t have access to the user database of the original wiki, I have no chance to reserve these usernames for their original owners. So to prevent that someone registers in my wiki with a username that was used in the original wiki (so this new user would automatically own all revisions done by the old user with the same name), I want to lock all previously used usernames.
How could I do this?
As there are more than hundred users, I don’t want to solve this manually.
$wgReservedUsernames
, I guess). So to answer your question: help with both, but for the part about extracting from XML I think it would be sufficient to state in which XML elements/attributes the usernames are specified (but more detailed guidance is welcome, of course). The XML file has a size of ~ 500 MB, btw.