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

Update this script
Please update the script, as so:

//  from // [//www.mediawiki.org/wiki/ResourceLoader/Default_modules#mediaWiki.util mw.util]. // Please consider using  directly instead.

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

// //

I've switched to using the recommended, as well as changed the comments. Cheers, — mc10 ( t / c ) 03:26, 20 October 2011 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 15:58, 20 October 2011 (UTC)

Protected edit request on 24 February 2019
Change content model to JavaScript and remove source (or pre/nowiki) tags at top to remove the extraneous  when viewing the page. &#123;&#123;3x&#124;p&#125;&#125;ery (talk) 02:01, 24 February 2019 (UTC)
 * Also applies to WikiProject User scripts/Scripts/Add edit section 0, WikiProject User scripts/Scripts/test-enhanced, WikiProject User scripts/Scripts/Add LI link, WikiProject User scripts/Scripts/Six tabs, WikiProject User scripts/Scripts/Add purge to tabs, WikiProject User scripts/Scripts/Logs link,WikiProject User scripts/Scripts/Unwatch and WikiProject User scripts/Scripts/External editor. &#123;&#123;3x&#124;p&#125;&#125;ery (talk) 02:03, 24 February 2019 (UTC)
 * I've been kind-of in the process of making a guide for making scripts, that would (ideally) supercede the snippets you linked to - also, you may be interested in looking at Evad37's script module proposal, which would likewise may this kind of redundant. just a thought --DannyS712 (talk) 23:13, 25 February 2019 (UTC)
 * I've been thinking about what to do with all these pages a lot lately. I think I'd like to have a discussion to just toss 'em — loading scripts from projectspace will (eventually) be removed, and they're currently not handled appropriately like js in user- or mediawiki- space — i.e., changing the content model won't make these any more secure — so AFAICT this request is basically just a cosmetic request. ~  Amory  (u • t • c) 00:37, 27 February 2019 (UTC)
 * ✅ agree we probably should start a migration of these.  I did update the content model on this, as it is practically only a cosmetic item as you mentioned, but not hurting anything. —  xaosflux  Talk 14:49, 5 March 2019 (UTC)

This was a request that applied to more than one page. You only changed the content model of one of them. &#123;&#123;3x&#124;p&#125;&#125;ery (talk) 20:01, 5 March 2019 (UTC)
 * ✅ OK think I got them all . — xaosflux  Talk 20:45, 5 March 2019 (UTC)