Jump to content

Template talk:Load user script

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

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 //wiki.riteme.site/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]