MediaWiki talk:Gadget-userRightsManager.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


edit request[edit]

{{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)[reply]

✓ Done Thanks for the improvement. —RP88 (talk) 04:35, 30 August 2021 (UTC)[reply]

add template to new line[edit]

{{Edit request}}

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)[reply]

@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)[reply]
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)[reply]
✓ Done for now, but also created T349962, let’s see if that goes anywhere. --Lucas Werkmeister (talk) 18:18, 28 October 2023 (UTC)[reply]
@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)[reply]
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)[reply]
Thanks! Let’s continue the investigation there then. --Lucas Werkmeister (talk) 19:22, 28 October 2023 (UTC)[reply]

Malformed message[edit]

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)[reply]