Template talk:Load user script

Edit request to complete TfD nomination

edit

Template:Load user script has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:

<noinclude>{{subst:tfm|help=off|1=Js}}</noinclude>

to the top of the page to complete the nomination. Thank you. Qwerfjkltalk 14:38, 28 November 2021 (UTC)Reply

  Done — Martin (MSGJ · talk) 20:35, 29 November 2021 (UTC)Reply

Edit request for interwiki prefix absolute URL support

edit

Hi there, could the contents of Template:Load user script/sandbox be merged into the main version? The sandbox allows you to specify an absolute URL (/w/etc instead of //en.wikipedia.org/etc) with an interwiki prefix, e.g. "fr" for frwiki and "c" for Commons. It also works with "en" as a prefix to use an absolute URL, in case that's useful (e.g. localized user scripts across wikis). Pinging @Ahecht, the original editor who created the sandbox. 🐶 EpicPupper (he/him | talk) 06:04, 7 January 2022 (UTC)Reply

Draft testcases are at Template:Load user script/testcases. 🐶 EpicPupper (he/him | talk) 06:14, 7 January 2022 (UTC)Reply
I see Xaosflux has been editing the sandbox. Were you intending to action this request? — Martin (MSGJ · talk) 16:56, 13 January 2022 (UTC)Reply
@MSGJ: was just validating the diff, but haven't had time to actually go through the change - feel free to take over! — xaosflux Talk 17:00, 13 January 2022 (UTC)Reply
Hi @MSGJ and @Xaosflux, any updates? 🐶 EpicPupper (he/him | talk) 04:24, 6 February 2022 (UTC)Reply
{{Admin help}}
Hello,
Apologies if I used this template in error. I would love some help in implementing the above edit request.
Thank you, 🐶 EpicPupper (he/him | talk) 18:47, 13 March 2022 (UTC)Reply
  Not done for now: please establish a consensus for this alteration before using the {{edit protected}} template. I do not see a need to support offwiki scripts. People should consciously opt in to loading a script from offwiki and giving someone a pre-made template is not a good way to do that. I also broadly do not see a need to support "absolute" URLs accordingly. Izno (talk) 18:49, 13 March 2022 (UTC)Reply
The intent isn't to support offwiki scripts, it's to support cross-wiki scripts (such as meta:User:Zhaofeng_Li/Reflinks.js or meta:User:ESanders (WMF)/commentlinks.js) and to support the generation of code that can be copied to ones global.js file. It doesn't support putting in an arbitrary url, it still needs a valid interwiki prefix. --Ahecht (TALK
PAGE
) 22:46, 13 March 2022 (UTC)Reply
^ This. Was about to reply the exact same thing. 🐶 EpicPupper (he/him | talk) 00:23, 14 March 2022 (UTC)Reply
I should also clarify that the current template already displays absolute URLs when provided with an interwiki prefix. All that's changing is that it now has the ability to specify an absolute URL for script on the this wiki by prefixing with "en:". --Ahecht (TALK
PAGE
) 13:41, 15 March 2022 (UTC)Reply

  You are invited to join the discussion at Wikipedia:Village pump (technical) § Should Template:Load user script support absolute URLs?. 🐶 EpicPupper (he/him | talk) 19:09, 13 March 2022 (UTC)Reply

The discussion was archived at Wikipedia:Village pump (technical)/Archive 196 § Should Template:Load user script support absolute URLs? Daask (talk) 18:44, 30 November 2023 (UTC)Reply

Protected edit request on 10 October 2024

edit

Add |copy=1 per the sandbox to add a "Copy" button to the code (see phab:T40932). --Ahecht (TALK
PAGE
)
21:33, 10 October 2024 (UTC)Reply

To clarify, this is only changing parameters within the noinclude (it won't show up in testcases). It would allow a user to copy the formatting to manually install a script without actually using the template. --Ahecht (TALK
PAGE
)
15:36, 11 October 2024 (UTC)Reply
  Done Izno (talk) 22:55, 21 October 2024 (UTC)Reply