Template talk:Querylink

fullurl

Are there any differences to fullurl apart from the obvious ones? -- Tomdo08 (talk) 16:27, 26 September 2010 (UTC)Reply

fullurl always returns a fullurl, localurl returns a server relative url most of the time but there are some situations it returns a full url, like interwiki links:
Thus currently for {{Querylink|meta:}} because of the way Querylink puts together localurl: and SERVER it currently uses //en.wikipedia.orghttps://meta.wikimedia.org/wiki/.
fullurl and localurl also support including query data as a second argument to them, and they understand when a url already has a ? in it. Dantman (talk) 08:11, 30 November 2010 (UTC)Reply
I've made a change to the sandbox that uses {{fullurl:}} so that we can support interwiki links. The existing logic to allow links without a page name is preserved. The new code also uses MediaWiki's native feature to define the query string inside {{fullurl:}} instead of manually appending it.
I've created the /testcases page with various scenarios, so we can compare the behavior of the current template and of the sandbox. Unfortunately the fullurl version loses the nice-looking URL (instead of /wiki/Template:Querylink?action=edit, we get /w/index.php?title=Template:Querylink&action=edit), but the rendered result is identical, and it doesn't break when used to build interwiki links, which I'd argue is a much more serious issue than having clean URLs.
Any thoughts? Waldyrious (talk) 20:34, 13 December 2025 (UTC)Reply

Template-protected edit request on 3 February 2021

Copy the sandbox version into the live version, which makes the link red if the page does not exist. JsfasdF252 (talk) 22:49, 3 February 2021 (UTC)Reply

 Done @JsfasdF252: Good idea, thanks! I modified it to use TemplateStyles. Please keep an eye on Category:Pages with too many expensive parser function calls over the next few days, to make sure nothing blew up. Matt Fitzpatrick (talk) 01:38, 20 February 2021 (UTC)Reply
 Undone: This request has been undone. @JsfasdF252: On second look, #ifexist adds pages to Wanted Pages. That undermines one of the purposes of this template, keeping talk pages etc. out of Wanted Pages. I still like the idea of making the link red if it's supposed to be red, though. Is there possibly an alternate solution? Matt Fitzpatrick (talk) 01:56, 20 February 2021 (UTC)Reply

#blocked

I am using the template on a local instance. The links are not generated correctly. Also applies to the example provided in the page. The links always point to about:blank#blocked — Preceding unsigned comment added by 80.138.196.248 (talk) 12:07, 4 October 2024 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.