Template talk:Install user script

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Protected edit request on 4 June 2014[edit]

Please change the current code of:

importScript('{{{1}}}'); // Backlink: [[{{{1}}}]]<noinclude>{{doc}} </noinclude>

To a new code of:

/* {{{2|{{{1}}}}}} */
importScript( '{{{1}}}' );// Backlink: [[{{{2|{{{1}}}}}}]]<noinclude>{{Doc}}</noinclude>

So that it will be possible for me to use this template to guide users to install my scripts for themselves and have them have backlinks to the directions page instead of the actual script like I like them. This change will also add linkable section headers for those who use User:Technical 13/Scripts/Gadget-codeAnchors (edit | talk | history | links | watch | logs) making it easier to navigate to a section. Alternatively, please lower the protection level to template editor so I may make these simple change myself. Thanks. — {{U|Technical 13}} (etc) 02:33, 4 June 2014 (UTC)[reply]

@Technical 13: I've lowered the protection to template-editor for you. — Mr. Stradivarius ♪ talk ♪ 06:30, 4 June 2014 (UTC)[reply]

Remove the deprecated import function[edit]

Replaced by mw.loader.load('full URL of the script'). KPu3uC B Poccuu (talk) 04:00, 9 January 2016 (UTC)[reply]

importScript is nicer and does not yet have a good replacement. We should continue using it. --V111P (talk) 12:16, 10 January 2016 (UTC)[reply]
importScript is surely deprecated. It will not be removed in near future because many legacy scripts still depends on it, but we should encourage new scripts to use the MediaWiki Resource Loader for performance reason. --Franklin Yu (talk) 05:04, 29 May 2019 (UTC)[reply]

Edit request: Re-insert space[edit]

There was originally a space between the semi-colon and the two slashes which was removed by T13. I think it looks bad, so I propose that we put it back. I believe there will be no objections.

 /* {{{2|{{{1}}}}}} */
-importScript( '{{{1}}}' );// Backlink: [[{{{2|{{{1}}}}}}]]<noinclude>{{Doc}}</noinclude>
+importScript( '{{{1}}}' ); // Backlink: [[{{{2|{{{1}}}}}}]]<noinclude>{{Doc}}</noinclude>

Hello71 02:42, 15 February 2016 (UTC)[reply]

Not done: please establish a consensus for this alteration before using the {{edit template-protected}} template. I have no objection to the substance of the change, but going back-and-forth between the two preferences based on personal taste isn't a way forward. Bazj (talk) 09:11, 15 February 2016 (UTC)[reply]
One, I believe it was removed accidentally during other changes. Two, T13 has since been indefinitely banned from editing Wikipedia. Three, there are several different options for spacing here (e.g. importScript('{{{1}}}')), but the present state is none of them. ⁓ Hello71 00:35, 20 February 2016 (UTC)[reply]
Done This looks like a minor edit to me, so I don't think we need to require discussion for it. If anyone is really passionate about whitespace in user .js files then I'll revert and we can talk about it, but otherwise I don't see it being an issue. — Mr. Stradivarius ♪ talk ♪ 12:10, 20 February 2016 (UTC)[reply]

Requested move 7 April 2016[edit]

The following is a closed discussion of the proposal. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

The result of the proposal was move per request. Template titling using the natural sentence name has been the trend for a few years now.--Fuhghettaboutit (talk) 22:15, 16 April 2016 (UTC)[reply]


Template:InstallUserScriptTemplate:Install user script – Templates have often been moved to use the intuitive case for readability rather than CamelCase. Since this one is not even transcluded anywhere, it's a no-brainer. The few links I'll happily correct if asked for. The Evil IP address (talk) 14:59, 7 April 2016 (UTC)[reply]

The above discussion is preserved as an archive of the proposal. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.

Protected edit request on 23 June 2016[edit]

I'd like the /* */ comment to be removed, since it was used by a script (code anchors) that currently has 0 users; also, because it clutters up people's commons.js pages. Enterprisey (talk!(formerly APerson) 20:55, 23 June 2016 (UTC)[reply]

 Donexaosflux Talk 20:46, 26 June 2016 (UTC)[reply]

Protected edit request on 3 December 2018[edit]

importScript() is deprecated. This template should be changed to:

mw.loader.load( '{{localurl:{{{1}}}|action=raw&ctype=text/javascript}}' ); // Backlink: [[{{{2|{{{1}}}}}}]]<noinclude>{{Documentation}}</noinclude> Ahecht (TALK
PAGE
) 17:37, 3 December 2018 (UTC)[reply]

 Not done: per Template_talk:Install_user_script#Remove_the_deprecated_import_function there appears to be opposition to replacing with mw.loader.load; so you should gain a consensus for the change Galobtter (pingó mió) 06:31, 8 December 2018 (UTC)[reply]