FANDOM


When viewing user pages, ShowUserGroups adds a list of the user groups in which the user is a member.

On Fandom, the list is added to the user masthead. Elsewhere, the list is added opposite the page heading. The '*' and 'user' groups are not displayed as they are redundant (all users are a member of these groups).

Usage

Advanced

Sorting the groups

An optional function can be defined in a user/site JS page to sort the user groups as you wish. The compare function will be supplied to Array.prototype.sort to be used on the array containing the user groups. It should be defined in the global scope, and be named ShowUserGroups_sorter. For detailed info on how this compare function should work, see the MDN page for Array.prototype.sort().

Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+