|
|
Línea 1: |
Línea 1: |
| <languages />
| | #REDIRECCIÓN [[Ayuda:Búsquedas externas]] |
| {{PD Help Page}}
| |
| Es posible la creación de búsquedas externas utilizando palabras clave usando una plantilla.
| |
| | |
| Por ejemplo, esto es algo que puede funcionar para Google:
| |
| | |
| <pre style="overflow: auto"><nowiki>
| |
| <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></nowiki></pre>
| |
| | |
| Es muy fácil y sencillo de usar:
| |
| <code><nowiki>{{Google|</nowiki>primerTérmino+segundo+etc<nowiki>}}</nowiki></code>
| |
| | |
| También es posible hacerlo mediante el uso de frases
| |
| <code>%22Term1+Term2+etc%22</code>.
| |
| | |
| * Las búsquedas externas son útiles cuando un artículo requiere que ciertas palabras clave realicen una búsqueda efectiva.
| |
| * Al usuario le permite hacer búsquedas en la Web de manera más rápida y ventajosa.
| |
| | |
| Otras aplicaciones de la plantilla son la búsqueda en foros, para informes de fallos para desarrollo de software de wiki, etc.
| |
| | |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| |
| == Using interwiki prefixes ==
| |
| </div>
| |
| | |
| Wikipedia tiene un [[Special:MyLanguage/Help:Links#Interwiki|prefijo interwiki]] con un efecto similar, de manera que puede enlazar con resultados de Google mediante {{tmpl|0=<code><nowiki>[[</nowiki>Google:firstTerm+Second+etc<nowiki>]]</nowiki></code>|primerTérmino+segundo+etc}}, aunque las plantillas todavía son útiles para enlazar con otros motores de búsqueda.
| |
| | |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| |
| For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
| |
| </div>
| |
| | |
| <pre style="overflow: auto"><nowiki>
| |
| <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></nowiki></pre>
| |
| | |
| <span lang="en" dir="ltr" class="mw-content-ltr">Note the application of MediaWiki [[Special:MyLanguage/Help:Magic words|magic word]] <code>urlencode</code>.</span>
| |
| <span lang="en" dir="ltr" class="mw-content-ltr">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>.</span>
| |
| | |
| [[Category:Enciclopedia:Ayuda|{{PAGENAME}}]]
| |
| [[Category:Enciclopedia:Búsqueda|{{PAGENAME}}]]
| |