Many user scripts and gadgets, such as Twinkle, UserMessages, etc., need to post on various talk pages.

With the development of Flow, there are now two possible types of talk pages to deal with (not counting LQT, which this solution does not handle), old-style and Flow. User talk pages are already starting to use Flow on a very limited opt-in basis (I think the number is still less than I have fingers).

Now, you can use MessagePoster to post to a page without knowing this information ahead of time. The documentation is at https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.messagePoster.factory , and you can see an example of how it's used at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/977f7ad8ade23a7ce5326a993bdf48c8beb42db0/resources%2Fsrc%2Fmediawiki%2Fmediawiki.feedback.js .

Feel free to reply, or ask on #wikimedia-collaboration, if you have any questions.

Matt Flaschen

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to