MediaWiki:MenuChanges.js

/* */

/* ============== MENU CHANGES==== ========================== autor:      Petr Kajzar User:Slepi datum:      03/2009 dokumentace: - licence:    for Wikilectures popis:      changes of the personal menu ==========================================================

/* ====================== PERSONAL MENU ====================== */

// FUNCTION ADDING "MY SANDBOX" function sandbox { addPortletLink('p-personal', wgServer + wgScriptPath + '/index.php?title=User:' + wgUserName + '/Sandbox', 'my sandbox', 'pt-sandbox', 'Space, where I can do experiments', 'a', document.getElementById('pt-preferences')); }

/* ================ SIDEBAR ========================== */

// FUNCTION ADDING "CATEGORY HISTORY" // (Josmart) function categoryHistory { addPortletLink('p-tb', wgServer + wgScriptPath + '/index.php/Special:CategoryHistory/'+wgTitle, 'Category history', 't-cathistory', 'History of articles in the category'); }

// FUNCTION ADDING SOME OTHER EDU PORTALS function addEdu { novaSekce = document.createElement("div"); novaSekce.id = "p-edu"; novaSekce.className = "portlet"; document.getElementById("column-one").appendChild(novaSekce);

mefanet = ' '; portalLF = ' '; elearningPortal = ' ';

novaSekce.innerHTML = " " + mefanet + "

" + portalLF + "

" + elearningPortal; }

/* =============== START FUNCTIONS ======================= */

// START ONLY IF LOGGED IN if (wgUserName!=null) { addOnloadHook(sandbox);

if (wgCanonicalNamespace == "Category" && wgTitle) addOnloadHook(categoryHistory); }

addOnloadHook(addEdu);

/* */