Template talk:URL

https?
The documentation says: "If it doesn't start with a URI scheme ... the prefix "https://" is prepended". Is that what is supposed to happen? It's not what I'm seeing. I'm getting "http://" without the 's'. This is firefox 97 if that makes a difference. GA-RT-22 (talk) 19:43, 27 May 2022 (UTC)
 * The documentation was edited on the 2nd May 2022 by User:PRY86400. I've fixed the error and it now says http:// again. -- WOSlinker (talk) 21:19, 27 May 2022 (UTC)

Long URL in infobox
I was expecting template:URL would wrap the long URL in EMBiology, does anyone know why it doesn't? currently the infobox occupies a large fraction of the page width. ~thanks. fgnievinski (talk) 02:05, 5 August 2022 (UTC)
 * EMBiology doesn't use URL. If you are talking about previewing a version which does use URL then what is your browser? In my Firefox, it already wraps now without URL. In Edge it doesn't wrap now but it wraps in a preview with URL. PrimeHunter (talk) 02:25, 5 August 2022 (UTC)
 * thanks for your assistance. EMBiology uses template:infobox bibliographic database which uses template:website which redirects to template:url which calls module:URL. Shouldn't the latter insert HTML wbr to assist browsers in breaking a long URL? BTW, I'm using Chrome. fgnievinski (talk) 17:56, 5 August 2022 (UTC)
 * template:infobox bibliographic database does not use template:website. Why do you think that it does? If you saw code like  with three curly brackets then it means the template has a parameter  . A template call has two curly brackets like  . The documentation at Template:Infobox bibliographic database says   and  . That means an article using the infobox can place a url in  . EMBiology doesn't do that. PrimeHunter (talk) 18:15, 5 August 2022 (UTC)
 * I just noticed this was changed a few years ago (link). Do you know what's the best practice in other templates? are users expected to wrap bare URLs in the the URL template or do templates do the wrapping automatically as a courtesy to users? and is template URL safe to abuse when it's input to itself? I ask because now template:infobox bibliographic database has a mixture of usage patterns. thanks for your help. fgnievinski (talk) 19:16, 5 August 2022 (UTC)
 * URL requires a raw url.  or   fails. URL is from before MediaWiki got modules. The template language has very limited string processing. URL is now implemented by Module:URL and it would be possible to test the parameter and do nothing if it's not a raw url. Infoboxes with displayed website parameters generally require the caller to add URL for improved formatting. PrimeHunter (talk) 19:45, 5 August 2022 (UTC)
 * thank you, I've inserted url in EMBiology which remedied the large infobox width. any suggestions of bots which could wrap bare URLs in infoboxes? fgnievinski (talk) 20:50, 5 August 2022 (UTC)
 * Bot tasks need approval. You could post to Bot requests. Website parameters still work without URL so there might be some opposition. You could also make searches like and work on it yourself, maybe with AutoWikiBrowser if you know it, but it's probably too much work for more common infoboxes. PrimeHunter (talk) 21:28, 5 August 2022 (UTC)
 * Bot requested, thanks for your assistance so far: Bot_requests. fgnievinski (talk) 14:20, 8 August 2022 (UTC)
 * Template:Infobox bibliographic database is only used in 139 articles and many of them don't have the issue. This is so little by bot standards that I expect a request to be rejected when it's only for that infobox, but maybe somebody will just do it with AutoWikiBrowser. PrimeHunter (talk) 15:21, 8 August 2022 (UTC)

Edit request to remove legacy code
Hello, the following code may be removed:

Refs past discussions:
 * Template talk:URL/Archive 1
 * d:Wikidata:Project chat/Archive/2013/09

According to T56312, this bug (from the early ages of wikidata) has been fixed since then.

Od1n (talk) 08:59, 11 September 2022 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 18:58, 11 September 2022 (UTC)