User:Poxnar/vector.js

///  statistics for the page

function stats { if (wgCanonicalNamespace == "Special") return; var currentTime = new Date; var month = currentTime.getMonth + 1; var year = currentTime.getFullYear; if (month < 10) month = '0' + month; addPortletLink('p-cactions', 'http://stats.grok.se/en/'+ year + month + '/' + wgPageName, "stats", "ca-stats", "Show statistics for the page"); } addOnloadHook(stats);