This page, or parts of it, are still untranslated. Please translate it to the appropriate language (беларуская).
MastheadRightsBadge — гэта скрыпт, які дадае значкі аватараў з Fandom Design System да аватараў у прафайлах удзельнікаў на вікі. Ён таксама робіць аватары круглымі, каб яны адпавядалі Fandom Design System. Спіс падтрыманых груп удзельнікаў прыведзены ніжэй.
Installation
Падтрыманыя групы
Усе падтрыманыя скрыптам групы ўдзельнікаў пералічаны тут у парадку прыярытэтнасці. Перш за ўсё ўлічваюцца лакальныя статусы. Прыкладам, калі ўдзельнік Foobar123 — адміністратар і SOAP, над яго аватарам будзе паказаны значок адміністратара.
- Administrators
- Fandom Staff
- Spam Obliteration and Prevention
- Global Discussions Moderators
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:
.mastrightsbadge.mastrightsbadge-sysop.mastrightsbadge.mastrightsbadge-content-moderator.mastrightsbadge.mastrightsbadge-threadmoderator.mastrightsbadge.mastrightsbadge-staff.mastrightsbadge.mastrightsbadge-soap.mastrightsbadge.mastrightsbadge-global-discussions-moderator
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',
};