Lankide:Robin Hood~euwiki/monobook.js: berrikuspenen arteko aldeak
Ezabatutako edukia Gehitutako edukia
tNo edit summary |
tNo edit summary |
||
8. lerroa: | 8. lerroa: | ||
} |
} |
||
// AJOUTE |
// AJOUTE DEUX ONGLETS MONOBOOK |
||
function |
function ajoutOngletJS() { |
||
var a = document.getElementById("p-cactions"); |
var a = document.getElementById("p-cactions"); |
||
if (a) { |
if (a) { |
||
18. lerroa: | 18. lerroa: | ||
+ '<li id="ca-nstab-user">' |
+ '<li id="ca-nstab-user">' |
||
+ '<a href="/wiki/Lankide:Robin_Hood/monobook.js">' |
+ '<a href="/wiki/Lankide:Robin_Hood/monobook.js">' |
||
+ ' |
+ 'js</a></li>'; |
||
} |
|||
} |
|||
} |
|||
function ajoutOngletCSS() { |
|||
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/Lankide:Robin_Hood/monobook.css">' |
|||
+ 'css</a></li>'; |
|||
} |
} |
||
} |
} |
||
64. lerroa: | 77. lerroa: | ||
addLoadEvent(ajoutLiens); |
addLoadEvent(ajoutLiens); |
||
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) { |
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) { |
||
addLoadEvent( |
addLoadEvent(ajoutOngletJS); |
||
addLoadEvent(ajoutOngletStructure); |
addLoadEvent(ajoutOngletStructure); |
||
addLoadEvent(ajoutOngletCSS); |
|||
} |
} |
||
02:42, 9 maiatza 2007ko berrikusketa
function addLoadEvent(func) {
if (window.addEventListener) {
window.addEventListener("load", func, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", func);
}
}
// AJOUTE DEUX ONGLETS MONOBOOK
function ajoutOngletJS() {
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/Lankide:Robin_Hood/monobook.js">'
+ 'js</a></li>';
}
}
}
function ajoutOngletCSS() {
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/Lankide:Robin_Hood/monobook.css">'
+ 'css</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/Lankide: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="Wikipedia:Enbaxada" '
+ 'href="/w/index.php?title=Wikipedia:Enbaxada&action=purge">'
+ 'Ambassade</a></li>'
+ '<li><a style="display: inline" title="Suivis" '
+ 'href="http://eu.wikipedia.org/w/index.php?title=Aparteko:Watchlist&days=0">'
+ 'Tous les suivis</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://eu.wikipedia.org/w/index.php?title=Aparteko:Watchlist&days=3">'
+ '3 jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://eu.wikipedia.org/w/index.php?title=Aparteko:Watchlist&days=1">'
+ '1 jour</a></li>'
}
}
}
addLoadEvent(ajoutLiens);
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) {
addLoadEvent(ajoutOngletJS);
addLoadEvent(ajoutOngletStructure);
addLoadEvent(ajoutOngletCSS);
}
// 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=euwiki_p", "Compteur d'éditions", "ca-editcount");
addPortletLink("p-cactions", url, "Journal", "pt-logs");
});