Template:Search link/doc

This is the search link template.

It creates a link to the Wikibooks 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 Wikibooks 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 mainspace 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.