User:Stmrlbs/Template/Search prefixes/doc

Purpose

edit

To easily search multiple related areas with different prefixes with one search.

What this template does

edit

concatenates the multiple areas specified to create a prefix string to be used by the wikipedia search function. The template also creates a list of the areas to be searched in links, so that different users of the search can see what areas are being searched if they wish. This template creates a one line header above the search with a description of any length to describe what the purpose of the related area search is. The long description will only be shown if the user asks for it (by clicking the show button).

Usage

edit

can be used anywhere

syntax

edit
{{Search prefixes
| header1 = Please specify a general header here
| description = please specify a general description of the search here
| searchbuttonlabel = Search
| header2 = click show to see which wikipedia areas are searched 
| prefix of area 1 
| prefix of area 2 
| prefix of area 3 
| prefix of area 4 
...
| prefix of area 30 
}}

 }}

limits

edit
  • a limit of 30 prefixes/areas can be specified.
  • the prefixes must be in title form, not URL form - spaces, not "_" between words (this is the only form recognized by the prefix search parameter)

See also

edit