/* Füge Projektportal-Link hinzu */
function addPortal()
{
quickbar = document.getElementById('quickbar');
if (quickbar)
{
neues = document.createElement('a')
neues.href = 'https://dictious.com/en/Wikipedia:Portal'
neues.appendChild(document.createTextNode('Projektportal'))
quickbar.appendChild(neues)
}
}
$(addPortal);
/* Einige link-Tags hinzufügen */
head = document.getElementsByTagName('head')
function verlinke(rel, href, title)
{
link = document.createElement('link')
link.rel = rel
link.href = 'https://dictious.com/en/' + href
link.title = title
head.appendChild(link)
}
if (head) /* sollte immer true ergeben, aber sicher ist sicher */
{
verlinke('start', 'Hauptseite', 'Hauptseite')
verlinke('help', 'Wikipedia:Handbuch', 'Handbuch')
verlinke('index', 'Spezial:Allpages', 'Index')
}
/* decodiere UTF8 (aus Selfhtml) */
function decode_utf8(utftext) {
var plaintext = ""; var i=0; var c=c1=c2=0;
// while-Schleife, weil einige Zeichen uebersprungen werden
while(i<utftext.length)
{
c = utftext.charCodeAt(i);
if (c<128) {
plaintext += String.fromCharCode(c);
i++;}
else if((c>191) && (c<224)) {
c2 = utftext.charCodeAt(i+1);
plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
i+=2;}
else {
c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2);
plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
i+=3;}
}
return plaintext;
}
/* decodiere die codierten UTF8-Zeichen in Kapitel-Ankern */
function decodeanchor(anchorname)
{
var escaped = anchorname.replace(/\.()/g,"%$1");
return decode_utf8(unescape(escaped)).replace(/_/g,' ');
}
/* Füge Link-Tags fürs Inhaltsverzeichnis hinzu */
function addcontents()
{
var head = document.getElementsByTagName('head');
var len = document.anchors.length
for (i = 0; i < len; ++i)
{
anchor = document.anchors;
link = document.createElement('link')
link.rel = 'chapter'
link.href = '#' + anchor.name;
link.title = decodeanchor(anchor.name);
head.appendChild(link)
}
}
$(addcontents);
//Bei Dschwen gefunden
// ] - diese Zeile bitte mitkopieren
mw.loader.load("//de.wikipedia.orghttps://en.wiktionary.org/w/index.php?title=User:Dschwen/wikiminiatlas2.js&action=raw&ctype=text/javascript");
//aus der englischen Wikipedia in Deutsch
// install the German translation for ]
mw.loader.load("//de.wikipedia.orghttps://en.wiktionary.org/w/index.php?title=Benutzer:Olliminatore/wikEd_international_de&action=raw&ctype=text/javascript");
// install ] in-browser text editor
mw.loader.load("//en.wikipedia.orghttps://en.wiktionary.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript");
// vom Benutzer:Zacke in dewp
function addlilink(tabs, url, name, id) {
var na = document.createElement('a');
na.href = url;
na.id = id;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
function addtoolboxlinks() {
var tb = document.getElementById('p-navigation').getElementsByTagName('ul');
//addlilink(tb, 'https://dictious.com/en/Wikipedija:Projekt_za_předłohi', 'Projekt za předłohi', '');
//addlilink(tb, 'https://dictious.com/en/Wikipedija:Infokašćik', 'Projekt za infokašćiki', '');
//dlilink(tb, 'https://dictious.com/en/Wikipedija:Požadane_přełožki', 'Požadane přełožki', '');
//addlilink(tb, 'https://dictious.com/en/Kategorija:Strony_k_spěšnemu_wušmórnjenju', 'SW', '');
//addlilink(tb, 'https://dictious.com/en/Kategorija:Kandidaty_za_šmórnjenje', 'Kat. Kand. šm.', '');
//addlilink(tb, 'https://dictious.com/en/Wikipedija:Kandidaty_za_šmórnjenje', 'Wik. Kand. šm.', '');
addlilink(tb, 'https://dictious.com/en/Special:PrefixIndex', 'Seiten', '');
addlilink(tb, 'https://dictious.com/en/User:Tlustulimu/Nawi', 'Nawi', '');
addlilink(tb, 'https://dictious.com/en/User:Tlustulimu/Nawi2', 'Nawi2', '');
addlilink(tb, 'https://dictious.com/en/User:Tlustulimu/Babel', 'Babel', '');
//addlilink(tb, 'https://dictious.com/en/MediaWiki:Gadgets-definition', 'Gadgets', '');
addlilink(tb, 'irc://irc.freenode.net/#wikipedia-de', 'IRC', '');
}
if (window.addEventListener) window.addEventListener("load", addtoolboxlinks, false);
else if (window.attachEvent) window.attachEvent("onload", addtoolboxlinks);