टेम्पलेट:Search box: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>Blakkandekka
छो Fix minor typo
imported>Rcsprinter123
doc
लाइन 10:
</div><noinclude>
 
{{doc}}
The <code><nowiki>{{search box}}</nowiki></code> template may be used to add an input box to let the user search a set of pages, for example archived Talk pages, or user subpages, or any wikipedia pages in any namespace. This template is usable from any wikipedia namespace page and can search pages in any other namespace.
 
=== Usage ===
<pre>
{{search box
|root= /
|search-break=<yes|no>
|search-width=number
|search-button-label=text
}}
</pre>
 
===Parameters===
;root: <tt><nowiki>|root=User talk:Example/Archives</nowiki></tt> will search in pages starting with User talk:Example/Archives. The default is the current page name followed by "/". Another example: <tt><nowiki>|root=User:MyUser</nowiki></tt> will search in all subpages starting with "User:MyUser".
;search-break: <tt><nowiki>search-break=yes</nowiki></tt> will insert a break between the search bar and search button. The default is no.
;search-width: can be used to change the width of the text field, in characters. The default is 22, which fits the search bar with the default box width. Note: this is a bare number with no units.
;search-button-label: can be used to change the text on the search button. The default is "Search".
;noslash: By default, after the "root" parameter, there is a "/". If you don't want that slash in the end of the prefix name, you can use <tt><nowiki>noslash=yes</nowiki></tt>.
 
===Examples===
<pre>{{search box |root=Wikipedia:FAQ |search-button-label=Search the FAQ}}
</pre> produces: {{search box |root=Wikipedia:FAQ |search-button-label=Search the FAQ}}
 
Example 2:
<pre>
{{search box
|root=User:84User
|search-break=no
|search-width=22
|search-button-label=Search 84user's pages
}}
</pre> produces: {{search box
|root=User:84User
|search-break=no
|search-width=44
|search-button-label=Search User:84user's pages
}}
 
===See also===
* [[:commons:Template:search box]] - Wikimedia Commons template that does the same thing
* [[:en:Template:archive box]] - English wikipedia template that inspired the Commons one
 
[[Category:User namespace templates]]
[[Category:Wikipedia utility templates]]
[[Category:Wikipedia tools]]
</noinclude>