[09:06:33] am I right in thinking if I want the list of user rights (for myself) in JS, I have to make an API query for that - it seems groups are in the mw.config, but not rights? [09:10:39] looks like it, yes [14:09:19] is there way to escape mw.msg messages? say if my message is "{{diff|$1}}" [14:09:37] i.e. i want to actually see those braces in the message, not expand the template [14:10:05] inductiveload: mw.message(…).plain() [14:12:57] cool beans [14:13:09] also thanks Lucas, forgot to say earlier :-) [14:13:28] ^^ [15:36:03] inductiveload: mw.user.getRights/getGroups [15:36:45] https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.user-method-getGroups [15:37:29] yes, that's what I'm doing [15:37:35] Makes the query for you and caches it in case anything else needs it, / may have it already if something else called it before you [15:38:04] just wondering if i could avoid delaying everything for an API call [15:39:14] oh i didn't know it was cached [15:39:42] * inductiveload uploaded an image: (8KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/qyXwqovTgSdLnTKNnbAXiUQk/2021-10-21_163920_404x74_screenshot.png > [15:39:52] In the abstract, no. But yes it's reused/cached, and also you can use $.when to potentially race it with other things such as $.ready [15:40:49] And maybe another API request or another module using()