UserRightsRecord

This script generates a list of all users who have been members of rights groups on a wiki, with the dates they received and lost the rights. It can be customized in several ways.

Usage
To use the script with default behavior (listing all groups for all time), simply place an element with the  class on a page. This can be used multiple times per page. Anything within the div is overwritten when the script runs.

Here is a skeleton with placeholders for all of the available parameters, which are explained below. (As written, this code will still act like the default.) {"Username1":"Username2", "User3":"User4"}

mode
The default mode is, which separates the list by group and places a table of contents at the top of the div. Setting the value to  separates the list by user instead, with no TOC.

exclude
This allows exclusion of specific user groups from the list. Use the name of the group as it appears in the unlimited script output. Specify multiple groups to exclude like this:.

start/end
Allows specifying dates to start and/or end going through the rights log; rights changes that occurred before/after these dates, respectively, will not be included. These must be fully formatted dates in UTC, e.g. "2013-01-01T23:59:00Z". Both do not have to be specified at once, but end has to be after start. Note that use of these parameters will likely cause inaccurate statement of "unknown" and "present" in the list.

user
Allows specifying a single user for whom to display records. Must have "User:" prefix.

name changes
You can specify a list of users who changed their names so that each user's entries are grouped under the same name in the output. This is done by putting JSON syntax as the content of the div, as seen in the example above. Each key's value (the data to the right of the colon) is the username that should be displayed. You can have multiple keys with the same value. This must be valid JSON: all values are enclosed with double quotes ("), keys are separated from values with colons, and pairs are separated by commas . Quotation marks within user names must be escaped with a backslash (\").