To import a new page, I used the script ImportTextFile.php.
 
I just had to create a text file with the content of my new page and call the 
script with my text file as argument like that :
 
>php  ImportTextFile.php MyTextFile.txt
 
I don't see how I could do the same with the api.php. Can you tell me what is 
the command line to retrieve the current page or a page name "PAGE_1" with the 
script api.php?
 
I tried some lines found on the web using action=query and export but I don't 
get anywhere. It's seems I'm not using as I should de script api.php. 
 
 
 
> Date: Tue, 9 Nov 2010 08:00:39 -0500
> From: [email protected]
> To: [email protected]
> Subject: Re: [Mediawiki-l] How can I get the content of a wiki page
> 
> If your pages have a consistent area where the users provide their
> comments, you may need to write something that parses the current
> contents of the page, and then appends the comments section to the new
> page contents. The more structured the page is, the easier it would be
> to parse.
> 
> You can use api.php to retrieve the current page contents (as well as
> load new contents).
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of yanick
> bajazet
> Sent: Tuesday, November 09, 2010 7:36 AM
> To: [email protected]
> Subject: Re: [Mediawiki-l] How can I get the content of a wiki page
> 
> 
> I'm mean the user comments included as part of the wiki text not the
> comments that a user supplies when editing a page
> 
> 
> > Date: Tue, 9 Nov 2010 07:24:47 -0500
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [Mediawiki-l] How can I get the content of a wiki page
> > 
> > Are the user comments included as part of the wiki text? Or do you
> mean
> > the comments that a user supplies when editing a page?
> > 
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of yanick
> > bajazet
> > Sent: Tuesday, November 09, 2010 5:58 AM
> > To: [email protected]
> > Subject: [Mediawiki-l] How can I get the content of a wiki page
> > 
> > 
> > Hello,
> > 
> > I'm creating wiki pages automatically using the script
> > ImportTextFile.php (thank you Sam :-) ). But I need to be able update
> > these pages without deleting the possible user comment.
> > 
> > To do that, the only solution that I found, on the web, is to get the
> > content of my wiki page with the php script "getText.php" (from
> > maintenance) and do the merge by myself but this script seems to have
> > been deleted in the last version of mediawiki. 
> > 
> > Is there a new script or a other way to get the content of my wiki
> page
> > ? What other solutions to update wiki pages or part of them ?
> > 
> > Sorry for my english, I'm french,
> > 
> > Yanick
> > 
> > _______________________________________________
> > MediaWiki-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > 
> > This e-mail and any attachments are for the intended recipient(s) only
> and may contain proprietary, confidential material. If you are not the
> intended recipient, (even if the email address above is yours) do not
> use, retain, copy or disclose any part of this communication or any
> attachment as it is strictly prohibited and may be unlawful. If you
> believe that you have received this e-mail in error, please notify the
> sender immediately and permanently delete. This email may be a personal
> communication from the sender and as such does not represent the views
> of the company.
> > 
> > _______________________________________________
> > MediaWiki-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> This e-mail and any attachments are for the intended recipient(s) only and 
> may contain proprietary, confidential material. If you are not the intended 
> recipient, (even if the email address above is yours) do not use, retain, 
> copy or disclose any part of this communication or any attachment as it is 
> strictly prohibited and may be unlawful. If you believe that you have 
> received this e-mail in error, please notify the sender immediately and 
> permanently delete. This email may be a personal communication from the 
> sender and as such does not represent the views of the company.
> 
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
                                          
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to