Wikipedia:WikiProject User scripts/Scripts/Dashboard
Appearance
// <syntaxhighlight lang="javascript">
//Dashboard
function addDash() {
loLogoutNode = document.getElementById("pt-logout");
loDashNode = addPortletLink( "p-personal"
, mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Template:Dashboard&action=purge"
, "dashboard"
, "pt-dashboard"
, "Link to dashboard"
, "d"
, loLogoutNode );
}
addOnloadHook(addDash);
//</syntaxhighlight>