User:Alwoch Sophia/Deadlink.js

const p = mw.util.addPortlet( 'detached' ); document.body.appendChild(p); mw.util.addPortletLink( 'detached', '#', 'My test link' );

// create a portlet that is appended after #p-interaction and mimics the styling of #p-interaction. mw.util.addPortlet( 'p-mytest', 'My test portlet', '#p-interaction' ); mw.util.addPortletLink( 'p-mytest', '#', 'My test link' );