MediaWiki History Sparkline

By Zak Greant Last update Jun 15, 2010 — Installed 169 times.

Script Summary: Display a sparkline (aka tiny graph) of changes to the current MediaWiki page.



License: Simplified BSD License (see end of file)

Script homepage

Thumb

Display three sparklines (aka tiny graph) of changes to the current MediaWiki page.

Each sparkline shows the number of bytes changed (as a line graph) and the number of changes made (as a bar graph behind the line graph.)

The first sparkline show changes over the last three years broken into one month periods, the next shows weekly changes over the last six months and the last shows changes over the last week broken into six hour periods.

The periods are fairly easy to configure – just edit the periods array in the source code.

Implementation Notes

By default the script runs on every domain, looking for various javascript variables that MediaWiki makes available.

The script uses the MediaWiki API to fetch history data.

To help reduce abuse, the script requires that you be logged into the MediaWiki install that you are using.