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 <[email protected]> im Auftrag von
Manuela <[email protected]>
Gesendet: Mittwoch, 30. Januar 2019 22:21
An: [email protected]
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
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l