Hello all
I am using the Proofreadpage extension to create a wiki of old Greek legislation. I can upload the images and unproofed texts and create all the Page: pages with mwclient, but I can for the life of me not figure how to create the Index: pages with properly filled-in form fields with the API. Example here:
http://textarchives.gr/wiki/index.php?title=Index:Fek-1997-a-0260.pdf&ac... (please don't save the page, or else the sample form will vanish).
Creating and saving the page is not a problem. The problem is how to fill in the form fields before saving.
Does anyone know how to do this or have a pointer to something that might get me on the right track?
Z
The ProofreadPage extension's API is read-only, and even then, can fetch only two kinds of data:
* the proofread status of a particular page * meta-information relating to the ProofreadPage extension (namespaces and quality levels)
Having said that, if you go to the edit link you provided and click "Show changes" (Εμφάνιση αλλαγών), you will see the template that the ProofreadPage extension internally fills out. It should be possible to store the wikitext of this template in your program and fill in the fields programmatically, then save the page content using the API's action=edit.
TTO
-- "Zenon Panoussis" wrote in message news:55DA4A63.2050906@provocation.net...
Hello all
I am using the Proofreadpage extension to create a wiki of old Greek legislation. I can upload the images and unproofed texts and create all the Page: pages with mwclient, but I can for the life of me not figure how to create the Index: pages with properly filled-in form fields with the API. Example here:
http://textarchives.gr/wiki/index.php?title=Index:Fek-1997-a-0260.pdf&ac... (please don't save the page, or else the sample form will vanish).
Creating and saving the page is not a problem. The problem is how to fill in the form fields before saving.
Does anyone know how to do this or have a pointer to something that might get me on the right track?
Z
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
This, that and the other wrote:
The ProofreadPage extension's API is read-only, and even then, can fetch only two kinds of data:
- the proofread status of a particular page
- meta-information relating to the ProofreadPage
extension (namespaces and quality levels)
Having said that, if you go to the edit link you provided and click "Show changes" (Εμφάνιση αλλαγών), you will see the template that the ProofreadPage extension internally fills out. It should be possible to store the wikitext of this template in your program and fill in the fields programmatically, then save the page content using the API's action=edit.
Thank you! It works. I have more than fifty thousand of those to create, so doing them by hand was unthinkable.
Z
mediawiki-api@lists.wikimedia.org