MediaWiki talk:Gadget-userRightsManager.js
![]() | This script, userRightsManager, is a JavaScript gadget which can be enabled or disabled in your Preferences. The discussion page is located at MediaWiki talk:Gadget-userRightsManager. |
![]() |
i18n | Gadget translations:
internationalisation needs to be implemented |
edit request
{{Edit request}}
This portion of code:
var templates = {
'Autopatrolled': 'Autopatrolledgiven',
'AutoWikiBrowser': ,
'Confirmed': ,
'File mover': 'Filemovergiven',
'Rollback': 'Rollbackgiven'
};
needs to be replaced by this one:
var templates = {
'Autopatrolled': 'Autopatrolgiven',
'AutoWikiBrowser': ,
'Confirmed': ,
'File mover': 'FilemoverWelcome',
'Rollback': 'Rollbackgiven'
};
rubin16 (talk) 08:36, 17 June 2021 (UTC)
add template to new line
The gadget is currently adding the Wikitext into the last line with content on the user talk page resulting in mal formatted content.
I think adding two empty lines in the text string would solve this.
236appendtext: `
237
238{{subst:` + templates[permission] + '}} ~~~~',
GPSLeo (talk) 14:21, 28 October 2023 (UTC)
- @GPSLeo: Can you give an example of a page where that happened? (If I understand what you mean correctly, then I think I [hopefully] fixed a similar case in another gadget with Special:Diff/816120987 – I wonder if something changed in MediaWiki…) Lucas Werkmeister (talk) 15:19, 28 October 2023 (UTC)
- This happened here and here. I do not know if real linke breaks in a `` block or \n is the better solution. As this was not noticed before I think there must have been a MediaWiki change and then many more tools would have similar problems. GPSLeo (talk) 16:57, 28 October 2023 (UTC)
Done for now, but also created T349962, let’s see if that goes anywhere. --Lucas Werkmeister (talk) 18:18, 28 October 2023 (UTC)
- @GPSLeo: Follow-up question: can you pinpoint when this happened? (So I guess what I’m asking is, how frequently do you give out autopatrolled and other rights?) Lucas Werkmeister (talk) 18:43, 28 October 2023 (UTC)
- I used that gadget for the first time. But I had a look at the user rights log and checked the talk pages of users who got rights using the gadget. I wrote the result at the Phabricator ticket. GPSLeo (talk) 19:20, 28 October 2023 (UTC)
- Thanks! Let’s continue the investigation there then. --Lucas Werkmeister (talk) 19:22, 28 October 2023 (UTC)
- I used that gadget for the first time. But I had a look at the user rights log and checked the talk pages of users who got rights using the gadget. I wrote the result at the Phabricator ticket. GPSLeo (talk) 19:20, 28 October 2023 (UTC)
- @GPSLeo: Follow-up question: can you pinpoint when this happened? (So I guess what I’m asking is, how frequently do you give out autopatrolled and other rights?) Lucas Werkmeister (talk) 18:43, 28 October 2023 (UTC)
- This happened here and here. I do not know if real linke breaks in a `` block or \n is the better solution. As this was not noticed before I think there must have been a MediaWiki change and then many more tools would have similar problems. GPSLeo (talk) 16:57, 28 October 2023 (UTC)
Malformed message
https://commons.wikimedia.org/w/index.php?title=User_talk:LaurenzStapf&diff=prev&oldid=856120703 the gadget left behind a malformed message. RZuo (talk) 11:51, 17 April 2024 (UTC)
Is this completely broken?
Is this only me or other admins who patrol RFR also face this? Whenever I tap "assign permissions", it results a huge block of errors, starting with "Uncaught TypeError: Cannot read properties of undefined (reading 'id')".... Courtesy ping: @Abzeronow. Regards, Aafi (talk) 18:40, 1 November 2024 (UTC)
- Yeah, RightsManager hasn't worked for me in a while. I add the rights manually, and sometimes I manually post the notifications to talk pages. Abzeronow (talk) 18:43, 1 November 2024 (UTC)
- @Abzeronow: This is unfortunate. I am attending a MediaWiki hackathon from 19-22 this month, and I will try figuring the issues together with other participants. Regards, Aafi (talk) 07:42, 4 December 2024 (UTC)
- @Abzeronow, this is sorted. I've asked @AntiCompositeNumber to implement the recent updates from User:Aafi/UserRights.js. ─ Aafī on Mobile (talk) 11:38, 21 December 2024 (UTC)
- @Abzeronow: This is unfortunate. I am attending a MediaWiki hackathon from 19-22 this month, and I will try figuring the issues together with other participants. Regards, Aafi (talk) 07:42, 4 December 2024 (UTC)