Jump to content

XTools/Edit Counter

From mediawiki.org

The Edit Counter tool provides detailed summary statistics about a single user on a single project. Note that depending on the number of edits the user has made, this tool can be rather slow. To accelerate the process, you can select which specific statistics you want using the checkboxes at https://xtools.wmcloud.org/ec. In addition, each heading in the result view (i.e. "Month Counts") is a link that will bring you to a page showing only that section.

General statistics

The general statistics section contains lots of statistics about the user and their work on the project, as well as some data about other projects that they’re active on. If the user is a current or former sysop, various counts of administrative actions are also shown. Note that for performance reasons, some statistics (denoted with an asterisk *), only apply to the last 5,000 edits made by the user.

Edit counts

XTools counts the number of revisions made by a user by making real-time queries to the database. For this reason, your system edit count as shown at Special:Preferences may be different. The system edit count is a running tally of all edits made by the user (even if they were later deleted or suppressed). In addition, the definition of what constitutes an edit towards your system edit count has changed over time. For instance, page moves have only been counted as edits since June 2017. For this reason, the system edit count can be considered approximate, while XTools is more exact as it does live counts on the database. Note that the "Global edit counts" on the right are system edit counts, as retrieved from Special:CentralAuth. For the reasons stated above, these are considered approximate counts. You can click on the wiki link (i.e. "fr.wikipedia.org") to run the XTools Edit Counter for that user on that wiki, which will give you a more exact count.

Deleted edits

The deleted edits figure is sometimes a source of confusion. This is the number of edits the user made to pages that are now deleted. If a user has a large number of deleted edits, it is not by itself any indication of wrongdoing. For example, page patrollers will often have a high deleted edit count because they tag problematic pages for deletion.

Note that reverted edits are not the same thing as deleted edits. Reverted edits are considered "live" in the sense that they are visible at Special:Contributions, as opposed to Special:DeletedContributions.

Pages created

This figure is the total number of pages a user has created on the project, in any namespace, and including those created as a redirect when moving a page. For more detailed statistics on the pages a user has created, use the Pages Created tool.

Namespace totals

This shows the total edit counts in each namespace (all time), along with a pie chart showing the relative number of edits.

Note that you can hover over the rows in the table and an X symbol will appear over the color icon. Clicking this will hide that namespace from the statistics – not just in the Namespace Totals section, but also the Year Counts and Month Counts sections.

Year counts

This is a stacked bar chart showing total edit counts made in each year, with each bar being divided into namespace sections so that it’s possible to get an idea of how a user’s namespace activity has changed over the years. You can selectively show/hide specific namespaces by hovering over the table in the Namespace Totals section and clicking on ✕ symbol on the left.

Month counts

These statistics are only shown if the user has opted in to showing restricted statistics.

This section is the same as the year counts, except the columns are months instead of years. You can selectively show/hide specific namespaces by hovering over the table in the Namespace Totals section and clicking on X symbol on the left.

Time card

These statistics are only shown if the user has opted in to showing restricted statistics.

This is a punchcard chart showing the total number of edits made by a user during each hour of day and day of week. The times given are in UTC.

Top edited pages

These statistics are only shown if the user has opted in to showing restricted statistics.

This shows the most-edited pages the user has edited in each namespace. Click the "Top edited pages" heading to go to the dedicated Top Edits tool which will display more results.

Rights changes

This section shows both local and global rights changes made to the user's account. If temporary rights were granted, a grayed out entry is displaying, showing when the rights will automatically be removed in the future.

Opting in to restricted statistics

help translate

Some statistics are considered private by some users, such as the times of the day or year that they edit most or the pages they’ve made most contributions to.

The affected tools are as follows:

Although the data for these statistics is made available via MediaWiki's API, users must explicitly opt in to make the aggregate forms available in XTools.[1] Alternatively, a whole project can elect to be opted in by filing a request on Phabricator. Your wiki should have had a local discussion showing consensus for these statistics to be allowed.

How to opt in

To opt in, a user must create the page Special:MyPage/EditCounterOptIn.js (as in User:<username>/EditCounterOptIn.js) on each wiki they want to opt in for. This page should be created with any content (it just has to have some content).

To opt in on all projects, they must create meta:Special:MyPage/EditCounterGlobalOptIn.js (as in User:<username>/EditCounterGlobalOptIn.js) on MetaWiki. Again, the actual content of this page is irrelevant.

How to opt out

To opt out the relevant user page (single-wiki or global; see above) should be blanked or deleted.

Notes