Template:Search archives/doc

Usage
Simple transclusion  uses the tagged page as a prefix. Default Prefixes contain the search to the article and its subpages. For example, when placed on WikiQueer talk:Talk pages, the search text for "foo" looks like: [foo prefix:WikiQueer talk:Talk pages ].

This usage may not be satisfactory, for example if one wants to search subpages of WikiQueer:Talk pages rather than subpages of its talk page, WikiQueer talk:Talk pages, which the above form does. Using Template:Archive banner may be a solution, as it allows parameters to be modified in the template tag.


 * One solution is to use the parameter prefix as follows:
 * prefix=WikiQueer talk:WikiProject Cats


 * please note: the name is the page name, not the URL. ie., not the name with "_", but the name with blanks - as in the example above.


 * to specify multiple prefixes, separate the prefixes with |, i.e.:
 * prefix=WikiQueer talk:WikiProject Cats | Talk:Cat/


 * Another remedy is to substitute this template, after which the prefix needs to be changed by hand to point to the desired search prefix: adding   and save the change gets the code:

To customise, simply change  to , where articlename indicates the proper superpage, under which all subpages will be searched.