en:User:Technical 13/Scripts/Edit counter

{{Cot|bg=#BBF|bg2=#EFEFFF|title= Browser/skin compatibility table}}

style="border: 1px solid #88F; width: 98%; margin: auto;"
style="text-align: center; height: 2.5em;"

! style="width: 12%; background-color: #BBF;"| Browser\Skin !! width="22%"| Vector !! width="22%"| MonoBook !! width="22%"| Modern !! width="22%"| Cologne Blue

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | Chrome 29

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | FireFox 24

| style="background-color: #BFB;" | Works

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | FireFox 23

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | IE 7

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | Opera 12.16

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | Opera 16

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

style="text-align: center; height: 4em;"

! style="background-color: #BBF;" | Safari 5

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

| style="background-color: #FFB;" | untested

{{Cob}}

{{Infobox user script

| name = Edit counter

| bodystyle = clear: left; float: left;

| author = Technical 13

| updated = {{#time:F j, Y|{{REVISIONTIMESTAMP:User:Technical 13/Scripts/Edit counter.js}}}}

| status = Broken

| desc = Broken by latest WMF update
fixes and updates soon™

| source = User:Technical 13/Scripts/Edit counter.js

| skins = Vector

| browsers = Firefox 24

| install-target = common.js

}}

{{TOC right}}

{{User:Technical 13/Edit count}}

This script creates a table with a breakdown of all of your edits by namespace. More details to come.

{{Center|1={{Clickable button|{{Plainlinks|1=//en.wikipedia.org/w/index.php?title=User_talk:Technical_13/Scripts/Edit_counter&action=edit§ion=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D|2=Report a bug}}}} {{Clickable button|{{Plainlinks|1=//en.wikipedia.org/w/index.php?title=User_talk:Technical_13/Scripts/Edit_counter&action=edit§ion=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D|2=Request a feature}}}}}}

Using this script

  1. On any project of the WMF

:: This script can be loaded to your common.js of any project by adding:

/* User:Technical 13/Scripts/Edit counter */

var editPage = 'Edit count';// Name of the subpage to save this as in your userspace. This is optional and /Edit count is the default page.

var tableClass = 'collapsible collapsed';// Any classes that you wish to have added to the template. This is optional.

var tableStyle = 'width: 268px;';// Any additional CSS you wish to add to the overall table's appearance. This is optional.

var tableTopStyle = ;// Any additional CSS you wish to add to the table header's appearance, this is useful for collapsed tables. Feel free to omit this altogether if not setting any style.

mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/Edit_counter.js&action=raw&ctype=text/javascript' );

{{Cot|bg=#BFB|bg2=#EFFFEF|title= This is confirmed to work on the following WMF sites...}}

  • Un-tested at this time

{{Cob}}

{{Cot|bg=#FBB|bg2=#FFEFEF|title=This is confirmed to not work on the following WMF sites...}}

  • NONE

{{Cob}}

  1. Once you have saved the above to your common.js, you will have to WP:BYPASS your cache on common.js.
  2. Once that has finished reloading, you will also need to WP:BYPASS your cache on your user page.
  3. Once that is finished reloading, you should see a "Edit counter" link in your "Toolbar" section (which you may have to un-collapse) in the sidebar of the vector skin (unsure of its location in other skins at this time).
  4. Click the link and watch it work, the text of the link should change many times in the process of calculating and counting your edits, and will say "Done!" when it has completed (see images below for an idea of what you will see).
  5. Finally, you should be able to load /Edit count (or wherever you set your table to save) and see your new table.

{{-}}

align="center" width="95%" border="1"
File:Edit counter portlet.png

| File:Edit counter counting main.png

| File:Edit counter Tallying.png

| File:Edit counter Done!.png

style="text-align: center;" | Click to start!

| style="text-align: center;" | Cycles through and counts
edits in each namespace

| style="text-align: center;" | Does some calculation
and builds the table

| style="text-align: center;" | You're done and can
navigate to your table
OR
Reload the page to see
the updated transclusion.

colspan="2"| 480px

| colspan="2" rowspan="3"| 480px

colspan="2" style="text-align: center;"| ⇑ The final product of the table if collapsed ⇑
colspan="2"| ⇒ Un-collapsing opens up all the data ⇒

A: Your total edit count including deleted edits. ⇒

B: The percent of discrepancy between the reported and counted totals,
     it is believed this represents the percentage of edits deleted. ⇒

C: A link to the diff of the most recent update of the table
     (so you can see exactly what namespaces have changes and by how much). ⇒

{{User:Technical 13/Scripts/Nav}}