User:Schnark/mostEdited

This is the documentation for User:Schnark/mostEdited.js which is a user script that shows you a list of those pages that were edited many times in the last hour (or any other period). These pages seem to be interesting to other users just now, so they are probably interesting to you, too, at least some of them. Use the edits other users do to find pages you are interested in!



Installation
Go to the wiki, where you want to use this script and put the following line in Special:MyPage/common.js there:

If you know how to import user scripts and prefer some other way to do so, you can of course use your favorite method to install it.

Limitations
There are a few cases, where the script doesn't behave the way you might expect it.
 * The wiki should run MediaWiki 1.18. I haven't tried what happens with 1.17 (this might work), but it won't work with 1.16 or earlier.
 * You shouldn't use an user script that adds things to the prototype of plain objects. I know that I should take care about that, but I don't, so it's up to you to take care.
 * If you use an old skin without sidebar the link to the new special page won't be in the sidebar (that's surprising, isn't it?) but somewhere else. The script tries hard to find the link to recent changes and put the new link above, but if the wiki adapted the sidebar the link might under some strange circumstances appear somewhere else.
 * If you use an user script that adds a submit button in the recent changes before the normal submit button, the new button isn't shown in the right place.
 * If you use a language different from English or German you will see English texts, but with the plural rules for your language.
 * This is an AJAX application, so going back and forth in your browser will probably clear the list away.
 * It might happen that you don't see the notice that you have new messages on your discussion page when you use the new special page. (At least in a skin different from Vector.)

Normal Usage
You should see a new link in the sidebar directly above the link to the recent changes. Additionally on Special:RecentChanges there will be a new button. Both go to [ ?action=mostedited]. On the top you can select a few options: the period of time to look at, and the namespaces. The selector for the namespaces you should know from the recent changes, it behaves exactly the same way. If you came from the recent changes it will even show the same selection at the beginning. Make your options and then click the button to submit your query.

You will get a list of the pages with the most edits. Some information is shown for each page, including the sections, which were edited most. A little arrow indicates whether the number of edits seems to be increasing or decreasing. Look at the list to find out which pages sound interesting to you and visit them!

Advanced Usage
You can use different parameters in the URL to configure what you will see:

Localisation
If you want to, you can add localisation for your language. Just copy the following lines directly above the line you use to import the script:

Translate all the strings. The first are messages you will find in the language files, the others are new messages. You don't need to include messages you don't translate.