TopEditors

TopEditors is a script that creates customizable lists based on the recent changes API. It can be used for a variety of purposes.
== ==
== ==
The basic usage, which will list the top 25 contributors to all namespaces in the last week, looks like this:
You can put anything inside the ; it will be replaced with the list. Please note that the list can take a while to load, especially for longer periods of time. You can use this multiple times on any page; results are loaded asynchronously.
=== Options ===
Various options can be set for the script; they are added to the code. Here is a skeleton, using the default values (adding these attributes is not necessary to use the defaults):
Option descriptions:
; data-te-exclude
: It is a list of users to exclude from the listing. The syntax must be valid JSON. Use spaces in usernames, not underscores. The value associated with the username does not matter and can be blank. More details may be found on MediaWiki's API page. Example: data-te-exclude="{'Aaron':, 'Bob':}"
; data-te-limit
: It is the number of users to show in the list.
; data-te-namespace
: It determines which namespace(s) are counted. Namespace numbers must be used. A list of built-in namespaces can be found on Community Central's help page; you can find the namespace number for any page in its wgNamespaceNumber variable. Specify multiple namespaces like so: "06".
; data-te-offset
: It is the number of days (backward from the current time) to search through.
; data-te-show
: It determines other properties for counted edits. Possible values are minor, bot, anon, redirect, and patrolled. Add an exclamation point (!) before a value for its opposite; separate multiple values with pipes (). For example, to include only non-minor edits by anonymous users, this property should be set to "!minoranon".
; data-te-type
: It determines which types of entry to count: page edits, creation of new pages, and/or log entries. Possible values are edit, new, and log; separate multiple parameters with a pipe ().
; data-te-user
: It specifies a single user for whom to count entries. Value is the username without User: prefix. The inserted code will not be wrapped in a list.
=== ===
Loading top editors...