Jump to content

Wikipedia:WikiProject User scripts/Scripts/addLink

From Wikipedia, the free encyclopedia
// '''Note''': This is now just a thin wrapper around <code>addPortletLink()</code> from [http://en.wikipedia.org/skins-1.5/common/wikibits.js wikibits.js].  Please consider using <code>addPortletLink()</code> 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);
 }

// [[Category:Wikipedia scripts]]