Help:External searches

From FamilySearch Wiki
Revision as of 17:21, 21 August 2015 by Autarangel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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]] [{{{1|Wiki}}} {{{1|Google}}}]</span>
Allows to establish a link to a search query at the Google search engine:
<div style="display:table; width:auto;"><pre>

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]] [{{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
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>

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.