Fandom Developers Wiki
Register
Advertisement

This is the talk page for discussing improvements to the UserTags page.

This is the talk page for UserTags. Post here if you have any of the following:
  • Questions about the the script or how to use it.
  • Any translations that are missing from the script.
  • Any improvements or suggestions for the script.
Archives


Tags Update

These tags should be updated to include the user tag for content moderators. Content Moderators don't have an existing user-identity box, unlike Administrators - User-identity-box-group-sysop - but then Roll-backers don't have an existing user-identity box either, and this script still allows Roll-backers to have the rollback user tag next to their username. Similarly because this script is still outdated, with Discussions Moderators still being tagged as Moderators. I tried to update the user tag name for Discussions Moderators on my wiki, but it broke, so I had to revert back to the user tag saying Moderator. ― C.Syde (talk | contribs) 09:14, August 12, 2016 (UTC)

Did you add "content-moderator" to both, tags and default groups?
window.UserTagsJS = {
	modules: {},
	tags: {
		threadmoderator: { u:'Discussions Moderator' },
		content-moderator: { u: 'Content Moderator' }
	}
};

UserTagsJS.modules.mwGroups =  ['bureaucrat', 'chatmoderator', 'threadmoderator', 'rollback', 'content-moderator', 'sysop', 'bannedfromchat'];

importArticle({type:'script', article:'u:dev:MediaWiki:UserTags/code.js'});

Could you provide a link to your edit, where changing the default groups and labels (like above) didn't give you the correct result? AmonFatalis 10:15, August 12, 2016 (UTC)

Yes for the Discussions Moderator identity box, but the change prevented the tag from appearing altogether. So I was forced to undo the changes.
I haven't updated the tags on my wiki to add content moderators, because I don't know how to get it to work. And I've never felt quite the same about editing Java Script pages since they became covered by the review process. ― C.Syde (talk | contribs) 10:31, August 12, 2016 (UTC)
[1] I've integrated the groups you were missing into your script configuration.AmonFatalis 12:00, August 12, 2016 (UTC)
The only problem is that now the Custom Java Script review module is in a different language. And I don't know why it's like that, or how to fix it. ― C.Syde (talk | contribs) 12:04, August 12, 2016 (UTC)
Known bug. It doesn't change the overall behavior of the module (same colors and layout as before), so you can just wait it out and report it through Special:Contact.AmonFatalis 12:29, August 12, 2016 (UTC)

Does not work on Special:Following

Hi there,

This script is really nice, but it does not work on Special:Following. In our wiki we use the following two functions to identify a user page and get the username therefrom. If you think it is useful, you can combine it with your script ;)

function isUserpage() {
    return ($.inArray(wgNamespaceNumber,[2,3,1200,500]) !== -1 || (wgCanonicalSpecialPageName && $.inArray(wgCanonicalSpecialPageName,['Contributions','Following']) != -1));
}
 
function getUserByPage() {
    if($.inArray(wgNamespaceNumber,[2,1200,500]) != -1) {
        return /:(.*)/.exec(wgPageName)[1].replace('_',' ');
    }
    else if(wgCanonicalSpecialPageName == 'Contributions') {
        return /\/(.*)/.exec(wgPageName)[1].replace('_',' ');
    }
    else if(wgCanonicalSpecialPageName == 'Following') {
        return wgUserName;
    }
}

Agent Zuri ?ber mich Nachrichtenseite Ank?ndigungen 07:39, August 26, 2016 (UTC)

Advertisement