dev

UserStatus is a script that displays a user's status on their masthead. It could be useful for community-based wikis. It is also configurable.

Installation

Changing your status

Your status is stored at User:USERNAME/status on your wiki. You can either:

  1. Type in a status and publish it. There should be no other page content. OR
  2. Use the dropdown menu which appears on your masthead under your bio/info (legacy) or next to the "Edit Profile" button (UCP).

The available statuses are:

Please edit only your own status. A warning will display if you attempt to edit others' statuses (legacy).


Configuration

Settings are stored in the window.UserStatusSettings object. It can go into both personal and site-wide JS.

0 means off/false and 1 on/true.


Variable Description Available values Default value Notes
colorBlindMode Colorblind mode; adds icons to status indicators 0/1 1
lightTheme Light themed icons for colorblind mode 0/1 0 Requires colorBlindMode.
statusIndicator Display the circle next to a user's avatar 0/1 1 Not recommended if combined with MastheadRightsBadge.
online, away, dnd, offline Change the color of the status indicator string, any hexadecimal or color name #Colors String value (in between quotation marks), set each individually, unknown statuses are set to offline color

An example configuration would be:

window.UserStatusSettings = {
    colorBlindMode: 1,
    lightTheme: 1,
    statusIndicator: 0,
    online: '#0078ff',
    away: '#cc7',
    dnd: 'crimson',
    offline: 'darkgray',
};

Customization

Various elements can be customized via CSS:


Colors


Notes

Planned Features


Text above can be found here (edit)