Lankide:Theklan/wikiloturak.js
Oharra: Gorde ondoren zure nabigatzailearen katxea ekidin beharko duzu aldaketak ikusteko. Mozilla / Firefox / Safari: Shift tekla sakatu birkargatzeko momentuan, edo Ctrl-Shift-R sakatu (Cmd-Shift-R Apple Mac baten); IE: Ctrl tekla sakatu birkargatzeko momentuan, edo Ctrl-F5 sakatu; Konqueror:: Birkargatzeko klik egin, edo F5 sakatu, besterik ez; Opera erabiltzaileek Tresnak-Hobespenak atalera jo eta katxea garbitzeko aukera hautatu.
//<pre><nowiki>
//[[Lankide:Theklan]]ek moldatuta [[w:es:User:Axxgreazz/Monobook-Suite]]etik.
//http://es.wikipedia.org/wiki/Usuario:Axxgreazz/Monobook-Suite
function enlaceswiki()
{
switch(skin)
{
case "monobook" : topaz.wputil.addsidepanel("p-nbx", msStringU('wiki links'));break;
case "cologneblue" : break;
}
var enlaces= '';
for (i=0; i<misenlaces.length; i++)
{
if (misenlaces[i].proy == proyecto.codigo() || misenlaces[i].proy == "0")
{
var direccion = misenlaces[i].url;
var nombre = misenlaces[i].nom;
switch(skin)
{
case "monobook" : topaz.wputil.addsidepanelbutton("p-nbx",msStringU(nombre),direccion);
break;
case "cologneblue" : enlaces = enlaces +
'<a href="' + direccion+ '">' + msStringU(nombre) + '</a>' + '<br />'
break;
}
}
}
if (skin=="cologneblue")
{ var l = topaz.util.getobj("quickbar");
l.innerHTML = l.innerHTML + '<h6>' + msStringU('wiki links') + '</h6>' + enlaces;
}
}
if (window.addEventListener) window.addEventListener("load",enlaceswiki,false);
else
if (window.attachEvent) window.attachEvent("onload",enlaceswiki);
//</nowiki></pre>