Difference between revisions of "Help:External searches"

From The SBN Wiki
Jump to navigation Jump to search
m (1 revision: Media Wiki Help Pages)
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{PD Help Page}}
+
<languages/>
 +
{{TNT|PD Help Page}}
 +
<translate>
 +
<!--T:1-->
 
It is possible to create an external searches of a topic using key words using a template.
 
It is possible to create an external searches of a topic using key words using a template.
  
 +
<!--T:2-->
 
For example, this is something that would work for Google:
 
For example, this is something that would work for Google:
 
+
</translate>
 
<pre style="overflow: auto"><nowiki>
 
<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>
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{{1|Wiki}}} {{{1|Google}}}]</span>
 
<noinclude>
 
<noinclude>
==Usage==
+
== Usage ==
 
Allows to establish a link to a search query at the Google search engine:
 
Allows to establish a link to a search query at the Google search engine:
 
<div style="display:table; width:auto;"><pre>
 
<div style="display:table; width:auto;"><pre>
Line 14: Line 18:
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
 
</noinclude></nowiki></pre>
 
</noinclude></nowiki></pre>
 
+
<translate>
 +
<!--T:3-->
 
The usage is very simple and easy to use. <nowiki>{{Google|firstTerm+Second+etc}}</nowiki>  
 
The usage is very simple and easy to use. <nowiki>{{Google|firstTerm+Second+etc}}</nowiki>  
  
 +
<!--T:4-->
 
It is also possible to do phrases by using %22Term1+Term2+etc%22
 
It is also possible to do phrases by using %22Term1+Term2+etc%22
  
 +
<!--T:5-->
 
*External searches are useful where an article requires certain keywords to make an effective search.
 
*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.
 
*For the editor it allows making searches of web more quickly and painlessly.
  
 +
<!--T:6-->
 
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.
 
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 [[Help:Links#Interwiki_links|interwiki prefix]] with a similar effect, so you can link to google results with <nowiki>[[Google:firstTerm+Second+etc]]</nowiki>, although templates are still useful for linking other search engines.
+
<!--T:7-->
 +
Note: Wikipedia has an {{ll|Help:Links#Interwiki|interwiki prefix}} with a similar effect, so you can link to google results with <nowiki>[[Google:firstTerm+Second+etc]]</nowiki>, although templates are still useful for linking other search engines.
  
 +
<!--T:8-->
 
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
 
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
 
+
</translate>
 
<pre style="overflow: auto"><nowiki>
 
<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>
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
 
<noinclude>
 
<noinclude>
==Usage==
+
== Usage ==
 +
 
 
Allows to establish a link to a search query at the Google search engine:
 
Allows to establish a link to a search query at the Google search engine:
 
* <code>{{Google|Term1 Term2 Term3}}</code>
 
* <code>{{Google|Term1 Term2 Term3}}</code>
Line 37: Line 48:
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
 
</noinclude></nowiki></pre>
 
</noinclude></nowiki></pre>
 
+
<translate>
Note the application of MediaWiki [[Help:Magic words|magic word]] <code>urlencode</code>. 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>.
+
<!--T:9-->
 
+
Note the application of MediaWiki {{ll|Help:Magic words|magic word}} <code>urlencode</code>. 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>.
{{languages}}
+
</translate>
 
+
[[Category:Help{{langcat|External searches}}|{{PAGENAME}}]]
[[Category:Help|External Searches]]
+
[[Category:Search{{langcat|External searches}}|{{PAGENAME}}]]
[[Category:Search|External Searches]]
 

Latest revision as of 14:20, 15 July 2015

<languages/> Template:TNT <translate> 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: </translate>

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

<translate> 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 Template:Ll 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: </translate>

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

<translate> Note the application of MediaWiki Template:Ll 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. </translate> [[Category:HelpTemplate:Langcat|External searches]] [[Category:SearchTemplate:Langcat|External searches]]