<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AQuerylink%2Fdoc</id>
	<title>Template:Querylink/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AQuerylink%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Querylink/doc&amp;action=history"/>
	<updated>2026-04-16T10:35:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Querylink/doc&amp;diff=39925&amp;oldid=prev</id>
		<title>192.76.8.91: Undid revision 998126457 by JsfasdF252 (talk) There is no consensus to use the template in this manner</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Querylink/doc&amp;diff=39925&amp;oldid=prev"/>
		<updated>2021-05-06T14:46:56Z</updated>

		<summary type="html">&lt;p&gt;Undid revision 998126457 by &lt;a href=&quot;/mediawiki/index.php/Special:Contributions/JsfasdF252&quot; title=&quot;Special:Contributions/JsfasdF252&quot;&gt;JsfasdF252&lt;/a&gt; (&lt;a href=&quot;/mediawiki/index.php?title=User_talk:JsfasdF252&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:JsfasdF252 (page does not exist)&quot;&gt;talk&lt;/a&gt;) There is no consensus to use the template in this manner&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high use}}&lt;br /&gt;
{{tsh|ql}}&lt;br /&gt;
&lt;br /&gt;
== Quick overview ==&lt;br /&gt;
This template creates an [[Help:Link#Wikilinks|internal link]] to the specified page (1) with the specified [[query string]] (qs) of the form &amp;lt;code&amp;gt;qs=name=value&amp;amp;name2=value2&amp;lt;/code&amp;gt; and optionally the specified caption (2) which defaults to the specified page (1). The intended purpose of this template is to provide the ability to create internal links with a query string component, which addresses a limitation of the current [http://www.mediawiki.org wiki software].&lt;br /&gt;
&lt;br /&gt;
Example usage:&lt;br /&gt;
                      &amp;#039;&amp;#039;1         query string               2&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;{{BASEPAGENAME}}|Special:Allpages|qs=namespace=1|See what people are talking about}}&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
{{ {{BASEPAGENAME}}|Special:Allpages|qs=namespace=1|See what people are talking about}}&lt;br /&gt;
&lt;br /&gt;
== Reason ==&lt;br /&gt;
The [[MediaWiki]] software does not support the use of a &amp;#039;&amp;#039;&amp;#039;[[query string]]&amp;#039;&amp;#039;&amp;#039; element of an [[URL]] as part of the [[Help:Link#Wikilinks|internal wiki link]] syntax. This means that when wishing to link to a page that requires a query string in order to display the desired view of a page, an [[Help:Link#External_links|external link]] must be used. This is misleading when linking to a page within the wiki itself. For example, to create a link to this page&amp;#039;s edit page, one might use the following wikitext:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[//en.wikipedia.org/w/index.php?title={{FULLPAGENAMEE}}&amp;amp;action=edit edit]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
This would produce the following link: [//en.wikipedia.org/w/index.php?title={{FULLPAGENAMEE}}&amp;amp;action=edit edit]. However, the edit page is not really an external link, so the desired result would be {{Querylink|{{FULLPAGENAMEE}}|qs=action=edit|edit}}, without the external link graphic.&lt;br /&gt;
&lt;br /&gt;
== Description of use ==&lt;br /&gt;
Internal links with a query string URL element may be achieved through the use of this &amp;#039;&amp;#039;&amp;#039;querylink&amp;#039;&amp;#039;&amp;#039; template. This template has been provided as a [[workaround]] for the described wiki software limitation. The template has been designed to be usable in a similar manner to creating a normal internal link, and takes two to three parameters depending upon how you wish to use it. To create the example link from before to this page&amp;#039;s edit page using the querylink template, the following wikitext markup was used:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;{{Querylink|&amp;lt;/nowiki&amp;gt;{{FULLPAGENAMEE}}&amp;lt;nowiki&amp;gt;|qs=action=edit|edit}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All templates are called by enclosing the template name and parameters within a pair of curly braces &amp;quot;&amp;lt;code&amp;gt;{{}}&amp;lt;/code&amp;gt;&amp;quot;. All parameters are separated with the pipe character &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot;. The first &amp;quot;parameter&amp;quot; is always the &amp;#039;&amp;#039;name&amp;#039;&amp;#039; of the template that you wish to use and as such is not formally a parameter at all. In this case, it is &amp;lt;code&amp;gt;Querylink&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
#The first formal parameter passed to the template should be the name of the internal page that you wish to link. In this case, &amp;lt;code&amp;gt;{{FULLPAGENAMEE}}&amp;lt;/code&amp;gt;.&lt;br /&gt;
#The second parameter is the query string used to display the desired view of the page. It has the form &amp;lt;code&amp;gt;qs=&amp;lt;/code&amp;gt; followed by the name and value pairs of the query string of the form &amp;lt;code&amp;gt;name=value&amp;amp;name2=value2&amp;lt;/code&amp;gt;. In this case, just one name and value pair is used: &amp;lt;code&amp;gt;action=edit&amp;lt;/code&amp;gt;.&lt;br /&gt;
#The third parameter is optional. If included, the text of this parameter will be used as the display name for the link text in the article, similar to [[Wikipedia:Piped_link|piped links]]. If omitted, the page name will be used instead, similar to ordinary internal links. In this case, we specify a friendly name for the link: &amp;lt;code&amp;gt;edit&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In some cases you might prefer to produce a query string without a page name. For that, simply omit the first parameter:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Querylink||qs=oldid=10000|10 000th revision}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This produces the link {{Querylink||qs=oldid=10000|10 000th revision}}, pointing to the location https://en.wikipedia.org/?oldid=10000&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
&lt;br /&gt;
The template normally does not work as a target for [[Wikipedia:Redirect|&amp;lt;code&amp;gt;#REDIRECT&amp;lt;/code&amp;gt;]] in redirect pages. You can [[Wikipedia:Substitution|subst:]] it to achieve that: &amp;lt;nowiki&amp;gt;{{subst:querylink|...}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Template:Diff]]&lt;br /&gt;
* [[Template:Oldid]]&lt;br /&gt;
* [[Help:Magic words#Paths]] &amp;quot;fullurl:&amp;quot; is useful for the same purpose.&lt;br /&gt;
* [[Template:Plain link]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Internal link templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.76.8.91</name></author>
	</entry>
</feed>