Template:Search subpages link/doc

Usage
Creates a link to Wikipedia's internal search function, with the assumption that you want to search on a subpage tree (that is, on all pages whose names share a common prefix). This template takes three unnamed input parameters; you must supply the first one, and the last two are optional.


 * 1) A page name prefix consisting of an optional namespace followed by a colon, followed by all or part of a page name. (Required.) Examples:
 * 2) *  &mdash; (search the English Wikipedia Help desk and its archive pages)
 * 3) *  &mdash; (search the English Wikipedia FAQ)
 * 4) *  &mdash; (search the English Wikipedia Village pump and its archive pages)
 * 5) Your search term(s). (Optional.) If this parameter is empty, clicking on the resulting link generates a search form containing a   search modifier with the value of the first template parameter. The user must then type search keywords to the left of the   string in the form. Because the resulting search form is somewhat clumsy for a novice user to edit directly, this template may be most useful if you specify search terms in this second parameter.
 * 6) Link text to display on your wiki page. (Optional.) If you leave this blank, the template tries to generate some reasonable link text from the first two template parameters.

In general, all pages in a subpage tree will be in the same namespace. If you need to search on entire namespaces, for example more than one namespace at a time, use Search link.

Examples
Wikipedia has many talk pages (a.k.a. discussion pages) and other project pages that behave similarly (such as the Help desk, the Village pump, the Reference desk, as well as announcement pages such as the Signpost). High-volume talk pages typically have archives consisting of subpages. The template can search on any set of archive pages that follows the right naming structure (many if not most archives on Wikipedia do).