2019-12-06 23:37:39 +00:00
|
|
|
{{!
|
2020-05-29 19:07:55 +00:00
|
|
|
See @typedef SearchData
|
2019-12-06 23:37:39 +00:00
|
|
|
}}
|
2021-09-29 12:06:07 +00:00
|
|
|
<div{{#is-primary}} id="p-search"{{/is-primary}} role="search" class="{{class}} vector-search-box">
|
2022-04-13 19:53:46 +00:00
|
|
|
{{#is-collapsible}}
|
|
|
|
{{#data-collapse-icon}}
|
|
|
|
{{>Button}}
|
|
|
|
{{/data-collapse-icon}}
|
|
|
|
{{/is-collapsible}}
|
2021-06-02 22:57:43 +00:00
|
|
|
<div>
|
2021-05-18 18:27:33 +00:00
|
|
|
{{#is-legacy}}
|
|
|
|
<h3 {{{html-user-language-attributes}}}>
|
2021-09-29 12:06:07 +00:00
|
|
|
<label{{#is-primary}} for="searchInput"{{/is-primary}}>{{msg-search}}</label>
|
2021-05-18 18:27:33 +00:00
|
|
|
</h3>
|
|
|
|
{{/is-legacy}}
|
2021-09-16 18:00:05 +00:00
|
|
|
<form action="{{form-action}}" id="{{form-id}}"
|
|
|
|
class="vector-search-box-form">
|
|
|
|
<div {{#is-primary}}id="simpleSearch"{{/is-primary}}
|
|
|
|
class="vector-search-box-inner"
|
|
|
|
{{#input-location}} data-search-loc="{{.}}"{{/input-location}}>
|
|
|
|
<input class="vector-search-box-input"
|
2021-09-16 19:27:10 +00:00
|
|
|
{{#is-primary}}{{{html-input-attributes}}} id="searchInput"{{/is-primary}}
|
|
|
|
{{^is-primary}}
|
|
|
|
type="search" name="search"
|
|
|
|
placeholder="{{msg-searchsuggest-search}}"
|
|
|
|
{{/is-primary}}
|
2022-05-24 21:46:37 +00:00
|
|
|
>
|
|
|
|
<input type="hidden" name="title" value="{{page-title}}">
|
2021-06-02 22:57:43 +00:00
|
|
|
{{! 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. !}}
|
2021-09-29 12:06:07 +00:00
|
|
|
<input{{#is-primary}} id="mw-searchButton"{{/is-primary}}
|
2022-05-24 21:46:37 +00:00
|
|
|
{{{html-button-fulltext-attributes}}} value="{{msg-searchbutton}}">
|
2021-09-29 12:06:07 +00:00
|
|
|
<input{{#is-primary}} id="searchButton"{{/is-primary}}
|
2022-05-24 21:46:37 +00:00
|
|
|
{{{html-button-go-attributes}}} value="{{msg-searcharticle}}">
|
2021-06-02 22:57:43 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-11-20 19:43:07 +00:00
|
|
|
</div>
|