Edit request for interwiki prefix absolute URL support[edit]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
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[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[reply]
@MSGJ: was just validating the diff, but haven't had time to actually go through the change - feel free to take over! — xaosfluxTalk 17:00, 13 January 2022 (UTC)Reply[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[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[reply]
^ This. Was about to reply the exact same thing. 🐶 EpicPupper(he/him | talk) 00:23, 14 March 2022 (UTC)Reply[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[reply]