dev

This page, or parts of it, are still untranslated. Please translate it to the appropriate language (Deutsch).

MastheadRightsBadge ist ein Skript, welches Avtar-Symbole aus dem Fandom Design System in den globalen Masthead eines Benutzers auf dem Wiki hinzufügt. Das Avatar wird dadaurch auch rund, um es mit dem Fandom Design System zu vereinheitlichen. Eine Liste von unterstützten Benutzergruppen kann unten gefunden werden.

Installation

Unterstützte Gruppen

Unterstützte Benutzergruppen sind hier hierarchisch aufgelistet. Zum Beispiel, wenn Foobar123 ein Admin und SOAP-Mitglied ist, wird dann ein Admin-Symbol im Profil angezeigt.

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',
};