Razlika između verzija stranice "Korisnik:Robin Hood~bswiki/monobook.js"
Uklonjeni sadržaj Dodani sadržaj
mNo edit summary |
mNo edit summary |
||
Red 1: | Red 1: | ||
function addLoadEvent(func) { |
|||
if (window.addEventListener) { |
|||
window.addEventListener("load", func, false); |
|||
} |
|||
else if (window.attachEvent) { |
|||
window.attachEvent("onload", func); |
|||
} |
|||
} |
|||
// AJOUTE UN ONGLET MONOBOOK |
|||
function ajoutOngletMonobook() { |
|||
var a = document.getElementById("p-cactions"); |
|||
if (a) { |
|||
b = a.getElementsByTagName("ul"); |
|||
if(b.length > 0) { |
|||
b[0].innerHTML = b[0].innerHTML |
|||
+ '<li id="ca-nstab-user">' |
|||
+ '<a href="/wiki/Korisnik:Robin_Hood/monobook.js">' |
|||
+ 'Monobook</a></li>'; |
|||
} |
|||
} |
|||
} |
|||
// AJOUTE UN ONGLET STRUCTURE |
|||
function ajoutOngletStructure() { |
|||
var a = document.getElementById("p-cactions"); |
|||
if (a) { |
|||
b = a.getElementsByTagName("ul"); |
|||
if(b.length > 0) { |
|||
b[0].innerHTML = b[0].innerHTML |
|||
+ '<li id="ca-nstab-user">' |
|||
+ '<a href="/wiki/Korisnik:Robin_Hood/Structure">' |
|||
+ 'Structure</a></li>'; |
|||
} |
|||
} |
|||
} |
|||
// AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION |
// AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION |
||
function |
function ajoutLiens() { |
||
var a = document.getElementById("p-navigation"); |
var a = document.getElementById("p-navigation"); |
||
if (a) { |
if (a) { |
||
Red 26: | Red 65: | ||
} |
} |
||
addLoadEvent( |
addLoadEvent(ajoutLiens); |
||
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) { |
|||
addLoadEvent(ajoutOngletMonobook); |
|||
addLoadEvent(ajoutOngletStructure); |
|||
} |
|||
// AJOUTE LES LIENS DANS LA BOÎTE À OUTILS |
// AJOUTE LES LIENS DANS LA BOÎTE À OUTILS |
Verzija na dan 8 maj 2007 u 08:08
function addLoadEvent(func) {
if (window.addEventListener) {
window.addEventListener("load", func, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", func);
}
}
// AJOUTE UN ONGLET MONOBOOK
function ajoutOngletMonobook() {
var a = document.getElementById("p-cactions");
if (a) {
b = a.getElementsByTagName("ul");
if(b.length > 0) {
b[0].innerHTML = b[0].innerHTML
+ '<li id="ca-nstab-user">'
+ '<a href="/wiki/Korisnik:Robin_Hood/monobook.js">'
+ 'Monobook</a></li>';
}
}
}
// AJOUTE UN ONGLET STRUCTURE
function ajoutOngletStructure() {
var a = document.getElementById("p-cactions");
if (a) {
b = a.getElementsByTagName("ul");
if(b.length > 0) {
b[0].innerHTML = b[0].innerHTML
+ '<li id="ca-nstab-user">'
+ '<a href="/wiki/Korisnik:Robin_Hood/Structure">'
+ 'Structure</a></li>';
}
}
}
// AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION
function ajoutLiens() {
var a = document.getElementById("p-navigation");
if (a) {
b = a.getElementsByTagName("ul");
if(b.length > 0) {
b[0].innerHTML = b[0].innerHTML
+ '<li><a style="display: inline" title="Meta:Sorting order" '
+ 'href="http://meta.wikimedia.org/wiki/Interwiki_sorting_order">'
+ 'Ordre des interwikis</a></li>'
+ '<li><a style="display: inline" title="Wikipedia:Ambasada" '
+ 'href="/w/index.php?title=Wikipedia:Ambasada&action=purge">'
+ 'Ambassade</a></li>'
+ '<li><a style="display: inline" title="Suivis" '
+ 'href="http://bs.wikipedia.org/w/index.php?title=Posebno:Watchlist&days=0">'
+ 'Tous les jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://bs.wikipedia.org/w/index.php?title=Posebno:Watchlist&days=3">'
+ '3 jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://bs.wikipedia.org/w/index.php?title=Posebno:Watchlist&days=1">'
+ '1 jour</a></li>'
}
}
}
addLoadEvent(ajoutLiens);
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) {
addLoadEvent(ajoutOngletMonobook);
addLoadEvent(ajoutOngletStructure);
}
// AJOUTE LES LIENS DANS LA BOÎTE À OUTILS
addOnloadHook(function () {
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) {
url = wgServer
+ "/w/index.php?title=Special:Log&user="
+ wgTitle.split("/")[0];
}
else if ( wgCanonicalNamespace == "Special" ) {
return;
}
else {
url = wgServer
+ "/w/index.php?title=Special:Log&page="
+ wgPageName;
}
addPortletLink("p-tb", "http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=Robin+Hood&dbname=bswiki_p", "Compteur d'éditions", "ca-editcount");
addPortletLink("p-cactions", url, "Journal", "pt-logs");
});
function addLoadEvent(func) {
if (window.addEventListener) {
window.addEventListener("load", func, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", func);
}
}