Template:Search link/doc

This template creates a link to the CorporisPublica search. For example, results in:.

Basics
Examples:
 * The first unnamed parameter is the word or phrase to search for.
 * The second optional unnamed parameter is the caption for the link.





Namespaces
By default, search is done only for article namespaces. (Logged in users can change it.) To specify the target namespaces, do either one of:


 * To search all namespaces:
 * To specify some namespaces, for instance main (article) space and its talk space (ns0 and ns1):
 * To specify some namespaces, for instance main (article) space and its talk space (ns0 and ns1):
 * 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 "CorporisPublica:" 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, portals, etc., and should not be used in regular articles. If  is included in an article, it will issue the following warning:

be:Шаблон:Пошук ja:Template:Search