Defnyddiwr:Robin Hood~cywiki/monobook.js: Gwahaniaeth rhwng fersiynau
Cynnwys wedi'i ddileu Cynnwys wedi'i ychwanegu
B Tudalen newydd: // AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION function Liens_Navigation() { var a = document.getElementById("p-navigation"); if (a) { b = a.getElementsByTagName("ul")... |
(Dim gwahaniaeth)
|
Fersiwn yn ôl 18:22, 7 Mai 2007
// AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION
function Liens_Navigation() {
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="Wicipedia:Llysgenhadaeth" '
+ 'href="/w/index.php?title=Wicipedia:Llysgenhadaeth&action=purge">'
+ 'Ambassade</a></li>'
+ '<li><a style="display: inline" title="Suivis" '
+ 'href="http://cy.wikipedia.org/w/index.php?title=Arbennig:Watchlist&days=0">'
+ 'Tous les jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://cy.wikipedia.org/w/index.php?title=Arbennig:Watchlist&days=3">'
+ '3 jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://cy.wikipedia.org/w/index.php?title=Arbennig:Watchlist&days=1">'
+ '1 jour</a></li>'
}
}
}
addLoadEvent(Liens_Navigation);
// 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=cywiki_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);
}
}