Hi, I have a large number of text pages that I'd like to import as new pages 
into a new MediaWiki based site that I've set up. The pages are currently 
organized in various folders together with some corresponding media files, and 
I'd like to write a script to to import each folder as a new page in the wiki, 
with the folder's pages appearing as subpages of that page, and with the 
corresponding media files imported into the wiki, and with the text pages first 
modified in various ways to be appropriate as MediaWiki pages. I already have 
some experience creating a MediaWiki skin and some hook functions 
($wgHooks['ParserFirstCallInit'] = ...) in PHP for this wiki.

I imagine that the way to go about this is by writing a PHP script that I run 
from PuTTY, though maybe it's less complicated to call a PHP page via HTTP, or 
something else entirely; I'm not sure. Also I'm not clear about whether I ought 
to be calling maintenance scripts as per 
https://www.mediawiki.org/wiki/Manual:Maintenance_scripts or whether I'm 
supposed to be calling the MediaWiki Api as per 
http://www.mediawiki.org/wiki/API:Main_page, or something else entirely. Can 
someone please point me in the right direction?

Thank you very much,
Eli
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to