„Benutzer:Sandstein/vector.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
AZ: Die Seite wurde neu angelegt: <!-- if you are using the "expand citations" gadget, then you'll want to install toolbox2.js instead o… |
(kein Unterschied)
|
Version vom 18. Mai 2012, 09:07 Uhr
<!-- if you are using the "expand citations" gadget, then you'll want to install toolbox2.js instead or the links will be duplicated -->
importScript("User:Smith609/citations.js");
function addToToolbox() {
if (wgCanonicalNamespace != "Special") {
var pTb = document.getElementById("p-tb");
if( !pTb ) return;
var pStats = pTb.cloneNode(true);
pStats.id="p-stats";
pStats.innerHTML = "<h5>Statistics</h5><div class=pBody><ul></ul></div>";
pTb.parentNode.insertBefore(pStats, pTb.nextSibling);
/* var now = new Date();
var month = now.getMonth();
var year = now.getFullYear();
var thisMonth = (now.getDay() > 6);
if (thisMonth) month++;
if (month == 0) {
month = 12;
year--;
} else month = ((month <10)?'0':'') + month; */
addPortletLink("p-stats", "http://stats.grok.se/de/latest30/" + encodeURI(wgPageName), 'Traffic stats', '', "Traffic to this page in the last month");
addPortletLink("p-stats", "https://wikidashboard.appspot.com/dewiki/wiki/"+encodeURI(wgPageName), 'Edit history stats', '', "Statistics about the edit history of this page");
addPortletLink("p-stats", "http://toolserver.org/~mzmcbride/watcher/?db=dewiki_p&titles="+encodeURIComponent(wgPageName), 'Page watchers', "Number of people with this page on their watchlist");
}
}
if( skin == "myskin" || skin == "simple" || skin == "monobook" || skin == "modern" || skin == "chick" || skin == "vector") {
addOnloadHook(addToToolbox);
}