Template talk:Js

Interwiki:
 * pl:Szablon:JS

Could someone please change to  ? It's breaking 'show preview' on monobook.js, because when the browser comes across the in the string it assumes it's the end of the script and prints an error message. --ais523 09:54, 1 November 2006 (UTC)


 * Done. NCurse work 15:00, 1 November 2006 (UTC)

importScript
There is now a way of accomplishing this using site-wide JS, which simplifies and shortens the template. Could the whole template, apart from the noinclude section, be changed to this: importScript(''); // Thanks. --ais523 09:09, 20 February 2007 (UTC)
 * I've mentioned this at Wikipedia talk:WikiProject User scripts in the hopes of getting more eyes on this (especially eyes who know Javascript a lot better than I do). – Luna Santin  (talk) 22:27, 21 February 2007 (UTC)
 * Yes, I think this change would work. Tra (Talk) 00:26, 22 February 2007 (UTC)


 * Done. Awyong J. M. Salleh 14:00, 25 February 2007 (UTC)


 * Please remove the first line ( // Script from ).  When the import code was three lines, it made sense to have that on a fourth, but now it should be on the same line, and already is. — Randall Bart 16:34, 9 March 2007 (UTC)

Also most of the decription can be replaced with link Monobook. — Alex Smotrov 16:55, 9 March 2007 (UTC)

Documentation
editprotected
 * Please use documentation 16@r (talk) 15:27, 16 May 2008 (UTC)
 * Create and protect JS. — Dispenser 04:26, 25 July 2008 (UTC)
 * Yes check.svg Done the first, only half done the second. It won't need protecting unless it gets targeted for vandalism.  Cheers.  lifebaka (talk - contribs) 14:57, 25 July 2008 (UTC)

Edit request on 24 April 2013
The text should be replaced with:

mw.loader.load('//en.wikipedia.org/w/index.php?title=&action=raw&ctype=text/javascript'); //

importScript is now deprecated, and should be replaced with mw.loader.load.

Legoktm (talk) 08:14, 24 April 2013 (UTC)
 * Done. --Closedmouth (talk) 09:17, 28 April 2013 (UTC)
 * Sorry I made a mistake, the internal urlencode needs to get subst'ed. The new code should do it. Legoktm (talk) 18:27, 1 May 2013 (UTC)

importScript in not really deprecated, please revert the change. See mw:Thread:Talk:ResourceLoader/JavaScript_Deprecations/importScript%28%29,_importStylesheet%28%29 and ResourceLoader/JavaScript_Deprecations. --V111P (talk) 21:03, 10 November 2013 (UTC)
 * I believe he must mean to revert this diff, in particular, change  back to.
 * Why? Because according to, until is implemented, we should just keep on using  : it will not be deprecated until such time.  (Also, the code we have now is unreadably ugly.) &mdash;SamB (talk) 21:10, 8 April 2015 (UTC)


 * Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the template. Since I oppose going backwards to a version where the code is slated to become obsolete, and  is one of the core developers working on deprecating this old method, I don't think it is wise or desirable to revert this change. —   22:33, 11 April 2015 (UTC)

Edit request to complete TfD nomination
Template:Js has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:

to the top of the page to complete the nomination. Thank you. Qwerfjkl talk  14:38, 28 November 2021 (UTC)
 * ✅ — xaosflux  Talk 15:31, 29 November 2021 (UTC)