I'm working inside mediawiki php,but I just beginning. Can you tell me when I finished editing a article and clicked the save button,which variable takes the content of the edit box? Or which function handles the rawText?
Thanks vanessa lee
-----Original Message----- From: Platonides Platonides@gmail.com To: wikitech-l@lists.wikimedia.org Date: Wed, 21 Oct 2009 00:18:47 +0200 Subject: Re: [Wikitech-l] Add record to database
李琴 wrote:
Hi, I have already got the article data from the wikipedia and I stored
it
on my computer .Now I want to add the article to the local wiki. I have done a lot of reaserches and I know that there are a lot of things to do. If add a record to the page table ,then the revision,recentchange,text,pagelink table and so on will be changed.So I think maybe there is a easy way to do that .
Can you tell me what should I do ? Should I simply use 'insert,update,select...'words?
Sincerely looking froward you help, thanks
vanessa lee
If you're working inside mediawiki php.
$wgTitle = Title::newFromText( "MyArticle" ); $wgArticle = new Article( $wgTitle ); $wgArticle->insertNewArticle( "Some text", '', false, false );
If you don't want to work with php, use maintenance/importTextFile.php
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l