dev

UserActivityStates automates a user's current activity state. Along with other scripts such as User Avatar Finder, it is particularly useful for the creation of administrator templates for your wiki.


Installation

Install template

Configuration

You can create many different user states, such as "active", "semi active" or "very active", and different conditions a user must meet to be marked as a particular state. For instantaneous customization that bypasses the review process, the MediaWiki:Custom-User-Activity-States.json page on your wiki can be used. You can copy the example below and paste it into the page on your wiki and customize it to your liking:

{
	"namespaces": [
		0
	],
	"inactiveText": "Inactive",
	"states": {
		"veryActive": {
			"text": "Very Active",
			"dayRange": 14,
			"minContribs": 50
		},
		"active": {
			"text": "Active",
			"dayRange": 30,
			"minContribs": 10
		},
		"semiActive": {
			"text": "Semi Active",
			"dayRange": 60,
			"minContribs": 1
		}
	}
}

Alternatively, you can place the following code into the MediaWiki:Common.js page on your wiki, again customizing it to your liking:

window.userActivityStates = {
    namespaces: [
        0
    ],
    inactiveText: "Inactive",
    states: {
        veryActive: {
            text: "Very Active",
            dayRange: 14,
            minContribs: 50
        },
        active: {
            text: "Active",
            dayRange: 30,
            minContribs: 10
        },
        semiActive: {
            text: "Semi Active",
            dayRange: 60,
            minContribs: 1
        }
    }
}

CSS customization

You can customize the way a user activity state appears through CSS. To apply the styling to every user activity state, use the .user-activity-state selector. To apply it to a particular user activity state, use the .user-activity-state-NAME_OF_STATE selector, replacing "NAME_OF_STATE" with whatever state you want to customize (e.g. .user-activity-state-inactive for "inactive", .user-activity-state-veryActive for "veryActive", etc.)

Configuration notes

Text above can be found here (edit)