14,091
edits
m (1 revision) |
(Fix) |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
Creates a link to | 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. | ||
# A page name prefix consisting of an optional [[Help:Namespace|namespace]] followed by a colon, followed by all or part of a page name. (Required.) Examples: | # A page name prefix consisting of an optional [[Help:Namespace|namespace]] followed by a colon, followed by all or part of a page name. (Required.) Examples: | ||
#* <code> | #* <code>Sarkarverse:Help desk</code> — (search the English Sarkarverse Help desk and its archive pages) | ||
#* <code> | #* <code>Sarkarverse:FAQ</code> — (search the English Sarkarverse FAQ) | ||
#* <code> | #* <code>Sarkarverse:Village pump</code> — (search the English Sarkarverse Village pump and its archive pages) | ||
# Your search term(s). (Optional.) If this parameter is empty, clicking on the resulting link generates a search form containing a <code>prefix=</code> search modifier with the value of the first template parameter. The user must then type search keywords to the ''left'' of the <code>prefix=</code> string in the form.<ref name="cannot_hide_prefix">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.</ref> 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. | # Your search term(s). (Optional.) If this parameter is empty, clicking on the resulting link generates a search form containing a <code>prefix=</code> search modifier with the value of the first template parameter. The user must then type search keywords to the ''left'' of the <code>prefix=</code> string in the form.<ref name="cannot_hide_prefix">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.</ref> 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. | ||
# 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. | # 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. | ||
Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
Sarkarverse has many [[Help:Talk page|talk pages]] (a.k.a. discussion pages) and other project pages that behave similarly (such as the [[WP:HD|Help desk]], the [[WP:VPT|Village pump]], the [[WP:RD|Reference desk]], as well as announcement pages such as the [[WP:SIGNPOST|Signpost]]). High-volume talk pages typically have [[WP:EIW#Archive|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). | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 26: | ||
! Type this !! To get this !! What it produces, or searches for | ! Type this !! To get this !! What it produces, or searches for | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Help desk||Search Sarkarverse Help desk}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Help desk||Search Sarkarverse Help desk}} | ||
| Search the [[WP:HD|Help desk]] archive (also see: {{Tl|Google help desk}} to search with Google) | | Search the [[WP:HD|Help desk]] archive (also see: {{Tl|Google help desk}} to search with Google) | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Help desk|How to create a new entry?|}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Help desk|How to create a new entry?|}} | ||
| Search the Help desk for some keywords; display default link text | | Search the Help desk for some keywords; display default link text | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:New contributors' help page/Archive||Search Sarkarverse New Contributors' help page archive}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:New contributors' help page/Archive||Search Sarkarverse New Contributors' help page archive}} | ||
| Search the | | Search the Sarkarverse New Contributors' help page archive | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Clueless newbies||Search Sarkarverse Clueless newbies archive}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Clueless newbies||Search Sarkarverse Clueless newbies archive}} | ||
| Search the | | Search the Sarkarverse Clueless newbies archive (2005-2006) | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Sarkarverse Signpost||Search Sarkarverse Signpost}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Sarkarverse Signpost||Search Sarkarverse Signpost}} | ||
| Search the [[WP:SIGNPOST| | | Search the [[WP:SIGNPOST|Sarkarverse Signpost]] | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:WikiProject||Search WikiProject pages}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:WikiProject||Search WikiProject pages}} | ||
| Search the [[WP:PROJ|WikiProject pages]] | | Search the [[WP:PROJ|WikiProject pages]] | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:FAQ||Search all FAQs}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:FAQ||Search all FAQs}} | ||
| Search [[WP:FAQ]] and [[Special:PrefixIndex/ | | Search [[WP:FAQ]] and [[Special:PrefixIndex/Sarkarverse:FAQ|subpages]] | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Village pump||Search Sarkarverse:Village pump}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Village pump||Search Sarkarverse:Village pump}} | ||
| Search the [[WP:PUMP|Village pump]], all sections and archives | | Search the [[WP:PUMP|Village pump]], all sections and archives | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Village pump (policy)||Search Sarkarverse:Village pump (policy)}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Village pump (policy)||Search Sarkarverse:Village pump (policy)}} | ||
| Search the [[WP:VPP|Village pump (policy)]] section and its archive | | Search the [[WP:VPP|Village pump (policy)]] section and its archive | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Village pump (technical)||Search Sarkarverse:Village pump (technical)}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Village pump (technical)||Search Sarkarverse:Village pump (technical)}} | ||
| Search the [[WP:VPT|Village pump (technical)]] section and its archive | | Search the [[WP:VPT|Village pump (technical)]] section and its archive | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Village pump (||Search Sarkarverse:Village pump (}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Village pump (||Search Sarkarverse:Village pump (}} | ||
| Use the ( character as a search delimiter to search the Village pump sections | | Use the ( character as a search delimiter to search the Village pump sections | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse talk:AutoWikiBrowser||search the AutoWikiBrowser discussion archive}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse talk:AutoWikiBrowser||search the AutoWikiBrowser discussion archive}} | ||
| Search the [[ | | Search the [[Sarkarverse talk:AutoWikiBrowser|AutoWikiBrowser discussion archive]] | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Reliable sources/Noticeboard||search the Reliable sources noticeboard archive}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Reliable sources/Noticeboard||search the Reliable sources noticeboard archive}} | ||
| Search the [[ | | Search the [[Sarkarverse:Reliable sources/Noticeboard|Reliable sources noticeboard archive]] | ||
|- | |- | ||
| <tt><nowiki>{{Search subpages link| | | <tt><nowiki>{{Search subpages link|Sarkarverse:Template messages||search Sarkarverse's template messages}}</nowiki></tt> | ||
| {{Search subpages link| | | {{Search subpages link|Sarkarverse:Template messages||search Sarkarverse's template messages}} | ||
| Search the [[ | | Search the [[Sarkarverse:Template messages]] subtree | ||
|- | |- | ||
|} | |} | ||
Line 88: | Line 88: | ||
*{{Tl|Google custom}} - has similar function, but uses Google search | *{{Tl|Google custom}} - has similar function, but uses Google search | ||
*{{Tl|Search archives}} - generates an inputbox for searching a subpage tree | *{{Tl|Search archives}} - generates an inputbox for searching a subpage tree | ||
*{{Tl|Search link}} - generates a similar | *{{Tl|Search link}} - generates a similar Sarkarverse search link, but on entire namespaces | ||
*{{Tl|Search subpages}} - generates an inputbox for searching a subpage tree | *{{Tl|Search subpages}} - generates an inputbox for searching a subpage tree | ||
*{{Tl|Search | *{{Tl|Search Sarkarverse}} - generates an inputbox for searching all of Sarkarverse | ||
*[[User:Teratornis/Notes#New MediaWiki search]] - development notes for this template | *[[User:Teratornis/Notes#New MediaWiki search]] - development notes for this template | ||
*[[ | *[[Sarkarverse:Sarkarverse Signpost/2008-11-10/Search engine]] - briefly summarizes the <code>prefix</code> search modifier | ||
== References == | == References == |