en:Wikipedia:WikiProject User scripts/Scripts/Add LI link
// Note: There is now a mostly equivalent function, addPortletLink()
, included as a part of MediaWiki in [http://en.wikipedia.org/skins-1.5/common/wikibits.js wikibits.js]. Please consider using it instead. The only major difference is that the first argument to addPortletLink()
should be the id
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. Report your problem to get it fixed.")
return addPortletLink( node.parentNode.id, href, text, id, tooltip, accesskey);
}