Wikipedia:WikiProject User scripts/Scripts/Add LI link
Appearance
// '''Note''': There is now a mostly equivalent function, <code>addPortletLink()</code>, included as a part of [[MediaWiki]] in [http://en.wiki.x.io/skins-1.5/common/wikibits.js wikibits.js]. Please consider using it instead. The only major difference is that the first argument to <code>addPortletLink()</code> should be the <code>id</code> attribute of an element containing the list, not the DOM node of the list itself.
function addlilink(node, href, text, id, tooltip, accesskey) {
if( !node.parentNode.id ) jsMsg( "You are using an outdated script that is using an old addlilink. <a href=\"http://en.wiki.x.io/w/index.php?title=User_talk:TheDJ&action=edit&preload=User:TheDJ/addlilinkpreload&preloadtitle=Help%20request%20from%20Xaosflux,%2013%20April%202010§ion=new\" >Report your problem to get it fixed.</a>")
return addPortletLink( node.parentNode.id, href, text, id, tooltip, accesskey);
}
//[[Category:Wikipedia scripts]]