On Thu, 10 Jul 2014 10:56:28 +0200, Sigbert Klinke sigbert@wiwi.hu-berlin.de wrote:
for my extension I also deliver some test pages. Currently I'am exporting the test pages into a XML file and the wiki adminstrator could import them with importDump.php.
Is there a way that the extension automatically integrates some pages into the wiki (of course into my own namespace)?
You could probably do it as part of the extension installation/upgrade process (which happens when the user executes `php maintenance/update.php`). I'm not sure how to set it up, but it should be possible.
You might also want to see how the main page is created during MediaWiki installation, see the Installer::createMainpage() method in /includes/installer/Installer.php.