Hi Manuela,
my proposed approach would use JavaScript to access the MediaWiki Action API. There is no
need to call the API from PHP or Python.
Just register a JavaScript using ResourceLoader and do something like
$( '#content' ).on( 'submit', '.mycreatepageform', function() {
var api = new mw.Api();
api.postWithToken( 'csrf', {
action: 'edit',
...
} )
.done(...);
} );
--
Robert
________________________________
Von: MediaWiki-l <mediawiki-l-bounces(a)lists.wikimedia.org> im Auftrag von Manuela
<pressephotografin(a)gmail.com>
Gesendet: Mittwoch, 30. Januar 2019 22:21
An: mediawiki-l(a)lists.wikimedia.org
Betreff: Re: [MediaWiki-l] Extension which creates a Wikipage with content
API:Edit seems promising, but I have to figure out how to use it.
Unfortunately are the programming samples written in Python and not in PHP.
I want to learn Python, anyway (PHP is really hard to read for me, the
greater-than-signs and the $-sign are piercing my eyeballs ;-), I wonder who
designed this language )
Thanks again, Robert,
greetings
Manuela
--
Sent from:
http://mediawiki-i.429.n8.nabble.com/
MediaWiki-I | Mailing List
Archive<http://mediawiki-i.429.n8.nabble.com/>
mediawiki-i.429.n8.nabble.com
MediaWiki-I forum and mailing list archive. MediaWiki announcements and site admin list
This is a multilingual list for help/support with running/configuring MediaWiki. It is
intended for people who...
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l