Template:Search subpages link

From Sarkarverse
Jump to navigation Jump to search

Search

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Creates a link to Sarkarverse'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:
    • Sarkarverse:Help desk — (search the English Sarkarverse Help desk and its archive pages)
    • Sarkarverse:FAQ — (search the English Sarkarverse FAQ)
    • Sarkarverse:Village pump — (search the English Sarkarverse Village pump and its archive pages)
  2. Your search term(s). (Optional.) If this parameter is empty, clicking on the resulting link generates a search form containing a prefix= search modifier with the value of the first template parameter. The user must then type search keywords to the left of the prefix= string in the form.[1] 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.
  3. 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}}.

Do not use in articles

Examples

Sarkarverse 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 Sarkarverse do).

Type this To get this What it produces, or searches for
{{Search subpages link|Sarkarverse:Help desk||Search Sarkarverse Help desk}} Search Sarkarverse Help desk Search the Help desk archive (also see: {{Google help desk}} to search with Google)
{{Search subpages link|Sarkarverse:Help desk|How to create a new entry?|}} Search the subpage tree below Sarkarverse:Help desk for: How to create a new entry? Search the Help desk for some keywords; display default link text
{{Search subpages link|Sarkarverse:New contributors' help page/Archive||Search Sarkarverse New Contributors' help page archive}} Search Sarkarverse New Contributors' help page archive Search the Sarkarverse New Contributors' help page archive
{{Search subpages link|Sarkarverse:Clueless newbies||Search Sarkarverse Clueless newbies archive}} Search Sarkarverse Clueless newbies archive Search the Sarkarverse Clueless newbies archive (2005-2006)
{{Search subpages link|Sarkarverse:Sarkarverse Signpost||Search Sarkarverse Signpost}} Search Sarkarverse Signpost Search the Sarkarverse Signpost
{{Search subpages link|Sarkarverse:WikiProject||Search WikiProject pages}} Search WikiProject pages Search the WikiProject pages
{{Search subpages link|Sarkarverse:FAQ||Search all FAQs}} Search all FAQs Search SV:FAQ and subpages
{{Search subpages link|Sarkarverse:Village pump||Search Sarkarverse:Village pump}} Search Sarkarverse:Village pump Search the Village pump, all sections and archives
{{Search subpages link|Sarkarverse:Village pump (policy)||Search Sarkarverse:Village pump (policy)}} Search Sarkarverse:Village pump (policy) Search the Village pump (policy) section and its archive
{{Search subpages link|Sarkarverse:Village pump (technical)||Search Sarkarverse:Village pump (technical)}} Search Sarkarverse:Village pump (technical) Search the Village pump (technical) section and its archive
{{Search subpages link|Sarkarverse:Village pump (||Search Sarkarverse:Village pump (}} Search Sarkarverse:Village pump ( Use the ( character as a search delimiter to search the Village pump sections
{{Search subpages link|Sarkarverse talk:AutoWikiBrowser||search the AutoWikiBrowser discussion archive}} search the AutoWikiBrowser discussion archive Search the AutoWikiBrowser discussion archive
{{Search subpages link|Sarkarverse:Reliable sources/Noticeboard||search the Reliable sources noticeboard archive}} search the Reliable sources noticeboard archive Search the Reliable sources noticeboard archive
{{Search subpages link|Sarkarverse:Template messages||search Sarkarverse's template messages}} search Sarkarverse's template messages Search the Sarkarverse:Template messages subtree

See also

References

  1. ^ Unfortunately, there seems to be no way to keep the prefix string out of the search field, for example by putting it in the URL as a separate parameter. That can work from inputbox search forms, but evidently not from search URLs.