Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/////////////////////////////////////////////////////////////////////
// Erweiterg. Ulli Purwin: EX-MENTOREN ANZEIGEN (markExMentors.js) //
/////////////////////////////////////////////////////////////////////
// Skript übernommen von [[Benutzer:Anka Friedrich/markMentors.js]] und erweitert
//*******************************************************************************
// <nowiki>
var wgCanonicalNamespace = mw.config.get( 'wgCanonicalNamespace');
var wgNamespaceNumber = mw.config.get('wgNamespaceNumber');
var wgAction = mw.config.get('wgAction');
var wgUserName = mw.config.get('wgUserName');
mw.loader.using('mediawiki.util', function () { $(function () {
// Variables that should be defined in your monobook
if (typeof(markexmentors) == 'undefined')
markexmentors = true;
if (!markexmentors)
return; //nichts zu tun, schnell weg hier
if (typeof(markemsubpages) == 'undefined')
markemsubpages = false;
if (typeof(dontmarkmyself) == 'undefined')
dontmarkmyself = false;
if (typeof(isSpecial) == 'undefined')
isSpecial = (wgCanonicalNamespace == "Special");
if (typeof(isHistory) == 'undefined')
isHistory = (wgAction == 'history');
if (typeof(isUserpage) == 'undefined')
isUserpage = ( (wgCanonicalNamespace == "User") || (wgCanonicalNamespace == "User_talk") );
if (typeof(isTalk) == 'undefined')
isTalk = (wgNamespaceNumber %2 == 1);
if (typeof(isProject) == 'undefined')
isProject = (wgCanonicalNamespace == "Project");
if (typeof(isDatei) == 'undefined')
isDatei = (wgCanonicalNamespace == "File");
if (typeof(isHelp) == 'undefined')
isHelp = (wgCanonicalNamespace == "Help");
if (typeof(isDiff) == 'undefined')
isDiff = mw.util.getParamValue('diff') !== null;
if (markexmentors) {
// statische Liste (dynamisch: http://purwin.de/WP_MP/neuversion/ex_mentoren.cfm )
// Stand: 28.12.2012 (90)
// Aktualisierung auf die letzte Änderung vom 11.10.2017: (177)
var exmentors=new Array('-jkb-', '20percent', 'ABF', 'Achates', 'ADK', 'Agadez', 'AleXXw', 'Altkatholik62', 'Andy_king50', 'Austriantraveler', 'Berita', 'Berliner_Schildkr%C3%B6te', 'Bj%C3%B6rn_Hagemann', 'Blunt.', 'Bomzibar', 'B%C3%BCcherw%C3%BCrmlein', 'Byggxx', 'C.Cornehl', 'Calculus', 'Carol.Christiansen', 'Carport', 'Carschten', 'Cartinal', 'Catfisheye', 'CherryX', 'Christian2003', 'ChristianBier', 'Church_of_emacs', 'Clemensfranz', 'Complex', 'Coyote_III', 'CTHOE', 'Cymothoa_exigua', 'Daniel_1992', 'Daniel73480', 'DasBee', 'David_Ludwig', 'Der_wahre_Jakob', 'Dodo_von_den_Bergen', 'Die_Sengerin', 'Drahreg01', 'Elzecko', 'Emma7stern', 'Ervaude', 'Euku', 'Factumquintus', 'Faltenwolf', 'Fecchi', 'Felix_K%C3%B6nig', 'Filterkaffee', 'Fl%C3%BCgelRad', 'Frank_Behnsen', 'Frank_Schulenburg', 'Freedom_Wizard', 'Geiserich77', 'Geos', 'Gerold_Broser', 'Giftpflanze', 'GiordanoBruno', 'Grand-Duc', 'HAL_Neuntausend', 'Hannes_R%C3%B6st', 'Hardcore-Mike', 'Helenopel', 'Hilarmont', 'Hofres', 'Hosse', 'Howwi', 'Hukuk%C3%A7u', 'Ianusius', 'Inkowik', 'Ireas', 'Iste_Praetor', 'Itsnotuitsme', 'Jacktd', 'Jbo166', 'JCIV', 'JCS', 'Joe-Tomato', 'Johnny789', 'J%C3%B3n', 'Jonathan_Gro%C3%9F', 'J%C3%BCrgen_Oetting', 'Juliana', 'Kaisersoft', 'Karl_Gruber', 'Kh80', 'Kingofears', 'Koenraad', 'Krd', 'Kriddl', 'Kritzolina', 'Lady_Whistler', 'Le-max', 'Leithian', 'Liesel', 'L%C3%B3melinde', 'Lukas%C2%B2%C2%B3', 'LZ6387', 'M.L', 'Ma-Lik', 'MAGISTER', 'Manecke', 'Marcl1984', 'Markus_Schulenburg', 'Martin1978', 'MaxEddi', 'Meisterkoch', 'Memmingen', 'Micha_L._Rieser', 'Mikered', 'Minderbinder', 'Mischa004', 'Mo4jolo', 'Morty', 'Mrilabs', 'MSGrabia', 'Ne_discere_cessa!', 'Nicolas17', 'Niemot', 'Niklas_555', 'Nirakka', 'Oceancetaceen', 'Oliver_S.Y.', 'Oxymoron83', 'Pb1791', 'Penta', 'Pfieffer_Latsch', 'Phantom', 'Philipp_Wetzlar', 'Pittimann', 'Pitichinaccio', 'Pitlane02', 'Poisend-Ivy', 'Polemos', 'Polarlys', 'Port(u*o)s', 'Poup%C3%A9e_de_chaussette', 'PowerMCX', 'RacoonyRE', 'Ralf_Roletschek', 'Reimmichl-212', 'Sa-se', 'Saehrimnir', 'Saethwr', 'Sargoth', 'Sciurus', 'Siechfred', 'SK_Sturm_Fan', 'Snevern', 'Solid_State', 'SonniWP', 'SpiegelLeser', 'Stefan', 'SuperAle', 'Tafkas', 'Taxiarchos228', 'Thalan', 'TheWolf', 'Tilla', 'Tobi_B.', 'Toffel', 'Torsten_Schleese', 'Toter_Alter_Mann', 'Triggerhappy', 'Trinidad', 'Trinityfolium', 'Ukko', 'Ulli_Purwin', 'Umweltsch%C3%BCtzen', 'Update', 'UweRohwedder', 'W._Edlmeier', 'Waylon', 'Wirthi', 'WolfgangRieger', 'XenonX3', 'Yellowcard', 'Zacke', 'Zenit', 'Ziko', 'Zipferlak');
var exmentors_str = '|'+exmentors.join('|')+'|';
if (typeof(markemtxt) == 'undefined')
markemtxt = "Ex-M";
}
if (isSpecial || isHistory || isUserpage || isTalk || isProject || isDatei || isHelp || isDiff) {
var i;
var emNode;
var allanchors = document.getElementsByTagName("A");
var allanchorsuser = new Array();
var followupmark;
var searchExp = /\/wiki\/Benutzer(in)?([ _]Diskussion)?:(.+)/;
var searchExpTalk = /[ _]Diskussion:/;
var marker;
var mainpageanchor;
var SGSpecial;
mw.util.addCSS('span.exmentorMark { font-weight: bold; }');
for (i=0; i < allanchors.length; i++) {
emNode = allanchors[i];
mainpageanchor = true;
// if it's a link to a user
if ((href = emNode.getAttribute("href")) && (searchExp.exec(href) != null)) {
currUser = searchExp.exec(href)[3];
/* if (isUserpage) */ currUserClean = currUser.replace(/\/.*/,'');
if (currUserClean != currUser) mainpageanchor = false;
if (searchExpTalk.exec(href) != null) talkpageanchor = true;
if (mainpageanchor) allanchorsuser[i] = currUserClean;
else allanchorsuser[i] = "";
followupmark = false;
if (i>0)
if ((currUserClean == allanchorsuser[i-1]) && talkpageanchor)
followupmark = true;
currUser= "|" + currUserClean + "|";
marker = new Array();
// is this user an ex-mentor?
if (exmentors_str.indexOf(currUser) != -1) marker.push(markemtxt);
// don't mark certain pages, except link to user main page
if (mainpageanchor ||
(markemsubpages && (wgCanonicalSpecialPageName != "Prefixindex")
&& (wgCanonicalSpecialPageName != "Allpages")) ) {
// check finished, now append node
if ((marker.length > 0) && !(dontmarkmyself && (currUserClean == wgUserName))) {
var emMark = document.createElement("span");
emMark.className = "exmentorMark";
var emMarkText = document.createTextNode(" (" + marker.join("/") + ")");
emMark.appendChild(emMarkText);
emNode.appendChild(emMark);
}
}
}
}
}
}); });
// </nowiki>
/////////////////////////////////////////////////////////////////////
////// ENDE erweiterung: EX-MENTOREN ANZEIGEN (markExMentors.js) ////
/////////////////////////////////////////////////////////////////////