Misplaced Pages

User:Animum/headers.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Animum Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 21:09, 28 June 2007 view sourceAnimum (talk | contribs)30,489 edits adding closing delimiters← Previous edit Revision as of 21:10, 28 June 2007 view source Animum (talk | contribs)30,489 edits hmmmmmmmmm.....Next edit →
Line 32: Line 32:
'admin coach', 'pt-admin coach', 'admin coach', null, document.getElementById('pt-wannabe kate')); 'admin coach', 'pt-admin coach', 'admin coach', null, document.getElementById('pt-wannabe kate'));
}); });
} }}
}
//</nowiki></pre> //</nowiki></pre>

Revision as of 21:10, 28 June 2007

//<pre><nowiki>
function addHeaderLinks() {
  if( wgServer = "http://en.wikipedia.org" ) {

addOnloadHook(function () {
    addPortletLink('p-personal', 'http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate',
        'Wannabe Kate', 'pt-wannabe kate', 'Wannabe Kate', null, document.getElementById('pt-preferences'));
});

addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'User:Steptrip/Sandbox'),
        'My Sandbox', 'pt-My Sandbox', 'My Sandbox', null, document.getElementById('pt-watchlist'));
});

addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'Misplaced Pages:Administrator intervention against vandalism'),
        'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences'));
});

addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'User:Steptrip/monobook.js'),
        'monobook', 'pt-monobook', 'monobook', null, document.getElementById('pt-preferences'));
});

addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'Misplaced Pages:Motto of the day/Nominations'),
        'MOTD', 'pt-MOTD', 'MOTD', null, document.getElementById('pt-wannabe kate'));
});

addOnloadHook(function () {
    addPortletLink('p-personal', wgArticlePath.replace(/\$1/, 'User:Steptrip/Coach'),
        'admin coach', 'pt-admin coach', 'admin coach', null, document.getElementById('pt-wannabe kate'));
});
}}
//</nowiki></pre>