Help:External searchesEdit This Page

From FamilySearch Wiki

(Difference between revisions)
m
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Help article}}
+
[[Help:Wiki Help|Wiki Help]] [[Image:Gotoarrow.png]] [[Help:Tables and templates|Tables and templates]] [[Image:Gotoarrow.png]] External searches
  
It is possible to create an external searches of a topic using key words using a template.
+
{{Help article}}
  
For example, this is something that would work for Google:
+
It is possible to create external searches of a topic by using key words or by using a template.
  
<pre style="overflow: auto"><nowiki>
+
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>
+
<pre style="overflow: auto">&lt;span style="border: 1px solid #CCD5DB;"&gt;[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&amp;q={{{1|Wiki}}} {{{1|Google}}}]&lt;/span&gt;
<noinclude>
+
&lt;noinclude&gt;
 
==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>
+
&lt;div style="display:table; width:auto;"&gt;&lt;pre&gt;
 
{{Google|Term1+Term2+Term3}}
 
{{Google|Term1+Term2+Term3}}
&lt;/pre></div>
+
&lt;/pre&gt;&lt;/div&gt;
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
</noinclude></nowiki></pre><br />
+
&lt;/noinclude&gt;</pre>  
 +
<br> 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>
+
It is also possible to do phrases by using&nbsp;%22Term1+Term2+etc%22
  
It is also possible to do phrases by using %22Term1+Term2+etc%22
+
*External searches are useful when an article requires certain keywords to make an effective search.
 +
*For the editor it allows making searches of the web more quickly.
  
*External searches are useful where an article requires certain keywords to make an effective search.
+
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.  
*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 [[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.  
  
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.
+
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:  
 
+
<pre style="overflow: auto">&lt;span style="border: 1px solid #CCD5DB;"&gt;[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&amp;q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]&lt;/span&gt;
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
+
&lt;noinclude&gt;
 
+
<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==
 
==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>
+
* &lt;code&gt;{{Google|Term1 Term2 Term3}}&lt;/code&gt;
* <code>{{Google|"a phrase"}}</code>
+
* &lt;code&gt;{{Google|"a phrase"}}&lt;/code&gt;
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
</noinclude></nowiki></pre><br />
+
&lt;/noinclude&gt;</pre>  
 +
<br> {{Contributor Help badge
 +
| link = https://familysearch.org/ask/
 +
| name = Get Help}} '''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 FamilySearch Wiki 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>.
 +
 
 +
{{Translation needed|es|Ayuda:Búsquedas externas}}
  
{{Contributor Help badge}}
+
{{Contributor help-navbox}} {{Editing help}}  
'''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 FamilySearch Wiki 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>.
+
  
{{Translation needed|es|Ayuda:Búsquedas externas}}
+
{{H-langs|es=Ayuda:Búsquedas externas|en=Help:External searches|pt=Ajuda:Pesquisas Externas}}  
  
{{Contributor help-navbox}} {{Editing help}}
 
  
[[Category:Help|External searches]]
+
[[Category:Additional_wikitext_help]]

Latest revision as of 00:21, 22 August 2015

Wiki Help Gotoarrow.png Tables and templates Gotoarrow.png External searches

Help-content.png This help article will guide you as you edit in the Wiki. See Contributor Help for more help articles.


It is possible to create external searches of a topic by using key words or by 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 when an article requires certain keywords to make an effective search.
  • For the editor it allows making searches of the web more quickly.

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>

Help-content.png Questions?
Visit the Get Help to receive help with contributing to the Wiki.
Note the application of MediaWiki magic word urlencode. This grants us the convenience and elegance of entering the query string in a FamilySearch Wiki 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. 


  • This page was last modified on 22 August 2015, at 00:21.
  • This page has been accessed 3,182 times.