Changes
Undo revision 382776 by 219.142.99.29 (talk) Not in the user help.
{{PD Help Page}}
It is possible to create an external searches of a topic using key words using a template.
For example, this is something that would work for Google:
<prestyle="overflow: auto"><nowiki><span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?hl=en&safe=off&q={{{1|Wiki}}}&btnG=Search&meta= {{{1|Google}}}]</span>
<noinclude>
==Usage==
Note: Wikipedia has an [[Help:Links#Interwiki_links|interwiki prefix]] with a similar effect, so you can link to google results with <nowiki>[[Google:firstTerm+Second+etc]]</nowiki>, although templates are still useful for linking other search engines.
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example: <pre style="overflow: auto"><nowiki><span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{languagesurlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span><noinclude>==Usage==Allows to establish a link to a search query at the Google search engine:* <code>{{Google|Term1 Term2 Term3}}</code>* <code>{{Google|"a phrase"}}</code>[[Category:Template|Google]]</noinclude></nowiki></pre> Note the application of MediaWiki [[Help:External searchesMagic words|magic word]] <code>urlencode</code>. This grants us the convenience and elegance of entering the query string in a Wikipedia article in the same literal form we would enter it in Google search box, including spaces and quotation marks instead of representing them indirectly with <code>+</code> and <code>%20</code>. {{languages}}
[[Category:Help|External Searches]]
[[Category:Search|External Searches]]