Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21e440fca5e962d

Jump to content

Template talk:Querylink

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 7 months ago by Waldyrious in topic fullurl

fullurl

[edit]

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

[edit]

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

[edit]

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