Help:External searches

From WiRNS Wiki
Revision as of 03:39, 24 June 2011 by Glenn Reimche (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
PD {{{text}}}|Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the {{ #ifeq:
 WiRNS Wiki
MediaWiki Public Domain Help Pages Public Domain Help Pages

}}, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. See {{ #ifeq:

 WiRNS Wiki
MediaWiki Project:PD help/Copying Project:PD help/Copying

}} for instructions.}}

PD

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

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:{{#switch:External searches |=Languages: |Languages=Languages: |MediaWiki=Languages: |af=Taal: |aln=Gjuha: |am=ቋምቋ፦ |an=Idioma: |ang=Sprǣc: |ar=:اللغة |arc=ܠܫܢܐ: |arn=Dungun: |arz=:اللغة |as=ভাষা: |ast=Llingua: |avk=Ava: |ay=Aru: |az=Dil: |bat-smg=Kalba: |bcc=:زبان |bcl=Tataramon: |be=Мова: |be-tarask=Мова: |bg=Език: |bn=ভাষা: |br=Yezh : |bs=Jezik: |ca=Llengua: |cdo=Ngṳ̄-ngiòng: |ce=Мотт: |ceb=Pinulongan: |ch=Lengguahe: |ckb-arab=:زمان |co=Lingua: |crh-cyrl=Тиль: |crh-latn=Til: |cs=Jazyk: |cu=ѩꙁꙑ́къ : |cv=Чĕлхе: |cy=Iaith: |da=Sprog: |de=Sprache: |diq=Zıwan: |dsb=Rěc: |ee=Gbe: |el=Γλώσσα: |en=Language: |eo=Lingvo: |es=Idioma: |et=Keel: |eu=Hizkuntza: |ext=Palra: |fa=:زبان |fi=Kieli: |fo=Mál: |fr=Langue: |frc=Langue: |frp=Lengoua: |fur=Lenghe: |fy=Taal: |ga=Teanga: |gag=Dil: |gan-hans=语言: |gan-hant=語言: |gl=Lingua: |gn=Ñe'ẽ: |got=Razda: |grc=Γλῶσσα: |gsw=Sproch: |gu=ભાષા: |gv=Çhengey: |hak=Ngî-ngièn: |haw=Kou 'ōlelo: |he=שפה: |hi=भाषा: |hif-latn=Bhasa: |hr=Jezik: |hsb=Rěč: |ht=Lang: |hu=Nyelv: |hy=Լեզու. |ia=Lingua: |id=Bahasa: |ie=Lingue: |ilo=Lengguahe: |io=Linguo: |is=Tungumál: |it=Lingua: |ja=言語: |jv=Basa: |ka=ენა: |kaa=Til: |kab=Tutlayt: |kg=Ndinga: |kiu=Zon: |kk-arab=:ٴتىل |kk-cyrl=Тіл: |kk-latn=Til: |km=ភាសា៖ |kn=ಭಾಷೆ: |ko=언어: |ksh=Sproch: |ku-latn=Ziman: |kv=Кыв: |kw=Yeth: |ky=Тил: |la=Lingua: |lb=Sprooch: |lfn=Lingua: |li=Taol: |lij=Lengoa: |loz=Zwa Siselect: |lt=Kalba: |lv=Valoda: |lzh=語: |mdf=Кяль: |mg=fiteny: |mhr=Йылме: |mk=Јазик: |ml=ഭാഷ: |mn=Хэл: |mr=भाषा: |ms=Bahasa: |mt=Lingwa: |mwl=Lhéngua: |my=ဘာသာ: |myv=Кель: |nah=Tlahtōlli: |nap=Lengua: |nds=Spraak: |nds-nl=Taal: |ne=भाषा: |new=भाषा: |nl=Taal: |nn=Språk: |no=Språk: |nso=Polelo: |oc=Lenga: |os=Æвзаг: |pa=ਭਾਸ਼ਾ: |pam=Amanu: |pdc=Schprooch: |pdt=Sproak: |pl=Język: |pms=Lenga: |pnb=بولی: |pnt=Γλώσσαν: |prg=Bilā: |ps=ژبه: |pt|pt-br=Língua: |qu=Rimay: |rm=Lingua: |ro=Limba: |roa-tara=Lénga: |ru=Язык: |sa=भाषा: |sah=Омугун тыла: |sc=Limba: |scn=Lingua: |sco=Leid: |sdc=Linga: |se=Giella: |sei=Itom: |sh=Jezik: |shi=tutlayt: |si=භාෂාව: |sk=Jazyk: |sl=Jezik: |sli=Sproache: |so=Luqada: |sq=Gjuha: |sr-ec=Језик: |sr-el=Jezik: |srn=Tongo: |ss=Lúlwîmi: |stq=Sproake: |su=Basa: |sv=Språk: |sw=Lugha: |szl=Godka: |ta=மொழி: |te=భాష: |tet=Lian: |tg-cyrl=Забон: |th=ภาษา: |ti=ቋንቋ: |tk=Dil: |tl=Wika: |to=Lea: |tr=Dil: |tt-cyrl=Тел: |tyv=Дыл: |ug-arab=:تىل |ug-latn=Til: |uk=Мова: |vec=Lengua: |vep=Kel’: |vi=Ngôn ngữ: |vo=Pük: |vro=Kiil: |wa=Lingaedje: |war=Yinaknan: |wo=Làkk: |wuu=语言: |xal=Келн: |xh=Ulwimi: |xmf=ნინა: |yi=שפראך: |yo=Èdè: |yue=語言: |zea=Taele: |zh-hans=语言: |zh-hant=語言: |zu=Ulimi: |#default=Language: }} | |

}}

{{#switch:External searches |=Languages: |Languages=Languages: |MediaWiki=Languages: |af=Taal: |aln=Gjuha: |am=ቋምቋ፦ |an=Idioma: |ang=Sprǣc: |ar=:اللغة |arc=ܠܫܢܐ: |arn=Dungun: |arz=:اللغة |as=ভাষা: |ast=Llingua: |avk=Ava: |ay=Aru: |az=Dil: |bat-smg=Kalba: |bcc=:زبان |bcl=Tataramon: |be=Мова: |be-tarask=Мова: |bg=Език: |bn=ভাষা: |br=Yezh : |bs=Jezik: |ca=Llengua: |cdo=Ngṳ̄-ngiòng: |ce=Мотт: |ceb=Pinulongan: |ch=Lengguahe: |ckb-arab=:زمان |co=Lingua: |crh-cyrl=Тиль: |crh-latn=Til: |cs=Jazyk: |cu=ѩꙁꙑ́къ : |cv=Чĕлхе: |cy=Iaith: |da=Sprog: |de=Sprache: |diq=Zıwan: |dsb=Rěc: |ee=Gbe: |el=Γλώσσα: |en=Language: |eo=Lingvo: |es=Idioma: |et=Keel: |eu=Hizkuntza: |ext=Palra: |fa=:زبان |fi=Kieli: |fo=Mál: |fr=Langue: |frc=Langue: |frp=Lengoua: |fur=Lenghe: |fy=Taal: |ga=Teanga: |gag=Dil: |gan-hans=语言: |gan-hant=語言: |gl=Lingua: |gn=Ñe'ẽ: |got=Razda: |grc=Γλῶσσα: |gsw=Sproch: |gu=ભાષા: |gv=Çhengey: |hak=Ngî-ngièn: |haw=Kou 'ōlelo: |he=שפה: |hi=भाषा: |hif-latn=Bhasa: |hr=Jezik: |hsb=Rěč: |ht=Lang: |hu=Nyelv: |hy=Լեզու. |ia=Lingua: |id=Bahasa: |ie=Lingue: |ilo=Lengguahe: |io=Linguo: |is=Tungumál: |it=Lingua: |ja=言語: |jv=Basa: |ka=ენა: |kaa=Til: |kab=Tutlayt: |kg=Ndinga: |kiu=Zon: |kk-arab=:ٴتىل |kk-cyrl=Тіл: |kk-latn=Til: |km=ភាសា៖ |kn=ಭಾಷೆ: |ko=언어: |ksh=Sproch: |ku-latn=Ziman: |kv=Кыв: |kw=Yeth: |ky=Тил: |la=Lingua: |lb=Sprooch: |lfn=Lingua: |li=Taol: |lij=Lengoa: |loz=Zwa Siselect: |lt=Kalba: |lv=Valoda: |lzh=語: |mdf=Кяль: |mg=fiteny: |mhr=Йылме: |mk=Јазик: |ml=ഭാഷ: |mn=Хэл: |mr=भाषा: |ms=Bahasa: |mt=Lingwa: |mwl=Lhéngua: |my=ဘာသာ: |myv=Кель: |nah=Tlahtōlli: |nap=Lengua: |nds=Spraak: |nds-nl=Taal: |ne=भाषा: |new=भाषा: |nl=Taal: |nn=Språk: |no=Språk: |nso=Polelo: |oc=Lenga: |os=Æвзаг: |pa=ਭਾਸ਼ਾ: |pam=Amanu: |pdc=Schprooch: |pdt=Sproak: |pl=Język: |pms=Lenga: |pnb=بولی: |pnt=Γλώσσαν: |prg=Bilā: |ps=ژبه: |pt|pt-br=Língua: |qu=Rimay: |rm=Lingua: |ro=Limba: |roa-tara=Lénga: |ru=Язык: |sa=भाषा: |sah=Омугун тыла: |sc=Limba: |scn=Lingua: |sco=Leid: |sdc=Linga: |se=Giella: |sei=Itom: |sh=Jezik: |shi=tutlayt: |si=භාෂාව: |sk=Jazyk: |sl=Jezik: |sli=Sproache: |so=Luqada: |sq=Gjuha: |sr-ec=Језик: |sr-el=Jezik: |srn=Tongo: |ss=Lúlwîmi: |stq=Sproake: |su=Basa: |sv=Språk: |sw=Lugha: |szl=Godka: |ta=மொழி: |te=భాష: |tet=Lian: |tg-cyrl=Забон: |th=ภาษา: |ti=ቋንቋ: |tk=Dil: |tl=Wika: |to=Lea: |tr=Dil: |tt-cyrl=Тел: |tyv=Дыл: |ug-arab=:تىل |ug-latn=Til: |uk=Мова: |vec=Lengua: |vep=Kel’: |vi=Ngôn ngữ: |vo=Pük: |vro=Kiil: |wa=Lingaedje: |war=Yinaknan: |wo=Làkk: |wuu=语言: |xal=Келн: |xh=Ulwimi: |xmf=ნინა: |yi=שפראך: |yo=Èdè: |yue=語言: |zea=Taele: |zh-hans=语言: |zh-hant=語言: |zu=Ulimi: |#default=Language: }} English {{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/af |  • {{#if: |Afrikaans| Afrikaans}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ar |  • {{#if: |العربية| العربية}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ast |  • {{#if: |Asturianu| Asturianu}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/az |  • {{#if: |Azərbaycanca| Azərbaycanca}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/bcc |  • {{#if: |بلوچی مکرانی| بلوچی مکرانی}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/bg |  • {{#if: |Български| Български}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/br |  • {{#if: |Brezhoneg| Brezhoneg}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ca |  • {{#if: |Català| Català}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/cs |  • {{#if: |Česky| Česky}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/da |  • {{#if: |Dansk| Dansk}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/de |  • {{#if: |Deutsch| Deutsch}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/el |  • {{#if: |Ελληνικά| Ελληνικά}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/eo |  • {{#if: |Esperanto| Esperanto}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/es |  • {{#if: |Español| Español}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/fa |  • {{#if: |فارسی| فارسی}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/fi |  • {{#if: |Suomi| Suomi}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/fr |  • {{#if: |Français| Français}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/gl |  • {{#if: |Galego| Galego}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/gu |  • {{#if: |ગુજરાતી| ગુજરાતી}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/he |  • {{#if: |עברית| עברית}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/hu |  • {{#if: |Magyar| Magyar}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/id |  • {{#if: |Bahasa Indonesia| Bahasa Indonesia}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/it |  • {{#if: |Italiano| Italiano}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ja |  • {{#if: |日本語| 日本語}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ka |  • {{#if: |ქართული| ქართული}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ko |  • {{#if: |한국어| 한국어}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ksh |  • {{#if: |Ripoarisch| Ripoarisch}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/kw |  • {{#if: |Kernowek| Kernowek}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/mk |  • {{#if: |Македонски| Македонски}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ml |  • {{#if: |മലയാളം| മലയാളം}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/mr |  • {{#if: |मराठी| मराठी}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ms |  • {{#if: |Bahasa Melayu| Bahasa Melayu}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/nl |  • {{#if: |Nederlands| Nederlands}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/no |  • {{#if: |‪Norsk (bokmål)‬| ‪Norsk (bokmål)‬}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/oc |  • {{#if: |Occitan| Occitan}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/pl |  • {{#if: |Polski| Polski}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/pt |  • {{#if: |Português| Português}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/pt-br |  • {{#if: |Português do Brasil| Português do Brasil}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ro |  • {{#if: |Română| Română}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ru |  • {{#if: |Русский| Русский}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/si |  • {{#if: |සිංහල| සිංහල}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/sk |  • {{#if: |Slovenčina| Slovenčina}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/sq |  • {{#if: |Shqip| Shqip}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/sr |  • {{#if: |Српски / Srpski| Српски / Srpski}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/sv |  • {{#if: |Svenska| Svenska}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/ta |  • {{#if: |தமிழ்| தமிழ்}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/th |  • {{#if: |ไทย| ไทย}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/tr |  • {{#if: |Türkçe| Türkçe}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/uk |  • {{#if: |Українська| Українська}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/vi |  • {{#if: |Tiếng Việt| Tiếng Việt}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/yue |  • {{#if: |粵語| 粵語}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/zh |  • {{#if: |中文| 中文}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/zh-hans |  • {{#if: |‪中文(简体)‬| ‪中文(简体)‬}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/zh-hant |  • {{#if: |‪中文(繁體)‬| ‪中文(繁體)‬}}|}}{{#ifexist: {{#if: | | {{#if: Help | Help:}}External searches}}/zh-tw |  • {{#if: |‪中文(台灣)‬| ‪中文(台灣)‬}}|}}
Personal tools
Namespaces
Variants
Actions
Navigation
Installation
Configuration
Administration
Tools
Status
Dialup Replays
Service Monitor
Misc
Toolbox