Wikipedia:WikiProject User scripts/Scripts/addLink

From Wikipedia, the free encyclopedia

// Note: This is now just a thin wrapper around addPortletLink() from wikibits.js. Please consider using addPortletLink() directly instead.

function addLink(where, url, name, id, title, key, after) {
    // addLink() accepts either an id or a DOM node, addPortletLink() only takes a node
    if (after && !after.cloneNode)
        after = document.getElementById(after);

    return addPortletLink(where, url, name, id, title, key, after);
}

//