User:Ilmari Karonen/addlink.js

// just a thin wrapper around mw.util.addPortletLink from wikibits.js

function addLink(where, url, name, id, title, key, after) { if (after && !after.cloneNode) after = document.getElementById(after); return mw.util.addPortletLink(where, url, name, id, title, key, after); }