Template:Search link/doc

This is the search link template.

It creates a link to the FamilySearch Wiki search.

Usage
This template takes one or more parameters. The first unnamed parameter is the word or phrase to search for. The second unnamed parameter is the caption for the link.

Here are some examples. Code to the left and actual rendering to the right:





When doing a basic search like that FamilySearch Wiki only searches the namespaces that the user has set in "My preferences - Search - Namespaces". If you want to specify what namespaces the search will use, then this template has several ways to do that.

To search all namespaces:



To specify some namespaces, for instance main (article) space and its talk space (ns0 and ns1):



Note the empty link text parameter in the first example above. That is because the parameters are unnamed. If "ns0" were fed as the second parameter then it would become the link text, not the first namespace to search.

If you want to search several namespaces it can be a bit tricky to get the namespace numbers right. A convenient way is to go to Special:Search and select the namespaces you want there, fill in a search string, and then run the search. Then you can simply copy the namespace list from the URL you get, and feed that list to this template. Say you select the "FamilySearch Wiki:" and "Help:" spaces, then you get the namespace list " ". Then feed it to this template like this:



Don't forget to use the " " part.

Warnings
The template is only for talk pages, user pages, help pages, etc., and should not be used in regular articles. If  is included in an article, it will issue the following warning: