Help:External searches/id
| Catatan penting: Sewaktu Anda menyunting laman ini, Anda setuju untuk melepas kontribusi Anda sebagai domain publik. Jika Anda tidak ingin atau tidak dapat melakukan ini karena batasan lisensi, tolong jangan sunting. Laman ini adalah satu dari Laman Bantuan Domain Publik, yang dapat dengan bebas disalin dalam pemasangan wiki baru dan/atau disebarkan bersama perangkat lunak MediaWiki; lihat Bantuan:Isi untuk tinjuan semua laman. Lihat Project:PD help/Copying/id untuk petunjuk. |
MediaWiki memungkinkan untuk melakukan pencarian eksternal suatu topik dengan menggunakan kata kunci dengan suatu templat.
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>
== Penggunaan ==
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>
== Penggunaan ==
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.
| Membaca: Navigasi • Pencarian • Perubahan • Pemantauan Menyunting: Dasar • Laman baru • Pemformatan • Tautan • Laman pengguna • Pembicaraan • Tanda tangan Lanjut: Gambar • Tabel • Kategori • Sublaman • Berkas • Pemindahan • Pengalihan • Penghapusan • Lindungan • Templat • Variabel • Ruang nama • Istimewa • Pencarian eksternal • Bot Pribadi: Preferensi • Kulit Admin: Hak akses • Perlindungan • Penghapusan • Patroli • Blokir • Blokir rentang IP • Pemberian akses |
| Bahasa: | English • Deutsch • español • Bahasa Indonesia • 日本語 • 한국어 • polski • português • português do Brasil • slovenčina • 中文 |
|---|
