Benutzer:Sandstein/vector.js
Erscheinungsbild
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
<!-- 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; */
mw.util.addPortletLink("p-stats", "http://stats.grok.se/de/latest30/" + encodeURI(wgPageName), 'Traffic stats', '', "Traffic to this page in the last month");
mw.util.addPortletLink("p-stats", "https://wikidashboard.appspot.com/dewiki/wiki/"+encodeURI(wgPageName), 'Edit history stats', '', "Statistics about the edit history of this page");
mw.util.addPortletLink("p-stats", "http://toolserver.org/~mzmcbride/watcher/?db=dewiki_p&titles="+encodeURIComponent(mw.config.get('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);
}