Template talk:Js

From Wikipedia, the free encyclopedia

Template:Js is permanently protected from editing, as it is a heavily used or visible template.

Substantial changes should be proposed here, and made by administrators if the proposal is uncontroversial, or has been discussed and is supported by consensus. Use {{editprotected}} to attract the attention of an administrator in such cases.
This template does not have a documentation subpage. If the template page contains categories, interwiki links or usage notes, move these to Template:Js/doc. If the template does not require documentation, add |doc=no to this template ({{permprot}}).

Interwiki:

[edit] </script>

Could someone please change </script> to </s'+'cript>? It's breaking 'show preview' on monobook.js, because when the browser comes across the </script> 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)

[edit] importScript

{{editprotected}} 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('{{{1}}}'); //[[{{{1}}}]]

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 [[{{{1}}}]]). 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 Wikipedia:Monobook. — Alex Smotrov 16:55, 9 March 2007 (UTC)

[edit] Documentation

Please use {{documentation}} 16@r (talk) 15:27, 16 May 2008 (UTC)