Vikipediisto:Tlustulimu/monobook.js
El Komunejo
(Malsamoj inter versioj)
E (aldono) |
E (aldono) |
||
Linio 54: | Linio 54: | ||
} | } | ||
return plaintext; | return plaintext; | ||
- | + | } | |
/* decodiere die codierten UTF8-Zeichen in Kapitel-Ankern */ | /* decodiere die codierten UTF8-Zeichen in Kapitel-Ankern */ | ||
Linio 92: | Linio 92: | ||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | ||
- | // | + | |
- | // install [[User:Cacycle/wikEd]] in-browser text editor | + | // Laŭ informo de Arno en la diskutejo je la 2a de novembro 2007 |
+ | // instalas la esperantan tradukon por [[:en:User:Cacycle/wikEd]] | ||
+ | document.write('<script type="text/javascript" src="' | ||
+ | + 'http://en.wikipedia.org/w/index.php?title=User:ArnoLagrange/wikEd-eo.js' | ||
+ | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | ||
+ | |||
+ | |||
+ | // El la angla Vikipedio de User:Cacycle | ||
+ | // install [[:en:User:Cacycle/wikEd]] in-browser text editor | ||
document.write('<script type="text/javascript" src="' | document.write('<script type="text/javascript" src="' | ||
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' | + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' |
Kiel registrite je 17:38, 3. Nov 2007
//<source lang="javascript"> /* Füge Projektportal-Link hinzu */ function addPortal() { quickbar = document.getElementById('quickbar'); if (quickbar) { neues = document.createElement('a') neues.href = '/wiki/Wikipedia:Portal' neues.appendChild(document.createTextNode('Projektportal')) quickbar.appendChild(neues) } } addOnloadHook(addPortal); /* Einige link-Tags hinzufügen */ head = document.getElementsByTagName('head')[0] function verlinke(rel, href, title) { link = document.createElement('link') link.rel = rel link.href = '/wiki/' + 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(/\.([0-9A-F][0-9A-F])/g,"%$1"); return decode_utf8(unescape(escaped)).replace(/_/g,' '); } /* Füge Link-Tags fürs Inhaltsverzeichnis hinzu */ function addcontents() { var head = document.getElementsByTagName('head')[0]; var len = document.anchors.length for (i = 0; i < len; ++i) { anchor = document.anchors[i]; link = document.createElement('link') link.rel = 'chapter' link.href = '#' + anchor.name; link.title = decodeanchor(anchor.name); head.appendChild(link) } } addOnloadHook(addcontents); //Bei Dschwen gefunden // [[Benutzer:Dschwen/wikiminiatlas2.js]] - diese Zeile bitte mitkopieren document.write('<script type="text/javascript" src="' + 'http://de.wikipedia.org/w/index.php?title=User:Dschwen/wikiminiatlas2.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // por la verdaj butonetoj laŭ hsbwp, plwp kaj ruwp resp. propra vikio document.write('<script type="text/javascript" src="' + 'http://eo.wikipedia.org/w/index.php?title=Vikipediisto:Tlustulimu/butonetoj.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // Laŭ informo de Arno en la diskutejo je la 2a de novembro 2007 // instalas la esperantan tradukon por [[:en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:ArnoLagrange/wikEd-eo.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // El la angla Vikipedio de User:Cacycle // install [[:en:User:Cacycle/wikEd]] in-browser text editor document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //</source>