mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-18 13:05:50 +00:00
87f08dcf5b
In preparation for using the SkinMustache class and core buildSearchProps method [1], and to reduce the risk of that change, move the ID from the template data to the template itself: [1] https://github.com/wikimedia/mediawiki/blob/master/includes/skins/SkinMustache.php#L93 Change-Id: I8d62ea6b1adf6ef0cbfa20e1876806eba70b169f
25 lines
1 KiB
Plaintext
25 lines
1 KiB
Plaintext
{{!
|
|
See @typedef SearchData
|
|
}}
|
|
<div id="p-search" role="search">
|
|
<h3 {{{html-userlangattributes}}}>
|
|
<label for="searchInput">{{msg-search}}</label>
|
|
</h3>
|
|
<form action="{{form-action}}" id="searchform">
|
|
<div id="simpleSearch">
|
|
{{{html-input}}}
|
|
<input type="hidden" name="title" value="{{page-title}}">
|
|
{{! We construct two buttons (for 'go' and 'fulltext' search modes), but only one will be
|
|
visible and actionable at a time (they are overlaid on top of each other in CSS).
|
|
* Browsers will use the 'fulltext' one by default (as it's the first in tree-order),
|
|
which is desirable when they are unable to show search suggestions (either due to being
|
|
broken or having JavaScript turned off).
|
|
* The mediawiki.searchSuggest module, after doing tests for the broken browsers, removes
|
|
the 'fulltext' button and handles 'fulltext' search itself; this will reveal the 'go'
|
|
button and cause it to be used. !}}
|
|
{{{html-button-search-fallback}}}
|
|
{{{html-button-search}}}
|
|
</div>
|
|
</form>
|
|
</div>
|