Help:Külső keresők

This page is a translated version of the page Help:External searches and the translation is 58% complete.
PD Megjegyzés: Amikor szerkeszted ezt a lapot, beleegyezel a szerkesztésed CC0 alatti közzétételébe. Lásd a Public Domain Help Pages lapot további információkért. PD

Lehetséges külső keresések létrehozása egy kulcsszó használatával egy sablonon keresztül.

Például itt van egy működőképes megoldás a Google-hoz:

<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{{1|Wiki}}} {{{1|Google}}}]</span>
<noinclude>
== Usage ==
Allows to establish a link to a search query at the Google search engine:
<div style="display:table; width:auto;"><pre>
{{Google|Term1+Term2+Term3}}
</pre></div>
[[Category:Template|Google]]
</noinclude>

A használat nagyon egyszerű: {{Google|elsőSzó+második+stb}}

Lehetséges kifejezések keresése is a következő formával: %22elsőSzó+második+stb%22.

  • External searches are useful where an article requires certain keywords to make an effective search.
  • For the editor it allows making searches of web more quickly and painlessly.

Other applications of the template include searching forums, for bug reports of the same type, for software development wikis where the wiki and forum work together.

Using interwiki prefixes

Wikipedia has an interwiki prefix with a similar effect, so you can link to Google results with [[Google:firstTerm+Second+etc]], 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:

<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
<noinclude>
== Usage ==
Allows to establish a link to a search query at the Google search engine:
* {{Google|Term1 Term2 Term3}}
* {{Google|"a phrase"}}
[[Category:Template|Google]]
</noinclude>

Note the application of MediaWiki magic word urlencode. 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 + and %20.