dev

MastheadRightsBadge is a script that adds avatar badges from the Fandom Design System to users' global mastheads on a wiki. It also makes the avatar round, to be consistent with the Fandom Design System. A list of supported user groups can be found below.

Installation

Supported groups

Supported user groups are listed here, in hierarchical order. For example, if Foobar123 was an admin and a SOAP member, an admin badge would show up on their profile.

Customization

The badge's container can be customized via CSS using the .mastrightsbadge class. Each individual badge can be customized with its own class as well:

Custom user groups are unsupported at this time.

Configuration

The script offers a size option for the badge. Variables are stored in the window.MastheadRightsBadgeSettings object.

Key Description Possible values Default
iconSize Icon size. CSS size values 50px

The following is an example.

window.MastheadRightsBadgeSettings = {
    iconSize: '60px',
};
Text above can be found here (edit)