Wikipedia talk:WikiProject User scripts/Scripts/Add toolbox link

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Update this script[edit]

Please update the script, as so:

// <source lang="javascript">
// '''Note''': This is now just a thin wrapper around <code>mw.util.addPortletLink()</code> from
// [// mw.util]. 
// Please consider using <code>mw.util.addPortletLink()</code> directly instead.

function addToolboxLink(url, name, id) {
    return mw.util.addPortletLink('p-tb', url, name, id);

// [[Category:Wikipedia scripts]]
// </source>

I've switched to using the recommended mw.util, as well as changed the comments. Cheers, mc10 (t/c) 03:26, 20 October 2011 (UTC)

Yes check.svg Done — Martin (MSGJ · talk) 15:58, 20 October 2011 (UTC)