Help:External searches

From GridPACK
Jump to: navigation, search

Script error 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:

<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>

The usage is very simple and easy to use. {{Google|firstTerm+Second+etc}}

It is also possible to do phrases by using %22Term1+Term2+etc%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.

Note: 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:
* <code>{{Google|Term1 Term2 Term3}}</code>
* <code>{{Google|"a phrase"}}</code>
[[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.

{{#if:[[Project:Language policy|]] | |

}}

[[Project:Language policy|]] English {{#ifexist: {{#if:||Help:External searches}}/af

| • {{#if:

 |Afrikaans
 |Afrikaans
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ar | • {{#if:

 |العربية
 |العربية
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ast | • {{#if:

 |asturianu
 |asturianu
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/az | • {{#if:

 |azərbaycanca
 |azərbaycanca
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/bcc | • {{#if:

 |جهلسری بلوچی
 |جهلسری بلوچی
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/bg | • {{#if:

 |български
 |български
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/br | • {{#if:

 |brezhoneg
 |brezhoneg
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/bn | • {{#if:

 |বাংলা
 |বাংলা
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/bs | • {{#if:

 |bosanski
 |bosanski
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ca | • {{#if:

 |català
 |català
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/cs | • {{#if:

 |čeština
 |čeština
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/da | • {{#if:

 |dansk
 |dansk
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/de | • {{#if:

 |Deutsch
 |Deutsch
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/diq | • {{#if:

 |Zazaki
 |Zazaki
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/el | • {{#if:

 |Ελληνικά
 |Ελληνικά
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/eo | • {{#if:

 |Esperanto
 |Esperanto
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/es | • {{#if:

 |español
 |español
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/fa | • {{#if:

 |فارسی
 |فارسی
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/fi | • {{#if:

 |suomi
 |suomi
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/fr | • {{#if:

 |français
 |français
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/gl | • {{#if:

 |galego
 |galego
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/gu | • {{#if:

 |ગુજરાતી
 |ગુજરાતી
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/he | • {{#if:

 |עברית
 |עברית
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/hi | • {{#if:

 |हिन्दी
 |हिन्दी
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/hu | • {{#if:

 |magyar
 |magyar
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/hy | • {{#if:

 |Հայերեն
 |Հայերեն
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/id | • {{#if:

 |Bahasa Indonesia
 |Bahasa Indonesia
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/io | • {{#if:

 |Ido
 |Ido
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/it | • {{#if:

 |italiano
 |italiano
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ja | • {{#if:

 |日本語
 |日本語
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ka | • {{#if:

 |ქართული
 |ქართული
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/kk | • {{#if:

 |қазақша
 |қазақша
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/km | • {{#if:

 |ភាសាខ្មែរ
 |ភាសាខ្មែរ
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ko | • {{#if:

 |한국어
 |한국어
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ksh | • {{#if:

 |Ripoarisch
 |Ripoarisch
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/kw | • {{#if:

 |kernowek
 |kernowek
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/la | • {{#if:

 |Latina
 |Latina
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/min | • {{#if:

 |Baso Minangkabau
 |Baso Minangkabau
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/mk | • {{#if:

 |македонски
 |македонски
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ml | • {{#if:

 |മലയാളം
 |മലയാളം
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/mr | • {{#if:

 |मराठी
 |मराठी
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ms | • {{#if:

 |Bahasa Melayu
 |Bahasa Melayu
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/nl | • {{#if:

 |Nederlands
 |Nederlands
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/no | • {{#if:

 |norsk bokmål
 |norsk bokmål
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/oc | • {{#if:

 |occitan
 |occitan
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/or | • {{#if:

 |ଓଡ଼ିଆ
 |ଓଡ଼ିଆ
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/pl | • {{#if:

 |polski
 |polski
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/pt | • {{#if:

 |português
 |português
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/pt-br | • {{#if:

 |português do Brasil
 |português do Brasil
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ro | • {{#if:

 |română
 |română
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ru | • {{#if:

 |русский
 |русский
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/si | • {{#if:

 |සිංහල
 |සිංහල
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/sk | • {{#if:

 |slovenčina
 |slovenčina
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/sl | • {{#if:

 |slovenščina
 |slovenščina
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/sq | • {{#if:

 |shqip
 |shqip
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/sr | • {{#if:

 |српски / srpski
 |српски / srpski
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/sv | • {{#if:

 |svenska
 |svenska
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/ta | • {{#if:

 |தமிழ்
 |தமிழ்
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/th | • {{#if:

 |ไทย
 |ไทย
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/tr | • {{#if:

 |Türkçe
 |Türkçe
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/uk | • {{#if:

 |українська
 |українська
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/vi | • {{#if:

 |Tiếng Việt
 |Tiếng Việt
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/yi | • {{#if:

 |ייִדיש
 |ייִדיש
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/yue | • {{#if:

 |粵語
 |粵語
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/zh | • {{#if:

 |中文
 |中文
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/zh-hans | • {{#if:

 |中文(简体)‎
 |中文(简体)‎
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/zh-hant | • {{#if:

 |中文(繁體)‎
 |中文(繁體)‎
 }}

}}{{#ifexist: {{#if:||Help:External searches}}/zh-tw | • {{#if:

 |中文(台灣)‎
 |中文(台灣)‎
 }}
}}