User:Jeblad/trending

From Meta, a Wikimedia project coordination wiki
Gadget is discontinued.

Trending is a gadget to add trending statistics to Special:Statistics. The library use the ordinary API for page impressions of top-ranking pages, Wikitech:Analytics/PageviewAPI#Most viewed articles.

There are two pages

Enabling the gadget from a remote site is by adding the following script to your local or global js-page

Please keep the tracking line, it makes it possible to check if this gadget should be made globally available.

// Tracking [[User:Jeblad/trending]]
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jeblad/trending/script.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jeblad/trending/style.css&action=raw&ctype=text/css', 'text/css' );

It can be a good idea to add the loader script to a local gadget, thereby making it easy for all users on the project to enable the functionality.