Wikipedia:Internal query string links: Difference between revisions
Content deleted Content added
Documentation for Template:Querylink |
Changed the example use of querylink from editing the talk page to just editing the page in order to eliminate confusion. Fixed various typos of the word "parameter". Damn butterfingers. |
||
Line 1:
The [[MediaWiki]] software does not support the use of a '''[[query string]]''' [[URL]] element as part of the '''[[Help:Link#Wikilinks|internal link]]''' [[wikitext]] 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's
<code><nowiki>[http://en.wikipedia.org/w/index.php?title=
This would produce the following link:
[http://en.wikipedia.org/w/index.php?title=
Internal links with a query string URL element may be achieved through the use of the [[Template:querylink|querylink]] 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's
<nowiki>{{Querylink|
All templates are called by enclosing the template name and parameters within a pair of curly braces "<code>{{}}</code>". All parameters are separated with the pipe character "<code>|</code>". The first "parameter" is always the ''name'' of the template that you wish to use and as such is not formally a
#The first formal parameter passed to the template should be the name of the internal page that you wish to link. In this case, <code>
#The second
#The third parameter is optional. If included, the text of this
==See also==
|